- All Superinterfaces:
PatternTree
,Tree
AnyPatternTree
is a 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 tree node for a binding pattern that matches a pattern
with a variable of any name and a type of the match candidate;
an unnamed pattern.
For example the use of underscore
_
below:
if (r instanceof R(_)) {}
- See Java Language Specification:
-
14.30.1 Kinds of Patterns
- Since:
- 21
-
Nested Class Summary
-
Method Summary
AnyPatternTree
when preview features are enabled.