Rule
Represents a BNF rule.
| Methods |
| void |
accept(BnfVisitor visitor)
Call the visit method in the given visitor.
|
| void |
accept(BnfVisitor visitor)
Call the visit method in the given visitor.
Parameters:
visitor - the visitor
|
| boolean |
autoComplete(Sentence sentence)
Add the next possible token(s).
|
| boolean |
autoComplete(Sentence sentence)
Add the next possible token(s). If there was a match, the query in the
sentence is updated (the matched token is removed).
Parameters:
sentence - the sentence context
Returns:
true if a full match
|
| void |
setLinks(HashMap ruleMap)
Update cross references.
|
| void |
setLinks(HashMap ruleMap)
Update cross references.
Parameters:
ruleMap - the reference map
|
|