Interface RuleValueVisitor<R>
- Type Parameters:
R
- The return type of the visitor
- All Known Implementing Classes:
TraversingVisitor
public interface RuleValueVisitor<R>
Visitor for the right-hand side of rules (tree, error, endpoint).
-
Method Summary
Modifier and TypeMethodDescriptionvisitEndpointRule
(Endpoint endpoint) Invoked when reaching an endpoint rule.visitErrorRule
(Expression error) Invoked when reaching an error rule.visitTreeRule
(List<Rule> rules) Invoked when reaching a tree rule.
-
Method Details
-
visitTreeRule
Invoked when reaching a tree rule.- Parameters:
rules
- the sub-rules within a tree rule.- Returns:
- the visitor return type.
-
visitErrorRule
Invoked when reaching an error rule.- Parameters:
error
- the error expression for the rule.- Returns:
- the visitor return type.
-
visitEndpointRule
Invoked when reaching an endpoint rule.- Parameters:
endpoint
- the endpoint of the rule.- Returns:
- the visitor return type.
-