Package org.h2.bnf
Interface Rule
- All Known Implementing Classes:
DbContextRule
,RuleElement
,RuleExtension
,RuleFixed
,RuleList
,RuleOptional
,RuleRepeat
public interface Rule
Represents a BNF rule.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(BnfVisitor visitor) Call the visit method in the given visitor.boolean
autoComplete
(Sentence sentence) Add the next possible token(s).void
Update cross references.
-
Method Details
-
setLinks
Update cross references.- Parameters:
ruleMap
- the reference map
-
autoComplete
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
-
accept
Call the visit method in the given visitor.- Parameters:
visitor
- the visitor
-