W3cubDocs

/OpenJDK 21

Interface AnyPatternTree

All Superinterfaces:
PatternTree, Tree
public interface AnyPatternTree extends PatternTree
AnyPatternTree is a preview API of the Java platform.
Programs can only use AnyPatternTree when preview features are enabled.
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

Nested classes/interfaces declared in interface com.sun.source.tree.Tree

Tree.Kind

Method Summary

Methods declared in interface com.sun.source.tree.Tree

accept, getKind

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.compiler/com/sun/source/tree/AnyPatternTree.html