| org.h2.bnf.Rule
All known Subclasses: org.h2.bnf.RuleFixed, org.h2.server.web.DbContextRule, org.h2.bnf.RuleList, org.h2.bnf.RuleOptional, org.h2.bnf.RuleRepeat, org.h2.bnf.RuleElement,
Rule | public interface Rule (Code) | | Represents a BNF rule.
|
addNextTokenList | void addNextTokenList(String query, Sentence sentence)(Code) | | Add the next possible token for a query.
Used for autocomplete support.
Parameters: query - the query Parameters: sentence - the sentence context |
last | Rule last()(Code) | | Get the last entry.
the last entry |
matchRemove | String matchRemove(String query, Sentence sentence)(Code) | | Remove a token from a sentence. Used for autocomplete support.
Parameters: query - the query Parameters: sentence - the sentence context null if not a match or a partial match, query.substring... if afull match |
random | String random(Bnf config, int level)(Code) | | Get a random entry.
Parameters: config - Parameters: level - the entry |
setLinks | void setLinks(HashMap ruleMap)(Code) | | Update cross references.
Parameters: ruleMap - the reference map |
|
|