Class JimpleBaseVisitor<T>
- Type Parameters:
T
- The return type of the visit operation. UseVoid
for operations with no return type.
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
,JimpleVisitor<T>
JimpleVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byJimpleParser.arg_list()
.Visit a parse tree produced byJimpleParser.array_descriptor()
.Visit a parse tree produced byJimpleParser.assignments()
.Visit a parse tree produced byJimpleParser.binop()
.Visit a parse tree produced byJimpleParser.binop_expr()
.Visit a parse tree produced byJimpleParser.bool_expr()
.Visit a parse tree produced byJimpleParser.case_label()
.Visit a parse tree produced byJimpleParser.case_stmt()
.Visit a parse tree produced byJimpleParser.class_modifier()
.Visit a parse tree produced byJimpleParser.common_modifier()
.Visit a parse tree produced byJimpleParser.constant()
.Visit a parse tree produced byJimpleParser.declaration()
.Visit a parse tree produced byJimpleParser.declarations()
.Visit a parse tree produced byJimpleParser.extends_clause()
.Visit a parse tree produced byJimpleParser.field()
.Visit a parse tree produced byJimpleParser.field_modifier()
.Visit a parse tree produced byJimpleParser.field_signature()
.Visit a parse tree produced byJimpleParser.file()
.Visit a parse tree produced byJimpleParser.file_type()
.Visit a parse tree produced byJimpleParser.goto_stmt()
.Visit a parse tree produced byJimpleParser.identifier()
.Visit a parse tree produced byJimpleParser.identity_ref()
.Visit a parse tree produced byJimpleParser.immediate()
.Visit a parse tree produced byJimpleParser.implements_clause()
.Visit a parse tree produced byJimpleParser.importItem()
.Visit a parse tree produced byJimpleParser.integer_constant()
.Visit a parse tree produced byJimpleParser.invoke_expr()
.Visit a parse tree produced byJimpleParser.member()
.Visit a parse tree produced byJimpleParser.method()
.Visit a parse tree produced byJimpleParser.method_body()
.Visit a parse tree produced byJimpleParser.method_body_contents()
.Visit a parse tree produced byJimpleParser.method_modifier()
.Visit a parse tree produced byJimpleParser.method_name()
.Visit a parse tree produced byJimpleParser.method_signature()
.Visit a parse tree produced byJimpleParser.method_subsignature()
.Visit a parse tree produced byJimpleParser.methodhandle()
.Visit a parse tree produced byJimpleParser.reference()
.Visit a parse tree produced byJimpleParser.statement()
.Visit a parse tree produced byJimpleParser.statements()
.Visit a parse tree produced byJimpleParser.stmt()
.Visit a parse tree produced byJimpleParser.throws_clause()
.Visit a parse tree produced byJimpleParser.trap_clause()
.Visit a parse tree produced byJimpleParser.trap_clauses()
.Visit a parse tree produced byJimpleParser.type()
.Visit a parse tree produced byJimpleParser.type_list()
.Visit a parse tree produced byJimpleParser.unop()
.Visit a parse tree produced byJimpleParser.unop_expr()
.Visit a parse tree produced byJimpleParser.value()
.Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
JimpleBaseVisitor
public JimpleBaseVisitor()
-
-
Method Details
-
visitIdentifier
Visit a parse tree produced byJimpleParser.identifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIdentifier
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInteger_constant
Visit a parse tree produced byJimpleParser.integer_constant()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInteger_constant
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFile
Visit a parse tree produced byJimpleParser.file()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFile
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImportItem
Visit a parse tree produced byJimpleParser.importItem()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImportItem
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCommon_modifier
Visit a parse tree produced byJimpleParser.common_modifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCommon_modifier
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClass_modifier
Visit a parse tree produced byJimpleParser.class_modifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClass_modifier
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethod_modifier
Visit a parse tree produced byJimpleParser.method_modifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethod_modifier
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitField_modifier
Visit a parse tree produced byJimpleParser.field_modifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitField_modifier
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFile_type
Visit a parse tree produced byJimpleParser.file_type()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFile_type
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExtends_clause
Visit a parse tree produced byJimpleParser.extends_clause()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExtends_clause
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImplements_clause
Visit a parse tree produced byJimpleParser.implements_clause()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImplements_clause
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitType
Visit a parse tree produced byJimpleParser.type()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitType
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitType_list
Visit a parse tree produced byJimpleParser.type_list()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitType_list
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMember
Visit a parse tree produced byJimpleParser.member()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMember
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitField
Visit a parse tree produced byJimpleParser.field()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitField
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethod
Visit a parse tree produced byJimpleParser.method()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethod
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethod_name
Visit a parse tree produced byJimpleParser.method_name()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethod_name
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThrows_clause
Visit a parse tree produced byJimpleParser.throws_clause()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThrows_clause
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethod_body
Visit a parse tree produced byJimpleParser.method_body()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethod_body
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethod_body_contents
Visit a parse tree produced byJimpleParser.method_body_contents()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethod_body_contents
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTrap_clauses
Visit a parse tree produced byJimpleParser.trap_clauses()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTrap_clauses
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStatements
Visit a parse tree produced byJimpleParser.statements()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStatements
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDeclarations
Visit a parse tree produced byJimpleParser.declarations()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDeclarations
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDeclaration
Visit a parse tree produced byJimpleParser.declaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDeclaration
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStatement
Visit a parse tree produced byJimpleParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStatement
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStmt
Visit a parse tree produced byJimpleParser.stmt()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStmt
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssignments
Visit a parse tree produced byJimpleParser.assignments()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssignments
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIdentity_ref
Visit a parse tree produced byJimpleParser.identity_ref()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIdentity_ref
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCase_stmt
Visit a parse tree produced byJimpleParser.case_stmt()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCase_stmt
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCase_label
Visit a parse tree produced byJimpleParser.case_label()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCase_label
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGoto_stmt
Visit a parse tree produced byJimpleParser.goto_stmt()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitGoto_stmt
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTrap_clause
Visit a parse tree produced byJimpleParser.trap_clause()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTrap_clause
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitValue
Visit a parse tree produced byJimpleParser.value()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitValue
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBool_expr
Visit a parse tree produced byJimpleParser.bool_expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBool_expr
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInvoke_expr
Visit a parse tree produced byJimpleParser.invoke_expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInvoke_expr
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBinop_expr
Visit a parse tree produced byJimpleParser.binop_expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBinop_expr
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnop_expr
Visit a parse tree produced byJimpleParser.unop_expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnop_expr
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethod_subsignature
Visit a parse tree produced byJimpleParser.method_subsignature()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethod_subsignature
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethod_signature
Visit a parse tree produced byJimpleParser.method_signature()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethod_signature
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReference
Visit a parse tree produced byJimpleParser.reference()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitReference
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitField_signature
Visit a parse tree produced byJimpleParser.field_signature()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitField_signature
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArray_descriptor
Visit a parse tree produced byJimpleParser.array_descriptor()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArray_descriptor
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArg_list
Visit a parse tree produced byJimpleParser.arg_list()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArg_list
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImmediate
Visit a parse tree produced byJimpleParser.immediate()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImmediate
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodhandle
Visit a parse tree produced byJimpleParser.methodhandle()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodhandle
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstant
Visit a parse tree produced byJimpleParser.constant()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConstant
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBinop
Visit a parse tree produced byJimpleParser.binop()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBinop
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnop
Visit a parse tree produced byJimpleParser.unop()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnop
in interfaceJimpleVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-