Uses of Interface com.sun.source.tree.PatternTree (Java SE 14 & JDK 14)
Description: use: module: jdk.compiler, package: com.sun.source.tree, interface: PatternTree

# Uses of Interface
com.sun.source.tree.PatternTree

Packages that use PatternTree
Package | Description
--- | ---
com.sun.source.tree | Provides interfaces to represent source code as abstract syntax trees (AST).

- ## Uses of PatternTree in com.sun.source.tree

  Subinterfaces of PatternTree in com.sun.source.tree
  Modifier and Type | Interface | Description
  --- | --- | ---
  `interface` | `BindingPatternTree` | Associated with pattern matching for instanceof, a preview feature of the Java language. A binding pattern tree

  Methods in com.sun.source.tree that return PatternTree
  Modifier and Type | Method | Description
  --- | --- | ---
  `PatternTree` | InstanceOfTree.`getPattern()` | Associated with pattern matching for instanceof, a preview feature of the Java language. Returns the tested pattern, or null if this instanceof does not use a pattern.