public class DefaultJointVisitor extends JointJavacJavaParserVisitor
process
methods do nothing. To use
this class, extend it and override a process
method.DEFAULT_VALUE
Constructor and Description |
---|
DefaultJointVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
processAnnotatedType(AnnotatedTypeTree javacTree,
com.github.javaparser.ast.Node javaParserNode)
Process an
AnnotatedTypeTree . |
void |
processAnnotation(AnnotationTree javacTree,
com.github.javaparser.ast.expr.MarkerAnnotationExpr javaParserNode)
Process an
AnnotationTree with no arguments like @MyAnno . |
void |
processAnnotation(AnnotationTree javacTree,
com.github.javaparser.ast.expr.NormalAnnotationExpr javaParserNode)
Process an
AnnotationTree with multiple key-value pairs like @MyAnno(a=5,
b=10) . |
void |
processAnnotation(AnnotationTree javacTree,
com.github.javaparser.ast.expr.SingleMemberAnnotationExpr javaParserNode)
Process an
AnnotationTree with a single argument like MyAnno(5) . |
void |
processArrayAccess(ArrayAccessTree javacTree,
com.github.javaparser.ast.expr.ArrayAccessExpr javaParserNode)
Process an
ArrayAccessTree . |
void |
processArrayType(ArrayTypeTree javacTree,
com.github.javaparser.ast.type.ArrayType javaParserNode)
Process an
ArrayTypeTree . |
void |
processAssert(AssertTree javacTree,
com.github.javaparser.ast.stmt.AssertStmt javaParserNode)
Process an
AssertTree . |
void |
processAssignment(AssignmentTree javacTree,
com.github.javaparser.ast.expr.AssignExpr javaParserNode)
Process an
AssignmentTree . |
void |
processBinary(BinaryTree javacTree,
com.github.javaparser.ast.expr.BinaryExpr javaParserNode)
Process a
BinaryTree . |
void |
processBlock(BlockTree javacTree,
com.github.javaparser.ast.stmt.BlockStmt javaParserNode)
Process a
BlockTree . |
void |
processBreak(BreakTree javacTree,
com.github.javaparser.ast.stmt.BreakStmt javaParserNode)
Process a
BreakTree . |
void |
processCase(CaseTree javacTree,
com.github.javaparser.ast.stmt.SwitchEntry javaParserNode)
Process a
CaseTree . |
void |
processCatch(CatchTree javacTree,
com.github.javaparser.ast.stmt.CatchClause javaParserNode)
Process a
CatchTree . |
void |
processClass(ClassTree javacTree,
com.github.javaparser.ast.body.AnnotationDeclaration javaParserNode)
Process a
ClassTree representing an annotation declaration. |
void |
processClass(ClassTree javacTree,
com.github.javaparser.ast.body.ClassOrInterfaceDeclaration javaParserNode)
Process a
ClassTree representing a class or interface declaration. |
void |
processClass(ClassTree javacTree,
com.github.javaparser.ast.body.EnumDeclaration javaParserNode)
Process a
ClassTree representing an enum declaration. |
void |
processClass(ClassTree javacTree,
com.github.javaparser.ast.body.RecordDeclaration javaParserNode)
Process a
ClassTree representing a record declaration. |
void |
processCompilationUnit(CompilationUnitTree javacTree,
com.github.javaparser.ast.CompilationUnit javaParserNode)
Process a
CompilationUnitTree . |
void |
processCompoundAssignment(CompoundAssignmentTree javacTree,
com.github.javaparser.ast.expr.AssignExpr javaParserNode)
Process a
CompoundAssignmentTree . |
void |
processConditionalExpression(ConditionalExpressionTree javacTree,
com.github.javaparser.ast.expr.ConditionalExpr javaParserNode)
Process a
ConditionalExpressionTree . |
void |
processContinue(ContinueTree javacTree,
com.github.javaparser.ast.stmt.ContinueStmt javaParserNode)
Process a
ContinueTree . |
void |
processDoWhileLoop(DoWhileLoopTree javacTree,
com.github.javaparser.ast.stmt.DoStmt javaParserNode)
Process a
DoWhileLoopTree . |
void |
processEmptyStatement(EmptyStatementTree javacTree,
com.github.javaparser.ast.stmt.EmptyStmt javaParserNode)
Process an
EmptyStatementTree . |
void |
processEnhancedForLoop(EnhancedForLoopTree javacTree,
com.github.javaparser.ast.stmt.ForEachStmt javaParserNode)
Process an
EnhancedForLoopTree . |
void |
processExports(ExportsTree javacTree,
com.github.javaparser.ast.modules.ModuleExportsDirective javaParserNode)
Process an
ExportsTree . |
void |
processExpressionStatemen(ExpressionStatementTree javacTree,
com.github.javaparser.ast.stmt.ExpressionStmt javaParserNode)
Process an
ExpressionStatementTree . |
void |
processForLoop(ForLoopTree javacTree,
com.github.javaparser.ast.stmt.ForStmt javaParserNode)
Process a
ForLoopTree . |
void |
processIdentifier(IdentifierTree javacTree,
com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
Process an
IdentifierTree representing a class or interface type. |
void |
processIdentifier(IdentifierTree javacTree,
com.github.javaparser.ast.expr.Name javaParserNode)
Process an
IdentifierTree representing a name that may contain dots. |
void |
processIdentifier(IdentifierTree javacTree,
com.github.javaparser.ast.expr.NameExpr javaParserNode)
Process an
IdentifierTree representing an expression that evaluates to the value of a
variable. |
void |
processIdentifier(IdentifierTree javacTree,
com.github.javaparser.ast.expr.SimpleName javaParserNode)
Process an
IdentifierTree representing a name without dots. |
void |
processIdentifier(IdentifierTree javacTree,
com.github.javaparser.ast.expr.SuperExpr javaParserNode)
Process an
IdentifierTree representing a super expression like the super in super.myMethod() or MyClass.super.myMethod() . |
void |
processIdentifier(IdentifierTree javacTree,
com.github.javaparser.ast.expr.ThisExpr javaParserNode)
Process an
IdentifierTree representing a this expression like the this
in MyClass = this , this.myMethod() , or MyClass.this.myMethod() . |
void |
processIf(IfTree javacTree,
com.github.javaparser.ast.stmt.IfStmt javaParserNode)
Process an
IfTree . |
void |
processImport(ImportTree javacTree,
com.github.javaparser.ast.ImportDeclaration javaParserNode)
Process an
ImportTree . |
void |
processInstanceOf(InstanceOfTree javacTree,
com.github.javaparser.ast.expr.InstanceOfExpr javaParserNode)
Process an
InstanceOfTree . |
void |
processIntersectionType(IntersectionTypeTree javacTree,
com.github.javaparser.ast.type.IntersectionType javaParserNode)
Process an
IntersectionType . |
void |
processLabeledStatement(LabeledStatementTree javacTree,
com.github.javaparser.ast.stmt.LabeledStmt javaParserNode)
Process a
LabeledStatement . |
void |
processLambdaExpression(LambdaExpressionTree javacTree,
com.github.javaparser.ast.expr.LambdaExpr javaParserNode)
Process a
LambdaExpressionTree . |
void |
processLiteral(LiteralTree javacTree,
com.github.javaparser.ast.expr.BinaryExpr javaParserNode)
Process a
LiteralTree for a String literal defined using concatenation. |
void |
processLiteral(LiteralTree javacTree,
com.github.javaparser.ast.expr.LiteralExpr javaParserNode)
Process a
LiteralTree . |
void |
processLiteral(LiteralTree javacTree,
com.github.javaparser.ast.expr.UnaryExpr javaParserNode)
Process a
LiteralTree for a literal expression prefixed with + or -
like +5 or -2 . |
void |
processMemberReference(MemberReferenceTree javacTree,
com.github.javaparser.ast.expr.MethodReferenceExpr javaParserNode)
Process a
MemberReferenceTree . |
void |
processMemberSelect(MemberSelectTree javacTree,
com.github.javaparser.ast.expr.ClassExpr javaParserNode)
Process a
MemberSelectTree for a class expression like MyClass.class . |
void |
processMemberSelect(MemberSelectTree javacTree,
com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
Process a
MemberSelectTree for a type with a name containing dots, like mypackage.MyClass . |
void |
processMemberSelect(MemberSelectTree javacTree,
com.github.javaparser.ast.expr.FieldAccessExpr javaParserNode)
Process a
MemberSelectTree for a field access expression like myObj.myField . |
void |
processMemberSelect(MemberSelectTree javacTree,
com.github.javaparser.ast.expr.Name javaParserNode)
Process a
MemberSelectTree for a name that contains dots. |
void |
processMemberSelect(MemberSelectTree javacTree,
com.github.javaparser.ast.expr.SuperExpr javaParserNode)
Process a
MemberSelectTree for a super expression with a class like super.MyClass . |
void |
processMemberSelect(MemberSelectTree javacTree,
com.github.javaparser.ast.expr.ThisExpr javaParserNode)
Process a
MemberSelectTree for a this expression with a class like MyClass.this . |
void |
processMethod(MethodTree javacTree,
com.github.javaparser.ast.body.AnnotationMemberDeclaration javaParserNode)
Process a
MethodTree representing a value field for an annotation. |
void |
processMethod(MethodTree javacTree,
com.github.javaparser.ast.body.CompactConstructorDeclaration javaParserNode)
Process a
MethodTree representing a compact constructor declaration. |
void |
processMethod(MethodTree javacTree,
com.github.javaparser.ast.body.ConstructorDeclaration javaParserNode)
Process a
MethodTree representing a constructor declaration. |
void |
processMethod(MethodTree javacTree,
com.github.javaparser.ast.body.MethodDeclaration javaParserNode)
Process a
MethodTree representing a regular method declaration. |
void |
processMethodInvocation(MethodInvocationTree javacTree,
com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt javaParserNode)
Process a
MethodInvocationTree representing a constructor invocation. |
void |
processMethodInvocation(MethodInvocationTree javacTree,
com.github.javaparser.ast.expr.MethodCallExpr javaParserNode)
Process a
MethodInvocationTree representing a regular method invocation. |
void |
processModule(ModuleTree javacTree,
com.github.javaparser.ast.modules.ModuleDeclaration javaParserNode)
Process a
ModuleTree . |
void |
processNewClass(NewClassTree javacTree,
com.github.javaparser.ast.expr.ObjectCreationExpr javaParserNode)
Process a
NewClassTree . |
void |
processOpens(OpensTree javacTree,
com.github.javaparser.ast.modules.ModuleOpensDirective javaParserNode)
Process an
OpensTree . |
void |
processOther(Tree javacTree,
com.github.javaparser.ast.Node javaParserNode)
Process a
Tree that isn't an instance of any specific tree class. |
void |
processPackage(PackageTree javacTree,
com.github.javaparser.ast.PackageDeclaration javaParserNode)
Process a
PackageTree . |
void |
processParameterizedType(ParameterizedTypeTree javacTree,
com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
Process a
ParameterizedTypeTree . |
void |
processParenthesized(ParenthesizedTree javacTree,
com.github.javaparser.ast.expr.EnclosedExpr javaParserNode)
Process a
ParenthesizedTree . |
void |
processPrimitiveType(PrimitiveTypeTree javacTree,
com.github.javaparser.ast.type.PrimitiveType javaParserNode)
Process a
PrimitiveTypeTree . |
void |
processPrimitiveType(PrimitiveTypeTree javacTree,
com.github.javaparser.ast.type.VoidType javaParserNode)
Process a
PrimitiveTypeTree representing a void type. |
void |
processProvides(ProvidesTree javacTree,
com.github.javaparser.ast.modules.ModuleProvidesDirective javaParserNode)
Process a
ProvidesTree . |
void |
processRequires(RequiresTree javacTree,
com.github.javaparser.ast.modules.ModuleRequiresDirective javaParserNode)
Process a
RequiresTree . |
void |
processReturn(ReturnTree javacTree,
com.github.javaparser.ast.stmt.ReturnStmt javaParserNode)
Process a
RetrunTree . |
void |
processSwitch(SwitchTree javacTree,
com.github.javaparser.ast.stmt.SwitchStmt javaParserNode)
Process a
SwitchTree . |
void |
processSynchronized(SynchronizedTree javacTree,
com.github.javaparser.ast.stmt.SynchronizedStmt javaParserNode)
Process a
SynchronizedTree . |
void |
processThrow(ThrowTree javacTree,
com.github.javaparser.ast.stmt.ThrowStmt javaParserNode)
Process a
ThrowTree . |
void |
processTry(TryTree javacTree,
com.github.javaparser.ast.stmt.TryStmt javaParserNode)
Process a
TryTree . |
void |
processTypeCast(TypeCastTree javacTree,
com.github.javaparser.ast.expr.CastExpr javaParserNode)
Process a
TypeCastTree . |
void |
processTypeParameter(TypeParameterTree javacTree,
com.github.javaparser.ast.type.TypeParameter javaParserNode)
Process a
TypeParameterTree . |
void |
processUnary(UnaryTree javacTree,
com.github.javaparser.ast.expr.UnaryExpr javaParserNode)
Process a
UnaryTree . |
void |
processUnionType(UnionTypeTree javacTree,
com.github.javaparser.ast.type.UnionType javaParserNode)
Process a
UnionTypeTree . |
void |
processUses(UsesTree javacTree,
com.github.javaparser.ast.modules.ModuleUsesDirective javaParserNode)
Process a
UsesTree . |
void |
processVariable(VariableTree javacTree,
com.github.javaparser.ast.body.EnumConstantDeclaration javaParserNode)
Process a
VariableTree representing an enum constant declaration. |
void |
processVariable(VariableTree javacTree,
com.github.javaparser.ast.body.Parameter javaParserNode)
Process a
VariableTree representing a parameter to a method or constructor. |
void |
processVariable(VariableTree javacTree,
com.github.javaparser.ast.body.ReceiverParameter javaParserNode)
Process a
VariableTree representing the receiver parameter of a method. |
void |
processVariable(VariableTree javacTree,
com.github.javaparser.ast.body.VariableDeclarator javaParserNode)
Process a
VariableTree representing a regular variable declaration. |
void |
processWhileLoop(WhileLoopTree javacTree,
com.github.javaparser.ast.stmt.WhileStmt javaParserNode)
Process a
WhileLoopTree . |
void |
processWildcard(WildcardTree javacTree,
com.github.javaparser.ast.type.WildcardType javaParserNode)
Process a
WhileLoopTree . |
castNode, defaultAction, isDefaultSuperConstructorCall, isNoArgumentConstructor, visitAnnotatedType, visitAnnotation, visitAnonymousClassBody, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBindingPattern17, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSwitchExpression17, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard, visitYield17
visit, visit
public void processAnnotation(AnnotationTree javacTree, com.github.javaparser.ast.expr.NormalAnnotationExpr javaParserNode)
JointJavacJavaParserVisitor
AnnotationTree
with multiple key-value pairs like @MyAnno(a=5,
b=10)
.processAnnotation
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processAnnotation(AnnotationTree javacTree, com.github.javaparser.ast.expr.MarkerAnnotationExpr javaParserNode)
JointJavacJavaParserVisitor
AnnotationTree
with no arguments like @MyAnno
.processAnnotation
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processAnnotation(AnnotationTree javacTree, com.github.javaparser.ast.expr.SingleMemberAnnotationExpr javaParserNode)
JointJavacJavaParserVisitor
AnnotationTree
with a single argument like MyAnno(5)
.processAnnotation
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processAnnotatedType(AnnotatedTypeTree javacTree, com.github.javaparser.ast.Node javaParserNode)
JointJavacJavaParserVisitor
AnnotatedTypeTree
.
In javac, a type with an annotation is represented as an AnnotatedTypeTree
with a
nested tree for the base type whereas in JavaParser the annotations are store directly on the
node for the base type. As a result, the JavaParser base type node will be processed twice,
once with the AnnotatedTypeTree
and once with the tree for the base type.
processAnnotatedType
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processArrayAccess(ArrayAccessTree javacTree, com.github.javaparser.ast.expr.ArrayAccessExpr javaParserNode)
JointJavacJavaParserVisitor
ArrayAccessTree
.processArrayAccess
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processArrayType(ArrayTypeTree javacTree, com.github.javaparser.ast.type.ArrayType javaParserNode)
JointJavacJavaParserVisitor
ArrayTypeTree
.processArrayType
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processAssert(AssertTree javacTree, com.github.javaparser.ast.stmt.AssertStmt javaParserNode)
JointJavacJavaParserVisitor
AssertTree
.processAssert
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processAssignment(AssignmentTree javacTree, com.github.javaparser.ast.expr.AssignExpr javaParserNode)
JointJavacJavaParserVisitor
AssignmentTree
.processAssignment
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processBinary(BinaryTree javacTree, com.github.javaparser.ast.expr.BinaryExpr javaParserNode)
JointJavacJavaParserVisitor
BinaryTree
.processBinary
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processBlock(BlockTree javacTree, com.github.javaparser.ast.stmt.BlockStmt javaParserNode)
JointJavacJavaParserVisitor
BlockTree
.processBlock
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processBreak(BreakTree javacTree, com.github.javaparser.ast.stmt.BreakStmt javaParserNode)
JointJavacJavaParserVisitor
BreakTree
.processBreak
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processCase(CaseTree javacTree, com.github.javaparser.ast.stmt.SwitchEntry javaParserNode)
JointJavacJavaParserVisitor
CaseTree
.processCase
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processCatch(CatchTree javacTree, com.github.javaparser.ast.stmt.CatchClause javaParserNode)
JointJavacJavaParserVisitor
CatchTree
.processCatch
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processClass(ClassTree javacTree, com.github.javaparser.ast.body.AnnotationDeclaration javaParserNode)
JointJavacJavaParserVisitor
ClassTree
representing an annotation declaration.processClass
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processClass(ClassTree javacTree, com.github.javaparser.ast.body.ClassOrInterfaceDeclaration javaParserNode)
JointJavacJavaParserVisitor
ClassTree
representing a class or interface declaration.processClass
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processClass(ClassTree javacTree, com.github.javaparser.ast.body.EnumDeclaration javaParserNode)
JointJavacJavaParserVisitor
ClassTree
representing an enum declaration.processClass
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processClass(ClassTree javacTree, com.github.javaparser.ast.body.RecordDeclaration javaParserNode)
JointJavacJavaParserVisitor
ClassTree
representing a record declaration.processClass
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processCompilationUnit(CompilationUnitTree javacTree, com.github.javaparser.ast.CompilationUnit javaParserNode)
JointJavacJavaParserVisitor
CompilationUnitTree
.processCompilationUnit
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processConditionalExpression(ConditionalExpressionTree javacTree, com.github.javaparser.ast.expr.ConditionalExpr javaParserNode)
JointJavacJavaParserVisitor
ConditionalExpressionTree
.processConditionalExpression
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processContinue(ContinueTree javacTree, com.github.javaparser.ast.stmt.ContinueStmt javaParserNode)
JointJavacJavaParserVisitor
ContinueTree
.processContinue
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processDoWhileLoop(DoWhileLoopTree javacTree, com.github.javaparser.ast.stmt.DoStmt javaParserNode)
JointJavacJavaParserVisitor
DoWhileLoopTree
.processDoWhileLoop
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processEmptyStatement(EmptyStatementTree javacTree, com.github.javaparser.ast.stmt.EmptyStmt javaParserNode)
JointJavacJavaParserVisitor
EmptyStatementTree
.processEmptyStatement
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processEnhancedForLoop(EnhancedForLoopTree javacTree, com.github.javaparser.ast.stmt.ForEachStmt javaParserNode)
JointJavacJavaParserVisitor
EnhancedForLoopTree
.processEnhancedForLoop
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processExports(ExportsTree javacTree, com.github.javaparser.ast.modules.ModuleExportsDirective javaParserNode)
JointJavacJavaParserVisitor
ExportsTree
.processExports
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processExpressionStatemen(ExpressionStatementTree javacTree, com.github.javaparser.ast.stmt.ExpressionStmt javaParserNode)
JointJavacJavaParserVisitor
ExpressionStatementTree
.processExpressionStatemen
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processForLoop(ForLoopTree javacTree, com.github.javaparser.ast.stmt.ForStmt javaParserNode)
JointJavacJavaParserVisitor
ForLoopTree
.processForLoop
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
JointJavacJavaParserVisitor
IdentifierTree
representing a class or interface type.processIdentifier
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.Name javaParserNode)
JointJavacJavaParserVisitor
IdentifierTree
representing a name that may contain dots.processIdentifier
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.NameExpr javaParserNode)
JointJavacJavaParserVisitor
IdentifierTree
representing an expression that evaluates to the value of a
variable.processIdentifier
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.SimpleName javaParserNode)
JointJavacJavaParserVisitor
IdentifierTree
representing a name without dots.processIdentifier
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.SuperExpr javaParserNode)
JointJavacJavaParserVisitor
IdentifierTree
representing a super
expression like the super
in super.myMethod()
or MyClass.super.myMethod()
.processIdentifier
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.ThisExpr javaParserNode)
JointJavacJavaParserVisitor
IdentifierTree
representing a this
expression like the this
in MyClass = this
, this.myMethod()
, or MyClass.this.myMethod()
.processIdentifier
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processIf(IfTree javacTree, com.github.javaparser.ast.stmt.IfStmt javaParserNode)
JointJavacJavaParserVisitor
IfTree
.processIf
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processImport(ImportTree javacTree, com.github.javaparser.ast.ImportDeclaration javaParserNode)
JointJavacJavaParserVisitor
ImportTree
.
Wildcards are stored differently between the two. In a statement like import a.*;
,
the name is stored as a MemberSelectTree
with a
and *
. In JavaParser
this is just stored as a
but with a method that returns whether it has a wildcard.
processImport
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processInstanceOf(InstanceOfTree javacTree, com.github.javaparser.ast.expr.InstanceOfExpr javaParserNode)
JointJavacJavaParserVisitor
InstanceOfTree
.processInstanceOf
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processIntersectionType(IntersectionTypeTree javacTree, com.github.javaparser.ast.type.IntersectionType javaParserNode)
JointJavacJavaParserVisitor
IntersectionType
.processIntersectionType
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processLabeledStatement(LabeledStatementTree javacTree, com.github.javaparser.ast.stmt.LabeledStmt javaParserNode)
JointJavacJavaParserVisitor
LabeledStatement
.processLabeledStatement
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processLambdaExpression(LambdaExpressionTree javacTree, com.github.javaparser.ast.expr.LambdaExpr javaParserNode)
JointJavacJavaParserVisitor
LambdaExpressionTree
.processLambdaExpression
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processLiteral(LiteralTree javacTree, com.github.javaparser.ast.expr.BinaryExpr javaParserNode)
JointJavacJavaParserVisitor
LiteralTree
for a String literal defined using concatenation.
For an expression like "a" + "b"
, javac stores a single String literal "ab"
but JavaParser stores it as an operation with two operands.
processLiteral
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processLiteral(LiteralTree javacTree, com.github.javaparser.ast.expr.UnaryExpr javaParserNode)
JointJavacJavaParserVisitor
LiteralTree
for a literal expression prefixed with +
or -
like +5
or -2
.processLiteral
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processLiteral(LiteralTree javacTree, com.github.javaparser.ast.expr.LiteralExpr javaParserNode)
JointJavacJavaParserVisitor
LiteralTree
.processLiteral
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMemberReference(MemberReferenceTree javacTree, com.github.javaparser.ast.expr.MethodReferenceExpr javaParserNode)
JointJavacJavaParserVisitor
MemberReferenceTree
.processMemberReference
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.ClassExpr javaParserNode)
JointJavacJavaParserVisitor
MemberSelectTree
for a class expression like MyClass.class
.processMemberSelect
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
JointJavacJavaParserVisitor
MemberSelectTree
for a type with a name containing dots, like mypackage.MyClass
.processMemberSelect
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.FieldAccessExpr javaParserNode)
JointJavacJavaParserVisitor
MemberSelectTree
for a field access expression like myObj.myField
.processMemberSelect
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.Name javaParserNode)
JointJavacJavaParserVisitor
MemberSelectTree
for a name that contains dots.processMemberSelect
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.ThisExpr javaParserNode)
JointJavacJavaParserVisitor
MemberSelectTree
for a this expression with a class like MyClass.this
.processMemberSelect
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.SuperExpr javaParserNode)
JointJavacJavaParserVisitor
MemberSelectTree
for a super expression with a class like super.MyClass
.processMemberSelect
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMethod(MethodTree javacTree, com.github.javaparser.ast.body.MethodDeclaration javaParserNode)
JointJavacJavaParserVisitor
MethodTree
representing a regular method declaration.processMethod
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMethod(MethodTree javacTree, com.github.javaparser.ast.body.ConstructorDeclaration javaParserNode)
JointJavacJavaParserVisitor
MethodTree
representing a constructor declaration.processMethod
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMethod(MethodTree javacTree, com.github.javaparser.ast.body.CompactConstructorDeclaration javaParserNode)
JointJavacJavaParserVisitor
MethodTree
representing a compact constructor declaration.processMethod
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMethod(MethodTree javacTree, com.github.javaparser.ast.body.AnnotationMemberDeclaration javaParserNode)
JointJavacJavaParserVisitor
MethodTree
representing a value field for an annotation.processMethod
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMethodInvocation(MethodInvocationTree javacTree, com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt javaParserNode)
JointJavacJavaParserVisitor
MethodInvocationTree
representing a constructor invocation.processMethodInvocation
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processMethodInvocation(MethodInvocationTree javacTree, com.github.javaparser.ast.expr.MethodCallExpr javaParserNode)
JointJavacJavaParserVisitor
MethodInvocationTree
representing a regular method invocation.processMethodInvocation
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processModule(ModuleTree javacTree, com.github.javaparser.ast.modules.ModuleDeclaration javaParserNode)
JointJavacJavaParserVisitor
ModuleTree
.processModule
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processNewClass(NewClassTree javacTree, com.github.javaparser.ast.expr.ObjectCreationExpr javaParserNode)
JointJavacJavaParserVisitor
NewClassTree
.processNewClass
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processOpens(OpensTree javacTree, com.github.javaparser.ast.modules.ModuleOpensDirective javaParserNode)
JointJavacJavaParserVisitor
OpensTree
.processOpens
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processOther(Tree javacTree, com.github.javaparser.ast.Node javaParserNode)
JointJavacJavaParserVisitor
Tree
that isn't an instance of any specific tree class.processOther
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processPackage(PackageTree javacTree, com.github.javaparser.ast.PackageDeclaration javaParserNode)
JointJavacJavaParserVisitor
PackageTree
.processPackage
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processParameterizedType(ParameterizedTypeTree javacTree, com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
JointJavacJavaParserVisitor
ParameterizedTypeTree
.processParameterizedType
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processParenthesized(ParenthesizedTree javacTree, com.github.javaparser.ast.expr.EnclosedExpr javaParserNode)
JointJavacJavaParserVisitor
ParenthesizedTree
.processParenthesized
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processPrimitiveType(PrimitiveTypeTree javacTree, com.github.javaparser.ast.type.PrimitiveType javaParserNode)
JointJavacJavaParserVisitor
PrimitiveTypeTree
.processPrimitiveType
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processPrimitiveType(PrimitiveTypeTree javacTree, com.github.javaparser.ast.type.VoidType javaParserNode)
JointJavacJavaParserVisitor
PrimitiveTypeTree
representing a void type.processPrimitiveType
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processProvides(ProvidesTree javacTree, com.github.javaparser.ast.modules.ModuleProvidesDirective javaParserNode)
JointJavacJavaParserVisitor
ProvidesTree
.processProvides
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processRequires(RequiresTree javacTree, com.github.javaparser.ast.modules.ModuleRequiresDirective javaParserNode)
JointJavacJavaParserVisitor
RequiresTree
.processRequires
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processReturn(ReturnTree javacTree, com.github.javaparser.ast.stmt.ReturnStmt javaParserNode)
JointJavacJavaParserVisitor
RetrunTree
.processReturn
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processSwitch(SwitchTree javacTree, com.github.javaparser.ast.stmt.SwitchStmt javaParserNode)
JointJavacJavaParserVisitor
SwitchTree
.processSwitch
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processSynchronized(SynchronizedTree javacTree, com.github.javaparser.ast.stmt.SynchronizedStmt javaParserNode)
JointJavacJavaParserVisitor
SynchronizedTree
.processSynchronized
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processThrow(ThrowTree javacTree, com.github.javaparser.ast.stmt.ThrowStmt javaParserNode)
JointJavacJavaParserVisitor
ThrowTree
.processThrow
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processTry(TryTree javacTree, com.github.javaparser.ast.stmt.TryStmt javaParserNode)
JointJavacJavaParserVisitor
TryTree
.processTry
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processTypeCast(TypeCastTree javacTree, com.github.javaparser.ast.expr.CastExpr javaParserNode)
JointJavacJavaParserVisitor
TypeCastTree
.processTypeCast
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processTypeParameter(TypeParameterTree javacTree, com.github.javaparser.ast.type.TypeParameter javaParserNode)
JointJavacJavaParserVisitor
TypeParameterTree
.processTypeParameter
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processUnary(UnaryTree javacTree, com.github.javaparser.ast.expr.UnaryExpr javaParserNode)
JointJavacJavaParserVisitor
UnaryTree
.processUnary
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processUnionType(UnionTypeTree javacTree, com.github.javaparser.ast.type.UnionType javaParserNode)
JointJavacJavaParserVisitor
UnionTypeTree
.processUnionType
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processUses(UsesTree javacTree, com.github.javaparser.ast.modules.ModuleUsesDirective javaParserNode)
JointJavacJavaParserVisitor
UsesTree
.processUses
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processVariable(VariableTree javacTree, com.github.javaparser.ast.body.EnumConstantDeclaration javaParserNode)
JointJavacJavaParserVisitor
VariableTree
representing an enum constant declaration. In an enum like
enum MyEnum { MY_CONSTANT }
, javac expands MY_CONSTANT
as a constant variable.processVariable
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processVariable(VariableTree javacTree, com.github.javaparser.ast.body.Parameter javaParserNode)
JointJavacJavaParserVisitor
VariableTree
representing a parameter to a method or constructor.processVariable
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processVariable(VariableTree javacTree, com.github.javaparser.ast.body.ReceiverParameter javaParserNode)
JointJavacJavaParserVisitor
VariableTree
representing the receiver parameter of a method.processVariable
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processVariable(VariableTree javacTree, com.github.javaparser.ast.body.VariableDeclarator javaParserNode)
JointJavacJavaParserVisitor
VariableTree
representing a regular variable declaration.processVariable
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processWhileLoop(WhileLoopTree javacTree, com.github.javaparser.ast.stmt.WhileStmt javaParserNode)
JointJavacJavaParserVisitor
WhileLoopTree
.processWhileLoop
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processWildcard(WildcardTree javacTree, com.github.javaparser.ast.type.WildcardType javaParserNode)
JointJavacJavaParserVisitor
WhileLoopTree
.processWildcard
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser nodepublic void processCompoundAssignment(CompoundAssignmentTree javacTree, com.github.javaparser.ast.expr.AssignExpr javaParserNode)
JointJavacJavaParserVisitor
CompoundAssignmentTree
.processCompoundAssignment
in class JointJavacJavaParserVisitor
javacTree
- tree to processjavaParserNode
- corresponding JavaParser node