| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DbContextRule(DbContents contents,
int type)
BNF terminal rule Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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,
SCHEMApublic 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)
Rulepublic void accept(BnfVisitor visitor)
Rulepublic boolean autoComplete(Sentence sentence)
RuleautoComplete in interface Rulesentence - the sentence context