Top Description Methods
org.h2.bnf

public Interface Rule

Known Direct Implementers
org.h2.bnf.RuleElement, org.h2.bnf.RuleExtension, org.h2.bnf.RuleFixed, org.h2.bnf.RuleList, org.h2.bnf.RuleOptional, org.h2.bnf.RuleRepeat, org.h2.bnf.context.DbContextRule
Imports
java.util.HashMap

Represents a BNF rule.

Method Summary

Modifier and TypeMethod and Description
public void
accept(BnfVisitor
the visitor
visitor
)

Call the visit method in the given visitor.

public boolean

Returns:

true if a full match
autoComplete
(Sentence
the sentence context
sentence
)

Add the next possible token(s).

Method Detail

acceptback to summary
public void accept(BnfVisitor visitor)

Call the visit method in the given visitor.

Parameters
visitor:BnfVisitor

the visitor

autoCompleteback to summary
public boolean autoComplete(Sentence sentence)

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:Sentence

the sentence context

Returns:boolean

true if a full match