- All Superinterfaces:
CaseLabelTreePREVIEW
, Tree
PatternCaseLabelTree
is a reflective preview API of the Java platform.
A case label element that refers to an expression
- Since:
- 19
-
Nested Class Summary
Nested classes/interfaces declared in interface com.sun.source.tree.Tree
Tree.Kind
-
Method Summary
The pattern for the case.
-
Method Details
-
getPattern
The pattern for the case.
- Returns:
- the pattern
-
getGuard
The guard for the case.
- Returns:
- the guard