|
||||||||||
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.
Method Summary | |
---|---|
void |
addNextTokenList(Sentence sentence)
Add the next possible token for a query. |
Rule |
last()
Get the last entry. |
boolean |
matchRemove(Sentence sentence)
Remove a token from a sentence. |
java.lang.String |
name()
Get the name of the rule. |
java.lang.String |
random(Bnf config,
int level)
Get a random entry. |
void |
setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Update cross references. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String random(Bnf config, int level)
Rule
random
in interface Rule
config
- the configurationlevel
- the call level
public java.lang.String name()
Rule
name
in interface Rule
public Rule last()
Rule
last
in interface Rule
public void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Rule
setLinks
in interface Rule
ruleMap
- the reference mappublic boolean matchRemove(Sentence sentence)
Rule
matchRemove
in interface Rule
sentence
- the sentence context
public void addNextTokenList(Sentence sentence)
Rule
addNextTokenList
in interface Rule
sentence
- the sentence context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |