Class TraversingVisitor<R>
java.lang.Object
software.amazon.smithy.rulesengine.language.syntax.expressions.ExpressionVisitor.Default<Stream<R>>
software.amazon.smithy.rulesengine.language.TraversingVisitor<R>
- Type Parameters:
- R- the return type.
- All Implemented Interfaces:
- ExpressionVisitor<Stream<R>>,- RuleValueVisitor<Stream<R>>
public class TraversingVisitor<R>
extends ExpressionVisitor.Default<Stream<R>>
implements RuleValueVisitor<Stream<R>>
A visitor for traversing the rules and conditions of a rule-set.
- 
Nested Class SummaryNested classes/interfaces inherited from interface software.amazon.smithy.rulesengine.language.syntax.expressions.ExpressionVisitorExpressionVisitor.Default<R>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvisitConditions(List<Condition> conditions) Endpointvisitor method.visitEndpoint(Endpoint endpoint) Endpointvisitor method.visitEndpointRule(Endpoint endpoint) Invoked when reaching an endpoint rule.visitErrorRule(Expression error) Invoked when reaching an error rule.visitRuleset(EndpointRuleSet ruleset) Given anEndpointRuleSetwill invoke the visitor methods for each rule.visitTreeRule(List<Rule> rules) Invoked when reaching a tree rule.Methods inherited from class software.amazon.smithy.rulesengine.language.syntax.expressions.ExpressionVisitor.DefaultvisitBoolEquals, visitGetAttr, visitIsSet, visitLibraryFunction, visitLiteral, visitNot, visitRef, visitStringEquals
- 
Constructor Details- 
TraversingVisitorpublic TraversingVisitor()
 
- 
- 
Method Details- 
visitRulesetGiven anEndpointRuleSetwill invoke the visitor methods for each rule.- Parameters:
- ruleset- the endpoint rule-set to traverse.
- Returns:
- a stream of values.
 
- 
getDefault- Specified by:
- getDefaultin class- ExpressionVisitor.Default<Stream<R>>
 
- 
visitTreeRuleDescription copied from interface:RuleValueVisitorInvoked when reaching a tree rule.- Specified by:
- visitTreeRulein interface- RuleValueVisitor<R>
- Parameters:
- rules- the sub-rules within a tree rule.
- Returns:
- the visitor return type.
 
- 
visitErrorRuleDescription copied from interface:RuleValueVisitorInvoked when reaching an error rule.- Specified by:
- visitErrorRulein interface- RuleValueVisitor<R>
- Parameters:
- error- the error expression for the rule.
- Returns:
- the visitor return type.
 
- 
visitEndpointRuleDescription copied from interface:RuleValueVisitorInvoked when reaching an endpoint rule.- Specified by:
- visitEndpointRulein interface- RuleValueVisitor<R>
- Parameters:
- endpoint- the endpoint of the rule.
- Returns:
- the visitor return type.
 
- 
visitEndpointEndpointvisitor method.- Parameters:
- endpoint- the endpoint to visit.
- Returns:
- a stream of values.
 
- 
visitConditionsEndpointvisitor method.- Parameters:
- conditions- the conditions to visit.
- Returns:
- a stream of values.
 
 
-