Package app.dassana.ruleengine.grammar
Class RuleSetTreeBuilder
- java.lang.Object
-
- app.dassana.rules.RuleSetBaseListener
-
- app.dassana.ruleengine.grammar.RuleSetTreeBuilder
-
- All Implemented Interfaces:
RuleSetListener,org.antlr.v4.runtime.tree.ParseTreeListener
public class RuleSetTreeBuilder extends RuleSetBaseListener
-
-
Field Summary
Fields Modifier and Type Field Description protected IJsonPathParserjsonPathParser
-
Constructor Summary
Constructors Constructor Description RuleSetTreeBuilder(IJsonPathParser jsonPathParser)
-
Method Summary
-
Methods inherited from class app.dassana.rules.RuleSetBaseListener
enterComparison_value, enterDoesNotExistOperator, enterEmptyOperator, enterEveryRule, enterExistsOperator, enterGenericJsonPathCondition, enterJson_path, enterJsonPathCondition, enterJsonPathConditionExpression, enterLogicalExpressionAnd, enterLogicalExpressionNot, enterLogicalExpressionOr, enterNumberGreaterThanOperator, enterOperator, enterParenExpression, enterSingle_rule, enterStringContainsExpression, enterStringEqualsOperator, exitComparison_value, exitEveryRule, exitJson_path, exitJsonPathConditionExpression, exitOperator, exitSingle_rule, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
jsonPathParser
protected IJsonPathParser jsonPathParser
-
-
Constructor Detail
-
RuleSetTreeBuilder
public RuleSetTreeBuilder(IJsonPathParser jsonPathParser)
-
-
Method Detail
-
getRuleSet
public RuleSet getRuleSet()
-
enterRule_set
public void enterRule_set(RuleSetParser.Rule_setContext ctx)
Description copied from class:RuleSetBaseListenerEnter a parse tree produced byRuleSetParser.rule_set().The default implementation does nothing.
- Specified by:
enterRule_setin interfaceRuleSetListener- Overrides:
enterRule_setin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitRule_set
public void exitRule_set(RuleSetParser.Rule_setContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced byRuleSetParser.rule_set().The default implementation does nothing.
- Specified by:
exitRule_setin interfaceRuleSetListener- Overrides:
exitRule_setin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitParenExpression
public void exitParenExpression(RuleSetParser.ParenExpressionContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theParenExpressionlabeled alternative inRuleSetParser.logical_expr().The default implementation does nothing.
- Specified by:
exitParenExpressionin interfaceRuleSetListener- Overrides:
exitParenExpressionin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitLogicalExpressionAnd
public void exitLogicalExpressionAnd(RuleSetParser.LogicalExpressionAndContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theLogicalExpressionAndlabeled alternative inRuleSetParser.logical_expr().The default implementation does nothing.
- Specified by:
exitLogicalExpressionAndin interfaceRuleSetListener- Overrides:
exitLogicalExpressionAndin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitLogicalExpressionOr
public void exitLogicalExpressionOr(RuleSetParser.LogicalExpressionOrContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theLogicalExpressionOrlabeled alternative inRuleSetParser.logical_expr().The default implementation does nothing.
- Specified by:
exitLogicalExpressionOrin interfaceRuleSetListener- Overrides:
exitLogicalExpressionOrin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitLogicalExpressionNot
public void exitLogicalExpressionNot(RuleSetParser.LogicalExpressionNotContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theLogicalExpressionNotlabeled alternative inRuleSetParser.logical_expr().The default implementation does nothing.
- Specified by:
exitLogicalExpressionNotin interfaceRuleSetListener- Overrides:
exitLogicalExpressionNotin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitJsonPathCondition
public void exitJsonPathCondition(RuleSetParser.JsonPathConditionContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theJsonPathConditionlabeled alternative inRuleSetParser.json_path_condition().The default implementation does nothing.
- Specified by:
exitJsonPathConditionin interfaceRuleSetListener- Overrides:
exitJsonPathConditionin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitExistsOperator
public void exitExistsOperator(RuleSetParser.ExistsOperatorContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theExistsOperatorlabeled alternative inRuleSetParser.generic_operators().The default implementation does nothing.
- Specified by:
exitExistsOperatorin interfaceRuleSetListener- Overrides:
exitExistsOperatorin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitStringEqualsOperator
public void exitStringEqualsOperator(RuleSetParser.StringEqualsOperatorContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theStringEqualsOperatorlabeled alternative inRuleSetParser.string_operators().The default implementation does nothing.
- Specified by:
exitStringEqualsOperatorin interfaceRuleSetListener- Overrides:
exitStringEqualsOperatorin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitGenericJsonPathCondition
public void exitGenericJsonPathCondition(RuleSetParser.GenericJsonPathConditionContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theGenericJsonPathConditionlabeled alternative inRuleSetParser.json_path_condition().The default implementation does nothing.
- Specified by:
exitGenericJsonPathConditionin interfaceRuleSetListener- Overrides:
exitGenericJsonPathConditionin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitStringContainsExpression
public void exitStringContainsExpression(RuleSetParser.StringContainsExpressionContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theStringContainsExpressionlabeled alternative inRuleSetParser.string_operators().The default implementation does nothing.
- Specified by:
exitStringContainsExpressionin interfaceRuleSetListener- Overrides:
exitStringContainsExpressionin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitNumberGreaterThanOperator
public void exitNumberGreaterThanOperator(RuleSetParser.NumberGreaterThanOperatorContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theNumberGreaterThanOperatorlabeled alternative inRuleSetParser.number_operators().The default implementation does nothing.
- Specified by:
exitNumberGreaterThanOperatorin interfaceRuleSetListener- Overrides:
exitNumberGreaterThanOperatorin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitDoesNotExistOperator
public void exitDoesNotExistOperator(RuleSetParser.DoesNotExistOperatorContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theDoesNotExistOperatorlabeled alternative inRuleSetParser.generic_operators().The default implementation does nothing.
- Specified by:
exitDoesNotExistOperatorin interfaceRuleSetListener- Overrides:
exitDoesNotExistOperatorin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitEmptyOperator
public void exitEmptyOperator(RuleSetParser.EmptyOperatorContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theEmptyOperatorlabeled alternative inRuleSetParser.generic_operators().The default implementation does nothing.
- Specified by:
exitEmptyOperatorin interfaceRuleSetListener- Overrides:
exitEmptyOperatorin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
-