Class TreeRule
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.rule.Rule
software.amazon.smithy.rulesengine.language.syntax.rule.TreeRule
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,TypeCheck
A rule-set rule that is used to contain condition based branching rules.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.smithy.rulesengine.language.syntax.rule.Rule
Rule.Builder
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(RuleValueVisitor<T> visitor) Invoke theRuleValueVisitor
functions for this Rule.getRules()
Gets the rules contained within this tree.toString()
protected Type
typecheckValue
(Scope<Type> scope) Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.rule.Rule
builder, builder, equals, fromNode, getConditions, getDocumentation, getSourceLocation, hashCode, toNode, typeCheck
-
Method Details
-
getRules
Gets the rules contained within this tree.- Returns:
- the rules within this tree.
-
accept
Description copied from class:Rule
Invoke theRuleValueVisitor
functions for this Rule. -
typecheckValue
- Specified by:
typecheckValue
in classRule
-
toString
-