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

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

## Uses of PatternTreePREVIEW in com.sun.source.tree

Subinterfaces of PatternTreePREVIEW in com.sun.source.tree
Modifier and Type
Interface
Description
`interface`
`BindingPatternTree`
A binding pattern tree
`interface`
`GuardedPatternTreePREVIEW`
Preview.
A guard pattern tree.
`interface`
`ParenthesizedPatternTreePREVIEW`
Preview.
A tree node for a parenthesized pattern.
Methods in com.sun.source.tree that return PatternTreePREVIEW
Modifier and Type
Method
Description
`PatternTreePREVIEW`
GuardedPatternTree.`getPattern()`
The guarded pattern expression.
`PatternTreePREVIEW`
InstanceOfTree.`getPattern()`
Returns the tested pattern, or null if this instanceof does not use a pattern.
`PatternTreePREVIEW`
ParenthesizedPatternTree.`getPattern()`
Returns the pattern within the parentheses.