Class JavascriptBaseVisitor<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>
,JavascriptVisitor<T>
JavascriptVisitor
, 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 by theaddsub
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by thebooland
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by theboolcomp
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by thebooleqne
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by theboolor
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by thebwand
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by thebwor
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by thebwshift
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by thebwxor
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced byJavascriptParser.compile()
.Visit a parse tree produced by theconditional
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by theexternal
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by themuldiv
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by thenumeric
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by theprecedence
labeled alternative inJavascriptParser.expression()
.Visit a parse tree produced by theunary
labeled alternative inJavascriptParser.expression()
.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
-
JavascriptBaseVisitor
JavascriptBaseVisitor()
-
-
Method Details
-
visitCompile
Visit a parse tree produced byJavascriptParser.compile()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCompile
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditional
Visit a parse tree produced by theconditional
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConditional
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBoolor
Visit a parse tree produced by theboolor
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBoolor
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBoolcomp
Visit a parse tree produced by theboolcomp
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBoolcomp
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNumeric
Visit a parse tree produced by thenumeric
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNumeric
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAddsub
Visit a parse tree produced by theaddsub
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAddsub
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnary
Visit a parse tree produced by theunary
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnary
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrecedence
Visit a parse tree produced by theprecedence
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrecedence
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMuldiv
Visit a parse tree produced by themuldiv
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMuldiv
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExternal
Visit a parse tree produced by theexternal
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExternal
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBwshift
Visit a parse tree produced by thebwshift
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBwshift
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBwor
Visit a parse tree produced by thebwor
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBwor
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooland
Visit a parse tree produced by thebooland
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBooland
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBwxor
Visit a parse tree produced by thebwxor
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBwxor
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBwand
Visit a parse tree produced by thebwand
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBwand
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooleqne
Visit a parse tree produced by thebooleqne
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBooleqne
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-