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 IJqPathParserjqPathParser
-
Constructor Summary
Constructors Constructor Description RuleSetTreeBuilder(IJqPathParser jsonPathParser)
-
Method Summary
-
Methods inherited from class app.dassana.rules.RuleSetBaseListener
enterBoolIsFaleOperator, enterBoolIstrueOperator, enterBoolOperations, enterDoesNotExistOperator, enterEmptyOperator, enterEveryRule, enterExistsOperator, enterGenericOperations, enterJq_path, enterJqOperation, enterJQPathConditionExpression, enterLogicalExpressionAnd, enterLogicalExpressionNot, enterLogicalExpressionOr, enterNumber_comparision_value, enterNumberGreaterThanOperator, enterNumberOperations, enterParenExpression, enterSingle_rule, enterString_comparison_value, enterStringContainsExpression, enterStringEqualsOperator, enterStringOperations, exitBoolIsFaleOperator, exitBoolIstrueOperator, exitEveryRule, exitJq_path, exitJQPathConditionExpression, exitNumber_comparision_value, exitSingle_rule, exitString_comparison_value, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
jqPathParser
protected IJqPathParser jqPathParser
-
-
Constructor Detail
-
RuleSetTreeBuilder
public RuleSetTreeBuilder(IJqPathParser 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
-
exitJqOperation
public void exitJqOperation(RuleSetParser.JqOperationContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theJqOperationlabeled alternative inRuleSetParser.jq_path_condition().The default implementation does nothing.
- Specified by:
exitJqOperationin interfaceRuleSetListener- Overrides:
exitJqOperationin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitStringOperations
public void exitStringOperations(RuleSetParser.StringOperationsContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theStringOperationslabeled alternative inRuleSetParser.jq_path_condition().The default implementation does nothing.
- Specified by:
exitStringOperationsin interfaceRuleSetListener- Overrides:
exitStringOperationsin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitNumberOperations
public void exitNumberOperations(RuleSetParser.NumberOperationsContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theNumberOperationslabeled alternative inRuleSetParser.jq_path_condition().The default implementation does nothing.
- Specified by:
exitNumberOperationsin interfaceRuleSetListener- Overrides:
exitNumberOperationsin classRuleSetBaseListener- Parameters:
ctx- the parse tree
-
exitBoolOperations
public void exitBoolOperations(RuleSetParser.BoolOperationsContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theBoolOperationslabeled alternative inRuleSetParser.jq_path_condition().The default implementation does nothing.
- Specified by:
exitBoolOperationsin interfaceRuleSetListener- Overrides:
exitBoolOperationsin 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
-
exitGenericOperations
public void exitGenericOperations(RuleSetParser.GenericOperationsContext ctx)
Description copied from class:RuleSetBaseListenerExit a parse tree produced by theGenericOperationslabeled alternative inRuleSetParser.jq_path_condition().The default implementation does nothing.
- Specified by:
exitGenericOperationsin interfaceRuleSetListener- Overrides:
exitGenericOperationsin 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
-
-