Class EvaluationVisitor
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>
,SimpleBooleanVisitor<Object>
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced bySimpleBooleanParser.binary()
.Visit a parse tree produced by thebinaryExpression
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced bySimpleBooleanParser.bool()
.Visit a parse tree produced by theboolExpression
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced bySimpleBooleanParser.comparator()
.Visit a parse tree produced by thecomparatorExpression
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced by thecontextVariables
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced by thedecimalExpression
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced by thedoubleQuotedCSVText
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced by thedoubleQuotedText
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced by thenotExpression
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced by theparenExpression
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced bySimpleBooleanParser.parse()
.Visit a parse tree produced by thequotedCSVText
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced by thequotedText
labeled alternative inSimpleBooleanParser.expression()
.Visit a parse tree produced by thetext
labeled alternative inSimpleBooleanParser.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
-
EvaluationVisitor
-
-
Method Details
-
visitParse
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced bySimpleBooleanParser.parse()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParse
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitParse
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDecimalExpression
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thedecimalExpression
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDecimalExpression
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitDecimalExpression
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQuotedCSVText
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thequotedCSVText
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitQuotedCSVText
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitQuotedCSVText
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQuotedText
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thequotedText
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitQuotedText
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitQuotedText
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDoubleQuotedCSVText
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thedoubleQuotedCSVText
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDoubleQuotedCSVText
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitDoubleQuotedCSVText
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDoubleQuotedText
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thedoubleQuotedText
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDoubleQuotedText
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitDoubleQuotedText
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitText
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thetext
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitText
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitText
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNotExpression
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thenotExpression
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNotExpression
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitNotExpression
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParenExpression
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by theparenExpression
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenExpression
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitParenExpression
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitComparatorExpression
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thecomparatorExpression
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitComparatorExpression
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitComparatorExpression
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBinaryExpression
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thebinaryExpression
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBinaryExpression
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitBinaryExpression
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBoolExpression
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by theboolExpression
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBoolExpression
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitBoolExpression
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitComparator
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced bySimpleBooleanParser.comparator()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitComparator
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitComparator
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBool
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced bySimpleBooleanParser.bool()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBool
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitBool
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBinary
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced bySimpleBooleanParser.binary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBinary
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitBinary
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitContextVariables
Description copied from class:SimpleBooleanBaseVisitor
Visit a parse tree produced by thecontextVariables
labeled alternative inSimpleBooleanParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitContextVariables
in interfaceSimpleBooleanVisitor<Object>
- Overrides:
visitContextVariables
in classSimpleBooleanBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-