- All Superinterfaces:
CaseLabelTreePREVIEW
,Tree
- All Known Subinterfaces:
BindingPatternTree
,ParenthesizedPatternTreePREVIEW
PatternTree
relies on preview features of the Java platform:
PatternTree
refers to one or more reflective preview APIs:CaseLabelTree
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A tree node used as the base class for the different kinds of
patterns.
- Since:
- 16
-
Nested Class Summary
-
Method Summary
-
Method Details
-
getGuard
ExpressionTree getGuard()getGuard
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.The guard for the case.- Returns:
- the guard
- Since:
- 19
-
PatternTree
when preview features are enabled.