| Constructor and Description |
|---|
RuleOptional(Rule rule) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(BnfVisitor visitor)
Call the visit method in the given visitor.
|
boolean |
autoComplete(Sentence sentence)
Add the next possible token(s).
|
void |
setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Update cross references.
|
public RuleOptional(Rule rule)
public void accept(BnfVisitor visitor)
Rulepublic void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Rulepublic boolean autoComplete(Sentence sentence)
RuleautoComplete in interface Rulesentence - the sentence context