Class TreeScannerWithDefaults
java.lang.Object
com.sun.source.util.TreeScanner<Void,Void>
org.checkerframework.framework.ajava.TreeScannerWithDefaults
- All Implemented Interfaces:
TreeVisitor<Void,
Void>
- Direct Known Subclasses:
ExpectedTreesVisitor
A visitor that performs some default action on a tree and then all of its children. To use this
class, override
defaultAction
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
defaultAction
(Tree tree) Action performed on each visited tree.visitAnnotatedType
(AnnotatedTypeTree tree, Void p) visitAnnotation
(AnnotationTree tree, Void p) visitArrayAccess
(ArrayAccessTree tree, Void p) visitArrayType
(ArrayTypeTree tree, Void p) visitAssert
(AssertTree tree, Void p) visitAssignment
(AssignmentTree tree, Void p) visitBinary
(BinaryTree tree, Void p) visitBindingPattern17
(Tree tree, Void p) Visit a binding pattern tree.visitBlock
(BlockTree tree, Void p) visitBreak
(BreakTree tree, Void p) visitCatch
(CatchTree tree, Void p) visitClass
(ClassTree tree, Void p) visitCompilationUnit
(CompilationUnitTree tree, Void p) visitContinue
(ContinueTree tree, Void p) visitDoWhileLoop
(DoWhileLoopTree tree, Void p) visitEmptyStatement
(EmptyStatementTree tree, Void p) visitEnhancedForLoop
(EnhancedForLoopTree tree, Void p) visitErroneous
(ErroneousTree tree, Void p) visitExports
(ExportsTree tree, Void p) visitForLoop
(ForLoopTree tree, Void p) visitIdentifier
(IdentifierTree tree, Void p) visitImport
(ImportTree tree, Void p) visitInstanceOf
(InstanceOfTree tree, Void p) visitLiteral
(LiteralTree tree, Void p) visitMemberReference
(MemberReferenceTree tree, Void p) visitMemberSelect
(MemberSelectTree tree, Void p) visitMethod
(MethodTree tree, Void p) visitModifiers
(ModifiersTree tree, Void p) visitModule
(ModuleTree tree, Void p) visitNewArray
(NewArrayTree tree, Void p) visitNewClass
(NewClassTree tree, Void p) visitOpens
(OpensTree tree, Void p) visitOther
(Tree tree, Void p) visitPackage
(PackageTree tree, Void p) visitParenthesized
(ParenthesizedTree tree, Void p) visitPrimitiveType
(PrimitiveTypeTree tree, Void p) visitProvides
(ProvidesTree tree, Void p) visitRequires
(RequiresTree tree, Void p) visitReturn
(ReturnTree tree, Void p) visitSwitch
(SwitchTree tree, Void p) visitSwitchExpression17
(Tree tree, Void p) Visit a switch expression tree.visitSynchronized
(SynchronizedTree tree, Void p) visitThrow
(ThrowTree tree, Void p) visitTypeCast
(TypeCastTree tree, Void p) visitTypeParameter
(TypeParameterTree tree, Void p) visitUnary
(UnaryTree tree, Void p) visitUnionType
(UnionTypeTree tree, Void p) visitVariable
(VariableTree tree, Void p) visitWhileLoop
(WhileLoopTree tree, Void p) visitWildcard
(WildcardTree tree, Void p) visitYield17
(Tree tree, Void p) Visit a yield tree.Methods inherited from class com.sun.source.util.TreeScanner
reduce, scan, visitBindingPattern, visitDefaultCaseLabel, visitGuardedPattern, visitParenthesizedPattern, visitSwitchExpression, visitYield
-
Constructor Details
-
TreeScannerWithDefaults
public TreeScannerWithDefaults()
-
-
Method Details
-
defaultAction
Action performed on each visited tree.- Parameters:
tree
- tree to perform action on
-
scan
- Overrides:
scan
in classTreeScanner<Void,
Void>
-
visitAnnotatedType
- Specified by:
visitAnnotatedType
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitAnnotatedType
in classTreeScanner<Void,
Void>
-
visitAnnotation
- Specified by:
visitAnnotation
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitAnnotation
in classTreeScanner<Void,
Void>
-
visitArrayAccess
- Specified by:
visitArrayAccess
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitArrayAccess
in classTreeScanner<Void,
Void>
-
visitArrayType
- Specified by:
visitArrayType
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitArrayType
in classTreeScanner<Void,
Void>
-
visitAssert
- Specified by:
visitAssert
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitAssert
in classTreeScanner<Void,
Void>
-
visitAssignment
- Specified by:
visitAssignment
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitAssignment
in classTreeScanner<Void,
Void>
-
visitBinary
- Specified by:
visitBinary
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitBinary
in classTreeScanner<Void,
Void>
-
visitBindingPattern17
Visit a binding pattern tree.- Parameters:
tree
- a binding pattern treep
- null- Returns:
- null
-
visitBlock
- Specified by:
visitBlock
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitBlock
in classTreeScanner<Void,
Void>
-
visitBreak
- Specified by:
visitBreak
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitBreak
in classTreeScanner<Void,
Void>
-
visitCase
- Specified by:
visitCase
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitCase
in classTreeScanner<Void,
Void>
-
visitCatch
- Specified by:
visitCatch
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitCatch
in classTreeScanner<Void,
Void>
-
visitClass
- Specified by:
visitClass
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitClass
in classTreeScanner<Void,
Void>
-
visitCompilationUnit
- Specified by:
visitCompilationUnit
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitCompilationUnit
in classTreeScanner<Void,
Void>
-
visitCompoundAssignment
- Specified by:
visitCompoundAssignment
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitCompoundAssignment
in classTreeScanner<Void,
Void>
-
visitConditionalExpression
- Specified by:
visitConditionalExpression
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitConditionalExpression
in classTreeScanner<Void,
Void>
-
visitContinue
- Specified by:
visitContinue
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitContinue
in classTreeScanner<Void,
Void>
-
visitDoWhileLoop
- Specified by:
visitDoWhileLoop
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitDoWhileLoop
in classTreeScanner<Void,
Void>
-
visitEmptyStatement
- Specified by:
visitEmptyStatement
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitEmptyStatement
in classTreeScanner<Void,
Void>
-
visitEnhancedForLoop
- Specified by:
visitEnhancedForLoop
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitEnhancedForLoop
in classTreeScanner<Void,
Void>
-
visitErroneous
- Specified by:
visitErroneous
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitErroneous
in classTreeScanner<Void,
Void>
-
visitExports
- Specified by:
visitExports
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitExports
in classTreeScanner<Void,
Void>
-
visitExpressionStatement
- Specified by:
visitExpressionStatement
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitExpressionStatement
in classTreeScanner<Void,
Void>
-
visitForLoop
- Specified by:
visitForLoop
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitForLoop
in classTreeScanner<Void,
Void>
-
visitIdentifier
- Specified by:
visitIdentifier
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitIdentifier
in classTreeScanner<Void,
Void>
-
visitIf
- Specified by:
visitIf
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitIf
in classTreeScanner<Void,
Void>
-
visitImport
- Specified by:
visitImport
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitImport
in classTreeScanner<Void,
Void>
-
visitInstanceOf
- Specified by:
visitInstanceOf
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitInstanceOf
in classTreeScanner<Void,
Void>
-
visitIntersectionType
- Specified by:
visitIntersectionType
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitIntersectionType
in classTreeScanner<Void,
Void>
-
visitLabeledStatement
- Specified by:
visitLabeledStatement
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitLabeledStatement
in classTreeScanner<Void,
Void>
-
visitLambdaExpression
- Specified by:
visitLambdaExpression
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitLambdaExpression
in classTreeScanner<Void,
Void>
-
visitLiteral
- Specified by:
visitLiteral
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitLiteral
in classTreeScanner<Void,
Void>
-
visitMemberReference
- Specified by:
visitMemberReference
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitMemberReference
in classTreeScanner<Void,
Void>
-
visitMemberSelect
- Specified by:
visitMemberSelect
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitMemberSelect
in classTreeScanner<Void,
Void>
-
visitMethod
- Specified by:
visitMethod
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitMethod
in classTreeScanner<Void,
Void>
-
visitMethodInvocation
- Specified by:
visitMethodInvocation
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitMethodInvocation
in classTreeScanner<Void,
Void>
-
visitModifiers
- Specified by:
visitModifiers
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitModifiers
in classTreeScanner<Void,
Void>
-
visitModule
- Specified by:
visitModule
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitModule
in classTreeScanner<Void,
Void>
-
visitNewArray
- Specified by:
visitNewArray
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitNewArray
in classTreeScanner<Void,
Void>
-
visitNewClass
- Specified by:
visitNewClass
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitNewClass
in classTreeScanner<Void,
Void>
-
visitOpens
- Specified by:
visitOpens
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitOpens
in classTreeScanner<Void,
Void>
-
visitOther
- Specified by:
visitOther
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitOther
in classTreeScanner<Void,
Void>
-
visitPackage
- Specified by:
visitPackage
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitPackage
in classTreeScanner<Void,
Void>
-
visitParameterizedType
- Specified by:
visitParameterizedType
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitParameterizedType
in classTreeScanner<Void,
Void>
-
visitParenthesized
- Specified by:
visitParenthesized
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitParenthesized
in classTreeScanner<Void,
Void>
-
visitPrimitiveType
- Specified by:
visitPrimitiveType
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitPrimitiveType
in classTreeScanner<Void,
Void>
-
visitProvides
- Specified by:
visitProvides
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitProvides
in classTreeScanner<Void,
Void>
-
visitRequires
- Specified by:
visitRequires
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitRequires
in classTreeScanner<Void,
Void>
-
visitReturn
- Specified by:
visitReturn
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitReturn
in classTreeScanner<Void,
Void>
-
visitSwitch
- Specified by:
visitSwitch
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitSwitch
in classTreeScanner<Void,
Void>
-
visitSwitchExpression17
Visit a switch expression tree.- Parameters:
tree
- switch expression treep
- null- Returns:
- null
-
visitSynchronized
- Specified by:
visitSynchronized
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitSynchronized
in classTreeScanner<Void,
Void>
-
visitThrow
- Specified by:
visitThrow
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitThrow
in classTreeScanner<Void,
Void>
-
visitTry
- Specified by:
visitTry
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitTry
in classTreeScanner<Void,
Void>
-
visitTypeCast
- Specified by:
visitTypeCast
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitTypeCast
in classTreeScanner<Void,
Void>
-
visitTypeParameter
- Specified by:
visitTypeParameter
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitTypeParameter
in classTreeScanner<Void,
Void>
-
visitUnary
- Specified by:
visitUnary
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitUnary
in classTreeScanner<Void,
Void>
-
visitUnionType
- Specified by:
visitUnionType
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitUnionType
in classTreeScanner<Void,
Void>
-
visitUses
- Specified by:
visitUses
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitUses
in classTreeScanner<Void,
Void>
-
visitVariable
- Specified by:
visitVariable
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitVariable
in classTreeScanner<Void,
Void>
-
visitWhileLoop
- Specified by:
visitWhileLoop
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitWhileLoop
in classTreeScanner<Void,
Void>
-
visitWildcard
- Specified by:
visitWildcard
in interfaceTreeVisitor<Void,
Void> - Overrides:
visitWildcard
in classTreeScanner<Void,
Void>
-
visitYield17
Visit a yield tree.- Parameters:
tree
- a yield treep
- null- Returns:
- null
-