|
||||||||||
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. |
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |