Class SimpleLanguageBaseVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
SimpleLanguageVisitor<T>,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
- Direct Known Subclasses:
SLBaseParser
SimpleLanguageVisitor,
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 bySimpleLanguageParser.arithmetic().Visit a parse tree produced bySimpleLanguageParser.block().Visit a parse tree produced bySimpleLanguageParser.break_statement().Visit a parse tree produced bySimpleLanguageParser.continue_statement().Visit a parse tree produced bySimpleLanguageParser.debugger_statement().Visit a parse tree produced bySimpleLanguageParser.expression().Visit a parse tree produced bySimpleLanguageParser.expression_statement().Visit a parse tree produced bySimpleLanguageParser.function().Visit a parse tree produced bySimpleLanguageParser.if_statement().Visit a parse tree produced bySimpleLanguageParser.logic_factor().Visit a parse tree produced bySimpleLanguageParser.logic_term().Visit a parse tree produced by theMemberAssignlabeled alternative inSimpleLanguageParser.member_expression().Visit a parse tree produced by theMemberCalllabeled alternative inSimpleLanguageParser.member_expression().Visit a parse tree produced by theMemberFieldlabeled alternative inSimpleLanguageParser.member_expression().Visit a parse tree produced by theMemberIndexlabeled alternative inSimpleLanguageParser.member_expression().Visit a parse tree produced by theNameAccesslabeled alternative inSimpleLanguageParser.factor().Visit a parse tree produced by theNumericLiterallabeled alternative inSimpleLanguageParser.factor().Visit a parse tree produced by theParenExpressionlabeled alternative inSimpleLanguageParser.factor().Visit a parse tree produced bySimpleLanguageParser.return_statement().Visit a parse tree produced bySimpleLanguageParser.simplelanguage().Visit a parse tree produced bySimpleLanguageParser.statement().Visit a parse tree produced by theStringLiterallabeled alternative inSimpleLanguageParser.factor().Visit a parse tree produced bySimpleLanguageParser.term().Visit a parse tree produced bySimpleLanguageParser.while_statement().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
-
SimpleLanguageBaseVisitor
public SimpleLanguageBaseVisitor()
-
-
Method Details
-
visitSimplelanguage
Visit a parse tree produced bySimpleLanguageParser.simplelanguage().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimplelanguagein interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction
Visit a parse tree produced bySimpleLanguageParser.function().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Visit a parse tree produced bySimpleLanguageParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStatement
Visit a parse tree produced bySimpleLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStatementin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBreak_statement
Visit a parse tree produced bySimpleLanguageParser.break_statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBreak_statementin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContinue_statement
Visit a parse tree produced bySimpleLanguageParser.continue_statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContinue_statementin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression_statement
Visit a parse tree produced bySimpleLanguageParser.expression_statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpression_statementin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDebugger_statement
Visit a parse tree produced bySimpleLanguageParser.debugger_statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDebugger_statementin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhile_statement
Visit a parse tree produced bySimpleLanguageParser.while_statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhile_statementin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIf_statement
Visit a parse tree produced bySimpleLanguageParser.if_statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIf_statementin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturn_statement
Visit a parse tree produced bySimpleLanguageParser.return_statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturn_statementin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression
Visit a parse tree produced bySimpleLanguageParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogic_term
Visit a parse tree produced bySimpleLanguageParser.logic_term().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogic_termin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogic_factor
Visit a parse tree produced bySimpleLanguageParser.logic_factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogic_factorin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArithmetic
Visit a parse tree produced bySimpleLanguageParser.arithmetic().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArithmeticin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTerm
Visit a parse tree produced bySimpleLanguageParser.term().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTermin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNameAccess
Visit a parse tree produced by theNameAccesslabeled alternative inSimpleLanguageParser.factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNameAccessin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
Visit a parse tree produced by theStringLiterallabeled alternative inSimpleLanguageParser.factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringLiteralin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumericLiteral
Visit a parse tree produced by theNumericLiterallabeled alternative inSimpleLanguageParser.factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumericLiteralin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenExpression
Visit a parse tree produced by theParenExpressionlabeled alternative inSimpleLanguageParser.factor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenExpressionin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberCall
Visit a parse tree produced by theMemberCalllabeled alternative inSimpleLanguageParser.member_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberCallin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberAssign
Visit a parse tree produced by theMemberAssignlabeled alternative inSimpleLanguageParser.member_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberAssignin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberField
Visit a parse tree produced by theMemberFieldlabeled alternative inSimpleLanguageParser.member_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberFieldin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberIndex
Visit a parse tree produced by theMemberIndexlabeled alternative inSimpleLanguageParser.member_expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberIndexin interfaceSimpleLanguageVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-