public abstract class JointVisitorWithDefaultAction extends JointJavacJavaParserVisitor
JointJavacJavaParserVisitor that visits all javac trees with their corresponding
JavaParser nodes and performs some default action on each pair.
To use this class, override defaultJointAction.
DEFAULT_VALUE| Constructor and Description |
|---|
JointVisitorWithDefaultAction() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
defaultJointAction(Tree javacTree,
com.github.javaparser.ast.Node javaParserNode)
Action performed on each javac tree and JavaParser node pair.
|
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, visitYield17visit, visitpublic abstract void defaultJointAction(Tree javacTree, com.github.javaparser.ast.Node javaParserNode)
javacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processAnnotation(AnnotationTree javacTree, com.github.javaparser.ast.expr.NormalAnnotationExpr javaParserNode)
JointJavacJavaParserVisitorAnnotationTree with multiple key-value pairs like @MyAnno(a=5,
b=10).processAnnotation in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processAnnotation(AnnotationTree javacTree, com.github.javaparser.ast.expr.MarkerAnnotationExpr javaParserNode)
JointJavacJavaParserVisitorAnnotationTree with no arguments like @MyAnno.processAnnotation in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processAnnotation(AnnotationTree javacTree, com.github.javaparser.ast.expr.SingleMemberAnnotationExpr javaParserNode)
JointJavacJavaParserVisitorAnnotationTree with a single argument like MyAnno(5).processAnnotation in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processAnnotatedType(AnnotatedTypeTree javacTree, com.github.javaparser.ast.Node javaParserNode)
JointJavacJavaParserVisitorAnnotatedTypeTree.
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 JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processArrayAccess(ArrayAccessTree javacTree, com.github.javaparser.ast.expr.ArrayAccessExpr javaParserNode)
JointJavacJavaParserVisitorArrayAccessTree.processArrayAccess in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processArrayType(ArrayTypeTree javacTree, com.github.javaparser.ast.type.ArrayType javaParserNode)
JointJavacJavaParserVisitorArrayTypeTree.processArrayType in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processAssert(AssertTree javacTree, com.github.javaparser.ast.stmt.AssertStmt javaParserNode)
JointJavacJavaParserVisitorAssertTree.processAssert in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processAssignment(AssignmentTree javacTree, com.github.javaparser.ast.expr.AssignExpr javaParserNode)
JointJavacJavaParserVisitorAssignmentTree.processAssignment in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processBinary(BinaryTree javacTree, com.github.javaparser.ast.expr.BinaryExpr javaParserNode)
JointJavacJavaParserVisitorBinaryTree.processBinary in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processBlock(BlockTree javacTree, com.github.javaparser.ast.stmt.BlockStmt javaParserNode)
JointJavacJavaParserVisitorBlockTree.processBlock in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processBreak(BreakTree javacTree, com.github.javaparser.ast.stmt.BreakStmt javaParserNode)
JointJavacJavaParserVisitorBreakTree.processBreak in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processCase(CaseTree javacTree, com.github.javaparser.ast.stmt.SwitchEntry javaParserNode)
JointJavacJavaParserVisitorCaseTree.processCase in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processCatch(CatchTree javacTree, com.github.javaparser.ast.stmt.CatchClause javaParserNode)
JointJavacJavaParserVisitorCatchTree.processCatch in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processClass(ClassTree javacTree, com.github.javaparser.ast.body.AnnotationDeclaration javaParserNode)
JointJavacJavaParserVisitorClassTree representing an annotation declaration.processClass in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processClass(ClassTree javacTree, com.github.javaparser.ast.body.ClassOrInterfaceDeclaration javaParserNode)
JointJavacJavaParserVisitorClassTree representing a class or interface declaration.processClass in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processClass(ClassTree javacTree, com.github.javaparser.ast.body.EnumDeclaration javaParserNode)
JointJavacJavaParserVisitorClassTree representing an enum declaration.processClass in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processClass(ClassTree javacTree, com.github.javaparser.ast.body.RecordDeclaration javaParserNode)
JointJavacJavaParserVisitorClassTree representing a record declaration.processClass in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processCompilationUnit(CompilationUnitTree javacTree, com.github.javaparser.ast.CompilationUnit javaParserNode)
JointJavacJavaParserVisitorCompilationUnitTree.processCompilationUnit in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processConditionalExpression(ConditionalExpressionTree javacTree, com.github.javaparser.ast.expr.ConditionalExpr javaParserNode)
JointJavacJavaParserVisitorConditionalExpressionTree.processConditionalExpression in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processContinue(ContinueTree javacTree, com.github.javaparser.ast.stmt.ContinueStmt javaParserNode)
JointJavacJavaParserVisitorContinueTree.processContinue in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processDoWhileLoop(DoWhileLoopTree javacTree, com.github.javaparser.ast.stmt.DoStmt javaParserNode)
JointJavacJavaParserVisitorDoWhileLoopTree.processDoWhileLoop in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processEmptyStatement(EmptyStatementTree javacTree, com.github.javaparser.ast.stmt.EmptyStmt javaParserNode)
JointJavacJavaParserVisitorEmptyStatementTree.processEmptyStatement in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processEnhancedForLoop(EnhancedForLoopTree javacTree, com.github.javaparser.ast.stmt.ForEachStmt javaParserNode)
JointJavacJavaParserVisitorEnhancedForLoopTree.processEnhancedForLoop in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processExports(ExportsTree javacTree, com.github.javaparser.ast.modules.ModuleExportsDirective javaParserNode)
JointJavacJavaParserVisitorExportsTree.processExports in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processExpressionStatemen(ExpressionStatementTree javacTree, com.github.javaparser.ast.stmt.ExpressionStmt javaParserNode)
JointJavacJavaParserVisitorExpressionStatementTree.processExpressionStatemen in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processForLoop(ForLoopTree javacTree, com.github.javaparser.ast.stmt.ForStmt javaParserNode)
JointJavacJavaParserVisitorForLoopTree.processForLoop in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
JointJavacJavaParserVisitorIdentifierTree representing a class or interface type.processIdentifier in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.Name javaParserNode)
JointJavacJavaParserVisitorIdentifierTree representing a name that may contain dots.processIdentifier in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.NameExpr javaParserNode)
JointJavacJavaParserVisitorIdentifierTree representing an expression that evaluates to the value of a
variable.processIdentifier in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.SimpleName javaParserNode)
JointJavacJavaParserVisitorIdentifierTree representing a name without dots.processIdentifier in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.SuperExpr javaParserNode)
JointJavacJavaParserVisitorIdentifierTree representing a super expression like the super in super.myMethod() or MyClass.super.myMethod().processIdentifier in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processIdentifier(IdentifierTree javacTree, com.github.javaparser.ast.expr.ThisExpr javaParserNode)
JointJavacJavaParserVisitorIdentifierTree representing a this expression like the this in MyClass = this, this.myMethod(), or MyClass.this.myMethod().processIdentifier in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processIf(IfTree javacTree, com.github.javaparser.ast.stmt.IfStmt javaParserNode)
JointJavacJavaParserVisitorIfTree.processIf in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processImport(ImportTree javacTree, com.github.javaparser.ast.ImportDeclaration javaParserNode)
JointJavacJavaParserVisitorImportTree.
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 JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processInstanceOf(InstanceOfTree javacTree, com.github.javaparser.ast.expr.InstanceOfExpr javaParserNode)
JointJavacJavaParserVisitorInstanceOfTree.processInstanceOf in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processIntersectionType(IntersectionTypeTree javacTree, com.github.javaparser.ast.type.IntersectionType javaParserNode)
JointJavacJavaParserVisitorIntersectionType.processIntersectionType in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processLabeledStatement(LabeledStatementTree javacTree, com.github.javaparser.ast.stmt.LabeledStmt javaParserNode)
JointJavacJavaParserVisitorLabeledStatement.processLabeledStatement in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processLambdaExpression(LambdaExpressionTree javacTree, com.github.javaparser.ast.expr.LambdaExpr javaParserNode)
JointJavacJavaParserVisitorLambdaExpressionTree.processLambdaExpression in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processLiteral(LiteralTree javacTree, com.github.javaparser.ast.expr.BinaryExpr javaParserNode)
JointJavacJavaParserVisitorLiteralTree 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 JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processLiteral(LiteralTree javacTree, com.github.javaparser.ast.expr.UnaryExpr javaParserNode)
JointJavacJavaParserVisitorLiteralTree for a literal expression prefixed with + or -
like +5 or -2.processLiteral in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processLiteral(LiteralTree javacTree, com.github.javaparser.ast.expr.LiteralExpr javaParserNode)
JointJavacJavaParserVisitorLiteralTree.processLiteral in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMemberReference(MemberReferenceTree javacTree, com.github.javaparser.ast.expr.MethodReferenceExpr javaParserNode)
JointJavacJavaParserVisitorMemberReferenceTree.processMemberReference in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.ClassExpr javaParserNode)
JointJavacJavaParserVisitorMemberSelectTree for a class expression like MyClass.class.processMemberSelect in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
JointJavacJavaParserVisitorMemberSelectTree for a type with a name containing dots, like mypackage.MyClass.processMemberSelect in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.FieldAccessExpr javaParserNode)
JointJavacJavaParserVisitorMemberSelectTree for a field access expression like myObj.myField.processMemberSelect in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.Name javaParserNode)
JointJavacJavaParserVisitorMemberSelectTree for a name that contains dots.processMemberSelect in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.ThisExpr javaParserNode)
JointJavacJavaParserVisitorMemberSelectTree for a this expression with a class like MyClass.this.processMemberSelect in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMemberSelect(MemberSelectTree javacTree, com.github.javaparser.ast.expr.SuperExpr javaParserNode)
JointJavacJavaParserVisitorMemberSelectTree for a super expression with a class like super.MyClass.processMemberSelect in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMethod(MethodTree javacTree, com.github.javaparser.ast.body.MethodDeclaration javaParserNode)
JointJavacJavaParserVisitorMethodTree representing a regular method declaration.processMethod in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMethod(MethodTree javacTree, com.github.javaparser.ast.body.ConstructorDeclaration javaParserNode)
JointJavacJavaParserVisitorMethodTree representing a constructor declaration.processMethod in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMethod(MethodTree javacTree, com.github.javaparser.ast.body.CompactConstructorDeclaration javaParserNode)
JointJavacJavaParserVisitorMethodTree representing a compact constructor declaration.processMethod in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMethod(MethodTree javacTree, com.github.javaparser.ast.body.AnnotationMemberDeclaration javaParserNode)
JointJavacJavaParserVisitorMethodTree representing a value field for an annotation.processMethod in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMethodInvocation(MethodInvocationTree javacTree, com.github.javaparser.ast.stmt.ExplicitConstructorInvocationStmt javaParserNode)
JointJavacJavaParserVisitorMethodInvocationTree representing a constructor invocation.processMethodInvocation in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processMethodInvocation(MethodInvocationTree javacTree, com.github.javaparser.ast.expr.MethodCallExpr javaParserNode)
JointJavacJavaParserVisitorMethodInvocationTree representing a regular method invocation.processMethodInvocation in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processModule(ModuleTree javacTree, com.github.javaparser.ast.modules.ModuleDeclaration javaParserNode)
JointJavacJavaParserVisitorModuleTree.processModule in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processNewClass(NewClassTree javacTree, com.github.javaparser.ast.expr.ObjectCreationExpr javaParserNode)
JointJavacJavaParserVisitorNewClassTree.processNewClass in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processOpens(OpensTree javacTree, com.github.javaparser.ast.modules.ModuleOpensDirective javaParserNode)
JointJavacJavaParserVisitorOpensTree.processOpens in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processOther(Tree javacTree, com.github.javaparser.ast.Node javaParserNode)
JointJavacJavaParserVisitorTree that isn't an instance of any specific tree class.processOther in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processPackage(PackageTree javacTree, com.github.javaparser.ast.PackageDeclaration javaParserNode)
JointJavacJavaParserVisitorPackageTree.processPackage in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processParameterizedType(ParameterizedTypeTree javacTree, com.github.javaparser.ast.type.ClassOrInterfaceType javaParserNode)
JointJavacJavaParserVisitorParameterizedTypeTree.processParameterizedType in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processParenthesized(ParenthesizedTree javacTree, com.github.javaparser.ast.expr.EnclosedExpr javaParserNode)
JointJavacJavaParserVisitorParenthesizedTree.processParenthesized in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processPrimitiveType(PrimitiveTypeTree javacTree, com.github.javaparser.ast.type.PrimitiveType javaParserNode)
JointJavacJavaParserVisitorPrimitiveTypeTree.processPrimitiveType in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processPrimitiveType(PrimitiveTypeTree javacTree, com.github.javaparser.ast.type.VoidType javaParserNode)
JointJavacJavaParserVisitorPrimitiveTypeTree representing a void type.processPrimitiveType in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processProvides(ProvidesTree javacTree, com.github.javaparser.ast.modules.ModuleProvidesDirective javaParserNode)
JointJavacJavaParserVisitorProvidesTree.processProvides in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processRequires(RequiresTree javacTree, com.github.javaparser.ast.modules.ModuleRequiresDirective javaParserNode)
JointJavacJavaParserVisitorRequiresTree.processRequires in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processReturn(ReturnTree javacTree, com.github.javaparser.ast.stmt.ReturnStmt javaParserNode)
JointJavacJavaParserVisitorRetrunTree.processReturn in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processSwitch(SwitchTree javacTree, com.github.javaparser.ast.stmt.SwitchStmt javaParserNode)
JointJavacJavaParserVisitorSwitchTree.processSwitch in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processSynchronized(SynchronizedTree javacTree, com.github.javaparser.ast.stmt.SynchronizedStmt javaParserNode)
JointJavacJavaParserVisitorSynchronizedTree.processSynchronized in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processThrow(ThrowTree javacTree, com.github.javaparser.ast.stmt.ThrowStmt javaParserNode)
JointJavacJavaParserVisitorThrowTree.processThrow in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processTry(TryTree javacTree, com.github.javaparser.ast.stmt.TryStmt javaParserNode)
JointJavacJavaParserVisitorTryTree.processTry in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processTypeCast(TypeCastTree javacTree, com.github.javaparser.ast.expr.CastExpr javaParserNode)
JointJavacJavaParserVisitorTypeCastTree.processTypeCast in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processTypeParameter(TypeParameterTree javacTree, com.github.javaparser.ast.type.TypeParameter javaParserNode)
JointJavacJavaParserVisitorTypeParameterTree.processTypeParameter in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processUnary(UnaryTree javacTree, com.github.javaparser.ast.expr.UnaryExpr javaParserNode)
JointJavacJavaParserVisitorUnaryTree.processUnary in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processUnionType(UnionTypeTree javacTree, com.github.javaparser.ast.type.UnionType javaParserNode)
JointJavacJavaParserVisitorUnionTypeTree.processUnionType in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processUses(UsesTree javacTree, com.github.javaparser.ast.modules.ModuleUsesDirective javaParserNode)
JointJavacJavaParserVisitorUsesTree.processUses in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processVariable(VariableTree javacTree, com.github.javaparser.ast.body.EnumConstantDeclaration javaParserNode)
JointJavacJavaParserVisitorVariableTree representing an enum constant declaration. In an enum like
enum MyEnum { MY_CONSTANT }, javac expands MY_CONSTANT as a constant
variable.processVariable in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processVariable(VariableTree javacTree, com.github.javaparser.ast.body.Parameter javaParserNode)
JointJavacJavaParserVisitorVariableTree representing a parameter to a method or constructor.processVariable in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processVariable(VariableTree javacTree, com.github.javaparser.ast.body.ReceiverParameter javaParserNode)
JointJavacJavaParserVisitorVariableTree representing the receiver parameter of a method.processVariable in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processVariable(VariableTree javacTree, com.github.javaparser.ast.body.VariableDeclarator javaParserNode)
JointJavacJavaParserVisitorVariableTree representing a regular variable declaration.processVariable in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processWhileLoop(WhileLoopTree javacTree, com.github.javaparser.ast.stmt.WhileStmt javaParserNode)
JointJavacJavaParserVisitorWhileLoopTree.processWhileLoop in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processWildcard(WildcardTree javacTree, com.github.javaparser.ast.type.WildcardType javaParserNode)
JointJavacJavaParserVisitorWhileLoopTree.processWildcard in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser nodepublic void processCompoundAssignment(CompoundAssignmentTree javacTree, com.github.javaparser.ast.expr.AssignExpr javaParserNode)
JointJavacJavaParserVisitorCompoundAssignmentTree.processCompoundAssignment in class JointJavacJavaParserVisitorjavacTree - tree to processjavaParserNode - corresponding JavaParser node