Class JavascriptBaseVisitor<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>,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 theaddsublabeled alternative inJavascriptParser.expression().Visit a parse tree produced by theboolandlabeled alternative inJavascriptParser.expression().Visit a parse tree produced by theboolcomplabeled alternative inJavascriptParser.expression().Visit a parse tree produced by thebooleqnelabeled alternative inJavascriptParser.expression().Visit a parse tree produced by theboolorlabeled alternative inJavascriptParser.expression().Visit a parse tree produced by thebwandlabeled alternative inJavascriptParser.expression().Visit a parse tree produced by thebworlabeled alternative inJavascriptParser.expression().Visit a parse tree produced by thebwshiftlabeled alternative inJavascriptParser.expression().Visit a parse tree produced by thebwxorlabeled alternative inJavascriptParser.expression().Visit a parse tree produced byJavascriptParser.compile().Visit a parse tree produced by theconditionallabeled alternative inJavascriptParser.expression().Visit a parse tree produced by theexternallabeled alternative inJavascriptParser.expression().Visit a parse tree produced by themuldivlabeled alternative inJavascriptParser.expression().Visit a parse tree produced by thenumericlabeled alternative inJavascriptParser.expression().Visit a parse tree produced by theprecedencelabeled alternative inJavascriptParser.expression().Visit a parse tree produced by theunarylabeled alternative inJavascriptParser.expression().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
-
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:
visitCompilein interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditional
Visit a parse tree produced by theconditionallabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolor
Visit a parse tree produced by theboolorlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolorin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolcomp
Visit a parse tree produced by theboolcomplabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolcompin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumeric
Visit a parse tree produced by thenumericlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumericin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAddsub
Visit a parse tree produced by theaddsublabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAddsubin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnary
Visit a parse tree produced by theunarylabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrecedence
Visit a parse tree produced by theprecedencelabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrecedencein interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMuldiv
Visit a parse tree produced by themuldivlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMuldivin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExternal
Visit a parse tree produced by theexternallabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExternalin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBwshift
Visit a parse tree produced by thebwshiftlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBwshiftin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBwor
Visit a parse tree produced by thebworlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBworin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooland
Visit a parse tree produced by theboolandlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolandin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBwxor
Visit a parse tree produced by thebwxorlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBwxorin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBwand
Visit a parse tree produced by thebwandlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBwandin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooleqne
Visit a parse tree produced by thebooleqnelabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBooleqnein interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-