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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
visitEndpointRule(Endpoint endpoint)
Invoked when reaching an endpoint rule.R
visitErrorRule(Expression error)
Invoked when reaching an error rule.R
visitTreeRule(java.util.List<Rule> rules)
Invoked when reaching a tree rule.
-
-
-
Method Detail
-
visitTreeRule
R visitTreeRule(java.util.List<Rule> rules)
Invoked when reaching a tree rule.- Parameters:
rules
- the sub-rules within a tree rule.- Returns:
- the visitor return type.
-
visitErrorRule
R visitErrorRule(Expression error)
Invoked when reaching an error rule.- Parameters:
error
- the error expression for the rule.- Returns:
- the visitor return type.
-
-