Package Summary Overview Summary

### class:SimpleTreeVisitor [CHANGED]
- ## Field Summary
  Fields
  Modifier and Type | Field | Description
  --- | --- | ---
  `protected R` | `DEFAULT_VALUE` | The default value, returned by the `default action` .
- ## Constructor Summary
  Constructors
  Modifier | Constructor | Description
  --- | --- | ---
  `protected` | `SimpleTreeVisitor()` | Creates a visitor, with a DEFAULT_VALUE of `null`.
  `protected` | `SimpleTreeVisitor​(R defaultValue)` | Creates a visitor, with a specified DEFAULT_VALUE.
- ## Method Summary
  Modifier and Type | Method | Description
  --- | --- | ---
  `protected R` | `defaultAction​(Tree node, P p)` | The default action, used by all visit methods that are not overridden.
  `R` | `visit​(Tree node, P p)` | Invokes the appropriate visit method specific to the type of the node.
  `R` | `visit​(Iterable<? extends Tree> nodes, P p)` | Invokes the appropriate visit method on each of a sequence of nodes.
  `R` | `visitAnnotatedType​(AnnotatedTypeTree node, P p)` | Visits an AnnotatedTypeTree node.
  `R` | `visitAnnotation​(AnnotationTree node, P p)` | Visits an AnnotatedTree node.
  `R` | `visitArrayAccess​(ArrayAccessTree node, P p)` | Visits an ArrayAccessTree node.
  `R` | `visitArrayType​(ArrayTypeTree node, P p)` | Visits an ArrayTypeTree node.
  `R` | `visitAssert​(AssertTree node, P p)` | Visits an AssertTree node.
  `R` | `visitAssignment​(AssignmentTree node, P p)` | Visits an AssignmentTree node.
  `R` | `visitBinary​(BinaryTree node, P p)` | Visits a BinaryTree node.
  `R` | `visitBlock​(BlockTree node, P p)` | Visits a BlockTree node.
  `R` | `visitBreak​(BreakTree node, P p)` | Visits a BreakTree node.
  `R` | `visitCase​(CaseTree node, P p)` | Visits a CaseTree node.
  `R` | `visitCatch​(CatchTree node, P p)` | Visits a CatchTree node.
  `R` | `visitClass​(ClassTree node, P p)` | Visits a ClassTree node.
  `R` | `visitCompilationUnit​(CompilationUnitTree node, P p)` | Visits a CompilationUnitTree node.
  `R` | `visitCompoundAssignment​(CompoundAssignmentTree node, P p)` | Visits a CompoundAssignmentTree node.
  `R` | `visitConditionalExpression​(ConditionalExpressionTree node, P p)` | Visits a ConditionalExpressionTree node.
  `R` | `visitContinue​(ContinueTree node, P p)` | Visits a ContinueTree node.
  `R` | `visitDoWhileLoop​(DoWhileLoopTree node, P p)` | Visits a DoWhileTree node.
  `R` | `visitEmptyStatement​(EmptyStatementTree node, P p)` | Visits an EmptyStatementTree node.
  `R` | `visitEnhancedForLoop​(EnhancedForLoopTree node, P p)` | Visits an EnhancedForLoopTree node.
  `R` | `visitExpressionStatement​(ExpressionStatementTree node, P p)` | Visits an ExpressionStatementTree node.
  `R` | `visitForLoop​(ForLoopTree node, P p)` | Visits a ForLoopTree node.
  `R` | `visitIdentifier​(IdentifierTree node, P p)` | Visits an IdentifierTree node.
  `R` | `visitIf​(IfTree node, P p)` | Visits an IfTree node.
  `R` | `visitImport​(ImportTree node, P p)` | Visits an ImportTree node.
  `R` | `visitInstanceOf​(InstanceOfTree node, P p)` | Visits an InstanceOfTree node.
  `R` | `visitIntersectionType​(IntersectionTypeTree node, P p)` | Visits an IntersectionTypeTree node.
  `R` | `visitLabeledStatement​(LabeledStatementTree node, P p)` | Visits a LabeledStatementTree node.
  `R` | `visitLambdaExpression​(LambdaExpressionTree node, P p)` | Visits a LambdaExpressionTree node.
  `R` | `visitLiteral​(LiteralTree node, P p)` | Visits a LiteralTree node.
  `R` | `visitMemberReference​(MemberReferenceTree node, P p)` | Visits a MemberReferenceTree node.
  `R` | `visitMemberSelect​(MemberSelectTree node, P p)` | Visits a MemberSelectTree node.
  `R` | `visitMethod​(MethodTree node, P p)` | Visits a MethodTree node.
  `R` | `visitMethodInvocation​(MethodInvocationTree node, P p)` | Visits a MethodInvocationTree node.
  `R` | `visitModifiers​(ModifiersTree node, P p)` | Visits a ModifiersTree node.
  `R` | `visitNewArray​(NewArrayTree node, P p)` | Visits a NewArrayTree node.
  `R` | `visitNewClass​(NewClassTree node, P p)` | Visits a NewClassTree node.
  `R` | `visitOther​(Tree node, P p)` | Visits an unknown type of Tree node.
  `R` | `visitPackage​(PackageTree node, P p)` | Visits a PackageTree node.
  `R` | `visitParameterizedType​(ParameterizedTypeTree node, P p)` | Visits a ParameterizedTypeTree node.
  `R` | `visitParenthesized​(ParenthesizedTree node, P p)` | Visits a ParenthesizedTree node.
  `R` | `visitPrimitiveType​(PrimitiveTypeTree node, P p)` | Visits a PrimitiveTypeTree node.
  `R` | `visitReturn​(ReturnTree node, P p)` | Visits a ReturnTree node.
  `R` | `visitSwitch​(SwitchTree node, P p)` | Visits a SwitchTree node.
  `R` | `visitSwitchExpression​(SwitchExpressionTree node, P p)` | Deprecated, for removal: This API element is subject to removal in a future version. This method is modeling switch expressions, which are part of a preview feature and may be removed if the preview feature is removed.
  `R` | `visitSynchronized​(SynchronizedTree node, P p)` | Visits a SynchronizedTree node.
  `R` | `visitThrow​(ThrowTree node, P p)` | Visits a ThrowTree node.
  `R` | `visitTry​(TryTree node, P p)` | Visits a TryTree node.
  `R` | `visitTypeCast​(TypeCastTree node, P p)` | Visits a TypeCastTree node.
  `R` | `visitTypeParameter​(TypeParameterTree node, P p)` | Visits a TypeParameterTree node.
  `R` | `visitUnary​(UnaryTree node, P p)` | Visits a UnaryTree node.
  `R` | `visitUnionType​(UnionTypeTree node, P p)` | Visits a UnionTypeTree node.
  `R` | `visitVariable​(VariableTree node, P p)` | Visits a VariableTree node.
  `R` | `visitWhileLoop​(WhileLoopTree node, P p)` | Visits a WhileLoopTree node.
  `R` | `visitWildcard​(WildcardTree node, P p)` | Visits a WildcardTypeTree node.
  `R` | `visitYield​(YieldTree node, P p)` | Deprecated, for removal: This API element is subject to removal in a future version.
### Methods declared in class java.lang.Object `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` ### Methods declared in interface com.sun.source.tree.TreeVisitor `visitErroneous, visitExports, visitModule, visitOpens, visitProvides, visitRequires, visitUses`
- ## Field Summary
  Fields
  Modifier and Type | Field | Description
  --- | --- | ---
  `protected R` | `DEFAULT_VALUE` | The default value, returned by the `default action` .
- ## Constructor Summary
  Constructors
  Modifier | Constructor | Description
  --- | --- | ---
  `protected` | `SimpleTreeVisitor()` | Creates a visitor, with a DEFAULT_VALUE of `null`.
  `protected` | `SimpleTreeVisitor​(R defaultValue)` | Creates a visitor, with a specified DEFAULT_VALUE.
- ## Method Summary
  Modifier and Type | Method | Description
  --- | --- | ---
  `protected R` | `defaultAction​(Tree node, P p)` | The default action, used by all visit methods that are not overridden.
  `R` | `visit​(Tree node, P p)` | Invokes the appropriate visit method specific to the type of the node.
  `R` | `visit​(Iterable<? extends Tree> nodes, P p)` | Invokes the appropriate visit method on each of a sequence of nodes.
  `R` | `visitAnnotatedType​(AnnotatedTypeTree node, P p)` | Visits an AnnotatedTypeTree node.
  `R` | `visitAnnotation​(AnnotationTree node, P p)` | Visits an AnnotatedTree node.
  `R` | `visitArrayAccess​(ArrayAccessTree node, P p)` | Visits an ArrayAccessTree node.
  `R` | `visitArrayType​(ArrayTypeTree node, P p)` | Visits an ArrayTypeTree node.
  `R` | `visitAssert​(AssertTree node, P p)` | Visits an AssertTree node.
  `R` | `visitAssignment​(AssignmentTree node, P p)` | Visits an AssignmentTree node.
  `R` | `visitBinary​(BinaryTree node, P p)` | Visits a BinaryTree node.
  `R` | `visitBlock​(BlockTree node, P p)` | Visits a BlockTree node.
  `R` | `visitBreak​(BreakTree node, P p)` | Visits a BreakTree node.
  `R` | `visitCase​(CaseTree node, P p)` | Visits a CaseTree node.
  `R` | `visitCatch​(CatchTree node, P p)` | Visits a CatchTree node.
  `R` | `visitClass​(ClassTree node, P p)` | Visits a ClassTree node.
  `R` | `visitCompilationUnit​(CompilationUnitTree node, P p)` | Visits a CompilationUnitTree node.
  `R` | `visitCompoundAssignment​(CompoundAssignmentTree node, P p)` | Visits a CompoundAssignmentTree node.
  `R` | `visitConditionalExpression​(ConditionalExpressionTree node, P p)` | Visits a ConditionalExpressionTree node.
  `R` | `visitContinue​(ContinueTree node, P p)` | Visits a ContinueTree node.
  `R` | `visitDoWhileLoop​(DoWhileLoopTree node, P p)` | Visits a DoWhileTree node.
  `R` | `visitEmptyStatement​(EmptyStatementTree node, P p)` | Visits an EmptyStatementTree node.
  `R` | `visitEnhancedForLoop​(EnhancedForLoopTree node, P p)` | Visits an EnhancedForLoopTree node.
  `R` | `visitExpressionStatement​(ExpressionStatementTree node, P p)` | Visits an ExpressionStatementTree node.
  `R` | `visitForLoop​(ForLoopTree node, P p)` | Visits a ForLoopTree node.
  `R` | `visitIdentifier​(IdentifierTree node, P p)` | Visits an IdentifierTree node.
  `R` | `visitIf​(IfTree node, P p)` | Visits an IfTree node.
  `R` | `visitImport​(ImportTree node, P p)` | Visits an ImportTree node.
  `R` | `visitInstanceOf​(InstanceOfTree node, P p)` | Visits an InstanceOfTree node.
  `R` | `visitIntersectionType​(IntersectionTypeTree node, P p)` | Visits an IntersectionTypeTree node.
  `R` | `visitLabeledStatement​(LabeledStatementTree node, P p)` | Visits a LabeledStatementTree node.
  `R` | `visitLambdaExpression​(LambdaExpressionTree node, P p)` | Visits a LambdaExpressionTree node.
  `R` | `visitLiteral​(LiteralTree node, P p)` | Visits a LiteralTree node.
  `R` | `visitMemberReference​(MemberReferenceTree node, P p)` | Visits a MemberReferenceTree node.
  `R` | `visitMemberSelect​(MemberSelectTree node, P p)` | Visits a MemberSelectTree node.
  `R` | `visitMethod​(MethodTree node, P p)` | Visits a MethodTree node.
  `R` | `visitMethodInvocation​(MethodInvocationTree node, P p)` | Visits a MethodInvocationTree node.
  `R` | `visitModifiers​(ModifiersTree node, P p)` | Visits a ModifiersTree node.
  `R` | `visitNewArray​(NewArrayTree node, P p)` | Visits a NewArrayTree node.
  `R` | `visitNewClass​(NewClassTree node, P p)` | Visits a NewClassTree node.
  `R` | `visitOther​(Tree node, P p)` | Visits an unknown type of Tree node.
  `R` | `visitPackage​(PackageTree node, P p)` | Visits a PackageTree node.
  `R` | `visitParameterizedType​(ParameterizedTypeTree node, P p)` | Visits a ParameterizedTypeTree node.
  `R` | `visitParenthesized​(ParenthesizedTree node, P p)` | Visits a ParenthesizedTree node.
  `R` | `visitPrimitiveType​(PrimitiveTypeTree node, P p)` | Visits a PrimitiveTypeTree node.
  `R` | `visitReturn​(ReturnTree node, P p)` | Visits a ReturnTree node.
  `R` | `visitSwitch​(SwitchTree node, P p)` | Visits a SwitchTree node.
  `R` | `visitSwitchExpression​(SwitchExpressionTree node, P p)` | Deprecated, for removal: This API element is subject to removal in a future version. This method is modeling switch expressions, which are part of a preview feature and may be removed if the preview feature is removed.
  `R` | `visitSynchronized​(SynchronizedTree node, P p)` | Visits a SynchronizedTree node.
  `R` | `visitThrow​(ThrowTree node, P p)` | Visits a ThrowTree node.
  `R` | `visitTry​(TryTree node, P p)` | Visits a TryTree node.
  `R` | `visitTypeCast​(TypeCastTree node, P p)` | Visits a TypeCastTree node.
  `R` | `visitTypeParameter​(TypeParameterTree node, P p)` | Visits a TypeParameterTree node.
  `R` | `visitUnary​(UnaryTree node, P p)` | Visits a UnaryTree node.
  `R` | `visitUnionType​(UnionTypeTree node, P p)` | Visits a UnionTypeTree node.
  `R` | `visitVariable​(VariableTree node, P p)` | Visits a VariableTree node.
  `R` | `visitWhileLoop​(WhileLoopTree node, P p)` | Visits a WhileLoopTree node.
  `R` | `visitWildcard​(WildcardTree node, P p)` | Visits a WildcardTypeTree node.
- ### Methods declared in class java.lang.Object `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` ### Methods declared in interface com.sun.source.tree.TreeVisitor `visitErroneous, visitExports, visitModule, visitOpens, visitProvides, visitRequires, visitUses` | ## Field Summary
  Fields
  Modifier and Type | Field | Description
  --- | --- | ---
  `protected R` | `DEFAULT_VALUE` | The default value, returned by the `default action` .
- ## Constructor Summary
  Constructors
  Modifier | Constructor | Description
  --- | --- | ---
  `protected` | `SimpleTreeVisitor()` | Creates a visitor, with a DEFAULT_VALUE of `null`.
  `protected` | `SimpleTreeVisitor​(R defaultValue)` | Creates a visitor, with a specified DEFAULT_VALUE.
- ## Method Summary
  Modifier and Type | Method | Description
  --- | --- | ---
  `protected R` | `defaultAction​(Tree node, P p)` | The default action, used by all visit methods that are not overridden.
  `R` | `visit​(Tree node, P p)` | Invokes the appropriate visit method specific to the type of the node.
  `R` | `visit​(Iterable<? extends Tree> nodes, P p)` | Invokes the appropriate visit method on each of a sequence of nodes.
  `R` | `visitAnnotatedType​(AnnotatedTypeTree node, P p)` | Visits an AnnotatedTypeTree node.
  `R` | `visitAnnotation​(AnnotationTree node, P p)` | Visits an AnnotatedTree node.
  `R` | `visitArrayAccess​(ArrayAccessTree node, P p)` | Visits an ArrayAccessTree node.
  `R` | `visitArrayType​(ArrayTypeTree node, P p)` | Visits an ArrayTypeTree node.
  `R` | `visitAssert​(AssertTree node, P p)` | Visits an AssertTree node.
  `R` | `visitAssignment​(AssignmentTree node, P p)` | Visits an AssignmentTree node.
  `R` | `visitBinary​(BinaryTree node, P p)` | Visits a BinaryTree node.
  `R` | `visitBlock​(BlockTree node, P p)` | Visits a BlockTree node.
  `R` | `visitBreak​(BreakTree node, P p)` | Visits a BreakTree node.
  `R` | `visitCase​(CaseTree node, P p)` | Visits a CaseTree node.
  `R` | `visitCatch​(CatchTree node, P p)` | Visits a CatchTree node.
  `R` | `visitClass​(ClassTree node, P p)` | Visits a ClassTree node.
  `R` | `visitCompilationUnit​(CompilationUnitTree node, P p)` | Visits a CompilationUnitTree node.
  `R` | `visitCompoundAssignment​(CompoundAssignmentTree node, P p)` | Visits a CompoundAssignmentTree node.
  `R` | `visitConditionalExpression​(ConditionalExpressionTree node, P p)` | Visits a ConditionalExpressionTree node.
  `R` | `visitContinue​(ContinueTree node, P p)` | Visits a ContinueTree node.
  `R` | `visitDoWhileLoop​(DoWhileLoopTree node, P p)` | Visits a DoWhileTree node.
  `R` | `visitEmptyStatement​(EmptyStatementTree node, P p)` | Visits an EmptyStatementTree node.
  `R` | `visitEnhancedForLoop​(EnhancedForLoopTree node, P p)` | Visits an EnhancedForLoopTree node.
  `R` | `visitExpressionStatement​(ExpressionStatementTree node, P p)` | Visits an ExpressionStatementTree node.
  `R` | `visitForLoop​(ForLoopTree node, P p)` | Visits a ForLoopTree node.
  `R` | `visitIdentifier​(IdentifierTree node, P p)` | Visits an IdentifierTree node.
  `R` | `visitIf​(IfTree node, P p)` | Visits an IfTree node.
  `R` | `visitImport​(ImportTree node, P p)` | Visits an ImportTree node.
  `R` | `visitInstanceOf​(InstanceOfTree node, P p)` | Visits an InstanceOfTree node.
  `R` | `visitIntersectionType​(IntersectionTypeTree node, P p)` | Visits an IntersectionTypeTree node.
  `R` | `visitLabeledStatement​(LabeledStatementTree node, P p)` | Visits a LabeledStatementTree node.
  `R` | `visitLambdaExpression​(LambdaExpressionTree node, P p)` | Visits a LambdaExpressionTree node.
  `R` | `visitLiteral​(LiteralTree node, P p)` | Visits a LiteralTree node.
  `R` | `visitMemberReference​(MemberReferenceTree node, P p)` | Visits a MemberReferenceTree node.
  `R` | `visitMemberSelect​(MemberSelectTree node, P p)` | Visits a MemberSelectTree node.
  `R` | `visitMethod​(MethodTree node, P p)` | Visits a MethodTree node.
  `R` | `visitMethodInvocation​(MethodInvocationTree node, P p)` | Visits a MethodInvocationTree node.
  `R` | `visitModifiers​(ModifiersTree node, P p)` | Visits a ModifiersTree node.
  `R` | `visitNewArray​(NewArrayTree node, P p)` | Visits a NewArrayTree node.
  `R` | `visitNewClass​(NewClassTree node, P p)` | Visits a NewClassTree node.
  `R` | `visitOther​(Tree node, P p)` | Visits an unknown type of Tree node.
  `R` | `visitPackage​(PackageTree node, P p)` | Visits a PackageTree node.
  `R` | `visitParameterizedType​(ParameterizedTypeTree node, P p)` | Visits a ParameterizedTypeTree node.
  `R` | `visitParenthesized​(ParenthesizedTree node, P p)` | Visits a ParenthesizedTree node.
  `R` | `visitPrimitiveType​(PrimitiveTypeTree node, P p)` | Visits a PrimitiveTypeTree node.
  `R` | `visitReturn​(ReturnTree node, P p)` | Visits a ReturnTree node.
  `R` | `visitSwitch​(SwitchTree node, P p)` | Visits a SwitchTree node.
  `R` | `visitSwitchExpression​(SwitchExpressionTree node, P p)` | Deprecated, for removal: This API element is subject to removal in a future version. This method is modeling switch expressions, which are part of a preview feature and may be removed if the preview feature is removed.
  `R` | `visitSynchronized​(SynchronizedTree node, P p)` | Visits a SynchronizedTree node.
  `R` | `visitThrow​(ThrowTree node, P p)` | Visits a ThrowTree node.
  `R` | `visitTry​(TryTree node, P p)` | Visits a TryTree node.
  `R` | `visitTypeCast​(TypeCastTree node, P p)` | Visits a TypeCastTree node.
  `R` | `visitTypeParameter​(TypeParameterTree node, P p)` | Visits a TypeParameterTree node.
  `R` | `visitUnary​(UnaryTree node, P p)` | Visits a UnaryTree node.
  `R` | `visitUnionType​(UnionTypeTree node, P p)` | Visits a UnionTypeTree node.
  `R` | `visitVariable​(VariableTree node, P p)` | Visits a VariableTree node.
  `R` | `visitWhileLoop​(WhileLoopTree node, P p)` | Visits a WhileLoopTree node.
  `R` | `visitWildcard​(WildcardTree node, P p)` | Visits a WildcardTypeTree node.
  `R` | `visitYield​(YieldTree node, P p)` | Deprecated, for removal: This API element is subject to removal in a future version.
### Methods declared in class java.lang.Object `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` ### Methods declared in interface com.sun.source.tree.TreeVisitor `visitErroneous, visitExports, visitModule, visitOpens, visitProvides, visitRequires, visitUses`

### method:visitBreak(com.sun.source.tree.BreakTree,P) [CHANGED]
    public R visitBreak​(BreakTree node,
                        P p)
Visits a BreakTree node. This implementation calls `defaultAction`. Specified by: `visitBreak` in interface `TreeVisitor<R,​P>` Parameters: `node` - the node being visited `p` - a parameter value Returns: the result of `defaultAction` ### visitYield
    public R visitBreak​(BreakTree node,
                        P p)
Visits a BreakTree node. This implementation calls `defaultAction`. Specified by: `visitBreak` in interface `TreeVisitor<R,​P>` Parameters: `node` - the node being visited `p` - a parameter value Returns: the result of `defaultAction` ### visitContinue |
    public R visitBreak​(BreakTree node,
                        P p)
Visits a BreakTree node. This implementation calls `defaultAction`. Specified by: `visitBreak` in interface `TreeVisitor<R,​P>` Parameters: `node` - the node being visited `p` - a parameter value Returns: the result of `defaultAction` ### visitYield

### method:visitYield(com.sun.source.tree.YieldTree,P) [ADDED]
    @Deprecated(forRemoval=true,
                since="13")
    public R visitYield​(YieldTree node,
                        P p)
Deprecated, for removal: This API element is subject to removal in a future version. Visits a YieldTree node. This implementation calls `defaultAction`. Specified by: `visitYield` in interface `TreeVisitor<R,​P>` Parameters: `node` - the node being visited `p` - a parameter value Returns: the result of `defaultAction` ### visitContinue