|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.bnf.RuleElement
public class RuleElement
A single terminal rule in a BNF object.
| 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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic void accept(BnfVisitor visitor)
Rule
accept in interface Rulevisitor - the visitorpublic java.lang.String name()
Rule
name in interface Rulepublic void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Rule
setLinks in interface RuleruleMap - the reference mappublic boolean matchRemove(Sentence sentence)
Rule
matchRemove in interface Rulesentence - the sentence context
public void addNextTokenList(Sentence sentence)
Rule
addNextTokenList in interface Rulesentence - the sentence context
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||