Package org.h2.bnf
Class RuleExtension
java.lang.Object
org.h2.bnf.RuleExtension
- All Implemented Interfaces:
Rule
Represents a non-standard syntax.
-
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()
-
Constructor Details
-
RuleExtension
-
-
Method Details
-
accept
Description copied from interface:RuleCall the visit method in the given visitor. -
setLinks
Description copied from interface:RuleUpdate cross references. -
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
-