# Preview API

## Contents

- Interfaces
- 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.DefaultCaseLabelTreePREVIEW
  A case label that marks `default` in `case null, default`.
  com.sun.source.tree.GuardedPatternTreePREVIEW
  A guard pattern tree.
  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.

- Methods
  Method
  Description
  com.sun.source.tree.CaseTree.getLabels()PREVIEW
  Returns the labels for this case.
  com.sun.source.tree.ClassTree.getPermitsClause()PREVIEW
  Returns the subclasses permitted by this type declaration.
  com.sun.source.tree.TreeVisitor.visitDefaultCaseLabel​(DefaultCaseLabelTree, P)PREVIEW
  Visits a DefaultCaseLabelTree node.
  com.sun.source.tree.TreeVisitor.visitGuardedPattern​(GuardedPatternTree, P)PREVIEW
  Visits an GuardPatternTree node.
  com.sun.source.tree.TreeVisitor.visitParenthesizedPattern​(ParenthesizedPatternTree, P)PREVIEW
  Visits an AndPatternTree node.
  com.sun.source.util.SimpleTreeVisitor.visitDefaultCaseLabel​(DefaultCaseLabelTree, P)PREVIEW
  Visits a DefaultCaseLabelTree node.
  com.sun.source.util.SimpleTreeVisitor.visitGuardedPattern​(GuardedPatternTree, P)PREVIEW
  Visits an GuardPatternTree node.
  com.sun.source.util.SimpleTreeVisitor.visitParenthesizedPattern​(ParenthesizedPatternTree, P)PREVIEW
  Visits an AndPatternTree node.
  com.sun.source.util.TreeScanner.visitDefaultCaseLabel​(DefaultCaseLabelTree, P)PREVIEW
  Visits a DefaultCaseLabelTree node.
  com.sun.source.util.TreeScanner.visitGuardedPattern​(GuardedPatternTree, P)PREVIEW
  Visits an GuardPatternTree node.
  com.sun.source.util.TreeScanner.visitParenthesizedPattern​(ParenthesizedPatternTree, P)PREVIEW
  Visits an AndPatternTree node.
  java.lang.Class.getPermittedSubclasses()PREVIEW
  Returns an array containing `Class` objects representing the direct subinterfaces or subclasses permitted to extend or implement this class or interface if it is sealed.
  java.lang.Class.isSealed()PREVIEW
  Returns `true` if and only if this `Class` object represents a sealed class or interface.
  javax.lang.model.element.TypeElement.getPermittedSubclasses()PREVIEW
  Returns the permitted classes of this class or interface element in declaration order.

- Enum Constants
  Enum Constant
  Description
  com.sun.source.tree.Tree.Kind.DEFAULT_CASE_LABELPREVIEW
  Used for instances of `DefaultCaseLabelTree`PREVIEW.
  com.sun.source.tree.Tree.Kind.GUARD_PATTERNPREVIEW
  Used for instances of `GuardedPatternTree`PREVIEW.
  com.sun.source.tree.Tree.Kind.PARENTHESIZED_PATTERNPREVIEW
  Used for instances of `ParenthesizedPatternTree`PREVIEW.
  javax.lang.model.element.Modifier.NON_SEALEDPREVIEW
  The modifier `non-sealed`
  javax.lang.model.element.Modifier.SEALEDPREVIEW
  The modifier `sealed`