APIdia Launch Partner
Top Description
com.sun.source.tree

public Interface AnyPatternTree

extends PatternTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCAnyPattern
Imports
jdk.internal.javac.PreviewFeature

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(_)) {}
Since
22
Java Language Specification
14.30.1 Kinds of Patterns