|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.bnf.RuleList
public class RuleList
Represents a sequence of BNF rules, or a list of alternative rules.
Constructor Summary | |
---|---|
RuleList(Rule first,
Rule next,
boolean or)
|
Method Summary | |
---|---|
void |
accept(BnfVisitor visitor)
Call the visit method in the given visitor. |
boolean |
autoComplete(Sentence sentence)
Add the next possible token(s). |
void |
setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Update cross references. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleList(Rule first, Rule next, boolean or)
Method Detail |
---|
public void accept(BnfVisitor visitor)
Rule
accept
in interface Rule
visitor
- the visitorpublic void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Rule
setLinks
in interface Rule
ruleMap
- the reference mappublic boolean autoComplete(Sentence sentence)
Rule
autoComplete
in interface Rule
sentence
- the sentence context
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |