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 RvisitEndpointRule(Endpoint endpoint)Invoked when reaching an endpoint rule.RvisitErrorRule(Expression error)Invoked when reaching an error rule.RvisitTreeRule(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.
-
-