|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Rule
Represents a BNF rule.
| 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. |
| Method Detail |
|---|
java.lang.String name()
java.lang.String random(Bnf config,
int level)
config - the configurationlevel - the call level
Rule last()
void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
ruleMap - the reference mapvoid addNextTokenList(Sentence sentence)
sentence - the sentence contextboolean matchRemove(Sentence sentence)
sentence - the sentence context
java.lang.String getHtmlRailroad(Bnf config,
boolean topLevel)
config - the configurationtopLevel - true if line break are permitted
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||