|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.bnf.RuleRepeat
public class RuleRepeat
Represents a loop in a BNF object.
| Method Summary | |
|---|---|
void |
addNextTokenList(Sentence sentence)
Add the next possible token for a query. |
java.lang.String |
getHtmlRailroad(Bnf config,
boolean topLevel)
Get the HTML railroad. |
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 getHtmlRailroad(Bnf config,
boolean topLevel)
Rule
getHtmlRailroad in interface Ruleconfig - the configurationtopLevel - true if line break are permitted
public java.lang.String name()
Rule
name in interface Rulepublic Rule last()
Rule
last in interface Rulepublic void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Rule
setLinks in interface RuleruleMap - the reference map
public java.lang.String random(Bnf config,
int level)
Rule
random in interface Ruleconfig - the configurationlevel - the call level
public boolean matchRemove(Sentence sentence)
Rule
matchRemove in interface Rulesentence - the sentence context
public void addNextTokenList(Sentence sentence)
Rule
addNextTokenList in interface Rulesentence - the sentence context
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||