|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.bnf.context.DbContextRule
public class DbContextRule
A BNF terminal rule that is linked to the database context information. This class is used by the H2 Console, to support auto-complete.
| Field Summary | |
|---|---|
static int |
COLUMN
|
static int |
COLUMN_ALIAS
|
static int |
NEW_TABLE_ALIAS
|
static int |
PROCEDURE
|
static int |
SCHEMA
|
static int |
TABLE
|
static int |
TABLE_ALIAS
|
| Constructor Summary | |
|---|---|
DbContextRule(DbContents contents,
int type)
BNF terminal rule Constructor |
|
| Method Summary | |
|---|---|
void |
accept(BnfVisitor visitor)
Call the visit method in the given visitor. |
boolean |
autoComplete(Sentence sentence)
Add the next possible token(s). |
void |
setColumnType(java.lang.String columnType)
|
void |
setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Update cross references. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COLUMN
public static final int TABLE
public static final int TABLE_ALIAS
public static final int NEW_TABLE_ALIAS
public static final int COLUMN_ALIAS
public static final int SCHEMA
public static final int PROCEDURE
| Constructor Detail |
|---|
public DbContextRule(DbContents contents,
int type)
contents - Extract rule from this componenttype - Rule type, one of
COLUMN,
TABLE,
TABLE_ALIAS,
NEW_TABLE_ALIAS,
COLUMN_ALIAS,
SCHEMA| Method Detail |
|---|
public void setColumnType(java.lang.String columnType)
columnType - COLUMN Auto completion can be filtered by column typepublic void setLinks(java.util.HashMap<java.lang.String,RuleHead> ruleMap)
Rule
setLinks in interface RuleruleMap - the reference mappublic void accept(BnfVisitor visitor)
Rule
accept in interface Rulevisitor - the visitorpublic boolean autoComplete(Sentence sentence)
Rule
autoComplete in interface Rulesentence - the sentence context
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||