Package com.helix.core.parser.ast
Class RuleNode
java.lang.Object
com.helix.core.parser.ast.RuleNode
- All Implemented Interfaces:
Rule,ExpressionNode
Composite AST node encapsulating a complete compiled rule definition and its parsed AST root.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(AstVisitor<R> visitor) Accepts an AST visitor.Gets a description of what the rule does.Gets the raw expression string representing the rule logic.Gets the expected input schema mapping parameter names to expected types.getName()Gets the unique name of the rule.Gets the version of the rule.toString()
-
Constructor Details
-
RuleNode
-
RuleNode
-
RuleNode
-
-
Method Details
-
getName
Description copied from interface:RuleGets the unique name of the rule. -
getVersion
Description copied from interface:RuleGets the version of the rule.- Specified by:
getVersionin interfaceRule- Returns:
- rule version
-
getDescription
Description copied from interface:RuleGets a description of what the rule does.- Specified by:
getDescriptionin interfaceRule- Returns:
- rule description
-
getCategory
-
getExpression
Description copied from interface:RuleGets the raw expression string representing the rule logic.- Specified by:
getExpressionin interfaceRule- Returns:
- expression string
-
getInputSchema
Description copied from interface:RuleGets the expected input schema mapping parameter names to expected types.- Specified by:
getInputSchemain interfaceRule- Returns:
- map of variable name to type class
-
getRootNode
-
accept
Description copied from interface:ExpressionNodeAccepts an AST visitor.- Specified by:
acceptin interfaceExpressionNode- Type Parameters:
R- return type- Parameters:
visitor- the visitor- Returns:
- result from visitor
-
toString
-