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:SimpleBooleanBaseVisitorVisit 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:
visitParsein interfaceSimpleBooleanVisitor<Object>- Overrides:
visitParsein classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDecimalExpression
public Object visitDecimalExpression(SimpleBooleanParser.DecimalExpressionContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by thedecimalExpressionlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDecimalExpressionin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitDecimalExpressionin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuotedText
public Object visitQuotedText(SimpleBooleanParser.QuotedTextContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by thequotedTextlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuotedTextin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitQuotedTextin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoubleQuotedText
public Object visitDoubleQuotedText(SimpleBooleanParser.DoubleQuotedTextContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by thedoubleQuotedTextlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDoubleQuotedTextin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitDoubleQuotedTextin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitText
public Object visitText(SimpleBooleanParser.TextContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by thetextlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTextin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitTextin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNotExpression
public Object visitNotExpression(SimpleBooleanParser.NotExpressionContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by thenotExpressionlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNotExpressionin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitNotExpressionin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenExpression
public Object visitParenExpression(SimpleBooleanParser.ParenExpressionContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by theparenExpressionlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenExpressionin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitParenExpressionin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparatorExpression
public Object visitComparatorExpression(SimpleBooleanParser.ComparatorExpressionContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by thecomparatorExpressionlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitComparatorExpressionin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitComparatorExpressionin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryExpression
public Object visitBinaryExpression(SimpleBooleanParser.BinaryExpressionContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by thebinaryExpressionlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinaryExpressionin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitBinaryExpressionin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolExpression
public Object visitBoolExpression(SimpleBooleanParser.BoolExpressionContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by theboolExpressionlabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolExpressionin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitBoolExpressionin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparator
public Object visitComparator(SimpleBooleanParser.ComparatorContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit 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:
visitComparatorin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitComparatorin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBool
public Object visitBool(SimpleBooleanParser.BoolContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit 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:
visitBoolin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitBoolin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinary
public Object visitBinary(SimpleBooleanParser.BinaryContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit 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:
visitBinaryin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitBinaryin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContextVariables
public Object visitContextVariables(SimpleBooleanParser.ContextVariablesContext ctx)
Description copied from class:SimpleBooleanBaseVisitorVisit a parse tree produced by thecontextVariableslabeled alternative inSimpleBooleanParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContextVariablesin interfaceSimpleBooleanVisitor<Object>- Overrides:
visitContextVariablesin classSimpleBooleanBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-