Class RuleElement
java.lang.Object
org.h2.bnf.RuleElement
- All Implemented Interfaces:
Rule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(BnfVisitor visitor) Call the visit method in the given visitor.booleanautoComplete(Sentence sentence) Add the next possible token(s).voidUpdate cross references.toString()
-
Field Details
-
keyword
private final boolean keyword -
name
-
link
-
type
private final int type
-
-
Constructor Details
-
RuleElement
-
-
Method Details
-
accept
Description copied from interface:RuleCall the visit method in the given visitor. -
setLinks
-
autoComplete
Description copied from interface:RuleAdd the next possible token(s). If there was a match, the query in the sentence is updated (the matched token is removed).- Specified by:
autoCompletein interfaceRule- Parameters:
sentence- the sentence context- Returns:
- true if a full match
-
toString
-