|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BnfVisitor
The visitor interface for BNF rules.
Method Summary | |
---|---|
void |
visitRuleElement(boolean keyword,
java.lang.String name,
Rule link)
Visit a rule element. |
void |
visitRuleFixed(int type)
Visit a fixed rule. |
void |
visitRuleList(boolean or,
java.util.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. |
Method Detail |
---|
void visitRuleElement(boolean keyword, java.lang.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, java.util.ArrayList<Rule> list)
or
- true for OR, false for ANDlist
- the rulesvoid visitRuleOptional(Rule rule)
rule
- the rule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |