public interface BnfVisitor
Modifier and Type | Method and Description |
---|---|
void |
visitRuleElement(boolean keyword,
String name,
Rule link)
Visit a rule element.
|
void |
visitRuleFixed(int type)
Visit a fixed rule.
|
void |
visitRuleList(boolean or,
ArrayList<Rule> list)
Visit a rule list.
|
void |
visitRuleOptional(Rule rule)
Visit an optional rule.
|
void |
visitRuleRepeat(boolean comma,
Rule rule)
Visit a repeat rule.
|
void visitRuleElement(boolean keyword, String name, Rule link)
keyword
- whether this is a keywordname
- the element namelink
- the linked rule if it's not a keywordvoid visitRuleRepeat(boolean comma, Rule rule)
comma
- whether the comma is repeated as wellrule
- the element to repeatvoid visitRuleFixed(int type)
type
- the typevoid visitRuleList(boolean or, ArrayList<Rule> list)
or
- true for OR, false for ANDlist
- the rulesvoid visitRuleOptional(Rule rule)
rule
- the ruleCopyright © 2012 JBoss by Red Hat. All Rights Reserved.