|
|||||||||
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 |
accept(BnfVisitor visitor)
Call the visit method in the given visitor. |
void |
addNextTokenList(Sentence sentence)
Add the next possible token for a query. |
boolean |
matchRemove(Sentence sentence)
Remove a token from a sentence. |
java.lang.String |
name()
Get the name of the rule. |
void |
setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Update cross references. |
Method Detail |
---|
java.lang.String name()
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
void accept(BnfVisitor visitor)
visitor
- the visitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |