Class JimpleBaseVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor 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
Constructors -
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, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
visitIdentifierin 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_constantin 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:
visitFilein 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:
visitImportItemin 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_modifierin 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_modifierin 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_modifierin 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_modifierin 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_typein 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_clausein 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_clausein 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:
visitTypein 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_listin 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:
visitMemberin 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:
visitFieldin 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:
visitMethodin 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_namein 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_clausein 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_bodyin 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_contentsin 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_clausesin 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:
visitStatementsin 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:
visitDeclarationsin 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:
visitDeclarationin 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:
visitStatementin 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:
visitStmtin 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:
visitAssignmentsin 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_refin 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_stmtin 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_labelin 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_stmtin 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_clausein 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:
visitValuein 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_exprin 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_exprin 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_exprin 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_exprin 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_subsignaturein 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_signaturein 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:
visitReferencein 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_signaturein 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_descriptorin 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_listin 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:
visitImmediatein 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:
visitMethodhandlein 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:
visitConstantin 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:
visitBinopin 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:
visitUnopin interfaceJimpleVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-