Class EvaluationVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.idempiere.expression.logic.SimpleBooleanBaseVisitor<Object>
-
- org.idempiere.expression.logic.EvaluationVisitor
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>
,SimpleBooleanVisitor<Object>
public class EvaluationVisitor extends SimpleBooleanBaseVisitor<Object>
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description EvaluationVisitor(Evaluatee evaluatee)
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Constructor Detail
-
EvaluationVisitor
public EvaluationVisitor(Evaluatee evaluatee)
-
-
Method Detail
-
visitParse
public Object visitParse(SimpleBooleanParser.ParseContext ctx)
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
public Object visitDecimalExpression(SimpleBooleanParser.DecimalExpressionContext ctx)
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
-
visitQuotedText
public Object visitQuotedText(SimpleBooleanParser.QuotedTextContext ctx)
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
-
visitDoubleQuotedText
public Object visitDoubleQuotedText(SimpleBooleanParser.DoubleQuotedTextContext ctx)
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
public Object visitText(SimpleBooleanParser.TextContext ctx)
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
public Object visitNotExpression(SimpleBooleanParser.NotExpressionContext ctx)
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
public Object visitParenExpression(SimpleBooleanParser.ParenExpressionContext ctx)
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
public Object visitComparatorExpression(SimpleBooleanParser.ComparatorExpressionContext ctx)
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
public Object visitBinaryExpression(SimpleBooleanParser.BinaryExpressionContext ctx)
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
public Object visitBoolExpression(SimpleBooleanParser.BoolExpressionContext ctx)
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
public Object visitComparator(SimpleBooleanParser.ComparatorContext ctx)
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
public Object visitBool(SimpleBooleanParser.BoolContext ctx)
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
public Object visitBinary(SimpleBooleanParser.BinaryContext ctx)
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
public Object visitContextVariables(SimpleBooleanParser.ContextVariablesContext ctx)
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
-
-