- All Superinterfaces:
CaseLabelTreePREVIEW
,Tree
ConstantCaseLabelTree
is a reflective preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A case label element that refers to a constant expression
- Since:
- 19
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe constant expression for the case.
-
Method Details
-
getConstantExpression
ExpressionTree getConstantExpression()The constant expression for the case.- Returns:
- the constant expression
-