PatternTree (Java SE 15 & JDK 15)
Description: declaration: module: jdk.compiler, package: com.sun.source.tree, interface: PatternTree
Keywords: com.sun.source.tree.PatternTree interface

Module jdk.compiler
Package com.sun.source.tree

# Interface PatternTree

All Superinterfaces:
  `Tree`

All Known Subinterfaces:
  `BindingPatternTree`

    public interface PatternTree
    extends Tree

This interface is associated with pattern matching for instanceof, a preview feature of the Java language. Preview features may be removed in a future release, or upgraded to permanent features of the Java language.
A tree node used as the base class for the different kinds of statements.

Since:
  14

- ## 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`