# Preview API

## Contents

- Interfaces
- Classes
- Exception Classes
- Methods
- Enum Constants

- Interfaces
  Interface
  Description
  com.sun.source.tree.CaseLabelTreePREVIEW
  A marker interface for `Tree`s that may be used as `CaseTree` labels.
  com.sun.source.tree.DeconstructionPatternTreePREVIEW
  A deconstruction pattern tree.
  com.sun.source.tree.DefaultCaseLabelTreePREVIEW
  A case label that marks `default` in `case null, default`.
  com.sun.source.tree.ParenthesizedPatternTreePREVIEW
  A tree node for a parenthesized pattern.

- Classes
  Class
  Description
  java.lang.runtime.SwitchBootstrapsPREVIEW
  Bootstrap methods for linking `invokedynamic` call sites that implement the selection functionality of the `switch` statement.

- Exception Classes
  Exception Class
  Description
  java.lang.MatchExceptionPREVIEW
  Thrown to indicate an unexpected failure in pattern matching.

- Methods
  Method
  Description
  com.sun.source.tree.CaseTree.getLabels()PREVIEW
  Returns the labels for this case.
  com.sun.source.tree.PatternTree.getGuard()PREVIEW
  The guard for the case.
  com.sun.source.tree.TreeVisitor.visitDeconstructionPattern(DeconstructionPatternTree, P)PREVIEW
  Visits a `DeconstructionPatternTree` node.
  com.sun.source.tree.TreeVisitor.visitDefaultCaseLabel(DefaultCaseLabelTree, P)PREVIEW
  Visits a `DefaultCaseLabelTree` node.
  com.sun.source.tree.TreeVisitor.visitParenthesizedPattern(ParenthesizedPatternTree, P)PREVIEW
  Visits a `ParenthesizedPatternTree` node.
  com.sun.source.util.SimpleTreeVisitor.visitDeconstructionPattern(DeconstructionPatternTree, P)PREVIEW
  Visits a `DeconstructionPatternTree` node.
  com.sun.source.util.SimpleTreeVisitor.visitDefaultCaseLabel(DefaultCaseLabelTree, P)PREVIEW
  Visits a `DefaultCaseLabelTree` node.
  com.sun.source.util.SimpleTreeVisitor.visitParenthesizedPattern(ParenthesizedPatternTree, P)PREVIEW
  Visits a `ParenthesizedPatternTree` node.
  com.sun.source.util.TreeScanner.visitDeconstructionPattern(DeconstructionPatternTree, P)PREVIEW
  Visits a `DeconstructionPatternTree` node.
  com.sun.source.util.TreeScanner.visitDefaultCaseLabel(DefaultCaseLabelTree, P)PREVIEW
  Visits a `DefaultCaseLabelTree` node.
  com.sun.source.util.TreeScanner.visitParenthesizedPattern(ParenthesizedPatternTree, P)PREVIEW
  Visits a `ParenthesizedPatternTree` node.

- Enum Constants
  Enum Constant
  Description
  com.sun.source.tree.Tree.Kind.DECONSTRUCTION_PATTERNPREVIEW
  Used for instances of `DeconstructionPatternTree`PREVIEW.
  com.sun.source.tree.Tree.Kind.DEFAULT_CASE_LABELPREVIEW
  Used for instances of `DefaultCaseLabelTree`PREVIEW.
  com.sun.source.tree.Tree.Kind.PARENTHESIZED_PATTERNPREVIEW
  Used for instances of `ParenthesizedPatternTree`PREVIEW.