|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql.parser.SqlAbstractParserImpl
public abstract class SqlAbstractParserImpl
Abstract base for parsers generated from CommonParser.jj.
| Nested Class Summary | |
|---|---|
protected static class |
SqlAbstractParserImpl.ExprContext
Type-safe enum for context of acceptable expressions. |
static interface |
SqlAbstractParserImpl.Metadata
Metadata about the parser. |
static class |
SqlAbstractParserImpl.MetadataImpl
Default implementation of the SqlAbstractParserImpl.Metadata interface. |
| Field Summary | |
|---|---|
protected int |
nDynamicParams
|
protected SqlStdOperatorTable |
opTab
Operator table containing the standard SQL operators and functions. |
private static Set<String> |
sql92ReservedWordSet
|
| Constructor Summary | |
|---|---|
SqlAbstractParserImpl()
|
|
| Method Summary | |
|---|---|
protected SqlCall |
createCall(SqlIdentifier funName,
SqlParserPos pos,
SqlFunctionCategory funcType,
SqlLiteral functionQualifier,
SqlNode[] operands)
Creates a call. |
abstract SqlAbstractParserImpl.Metadata |
getMetadata()
Returns metadata about this parser: keywords, etc. |
static Set<String> |
getSql92ReservedWords()
|
abstract SqlParseException |
normalizeException(Throwable ex)
Removes or transforms misleading information from a parse exception or error, and converts to SqlParseException. |
abstract void |
ReInit(Reader reader)
Reinitializes parser with new input. |
abstract void |
setTabSize(int tabSize)
Sets the tab stop size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Set<String> sql92ReservedWordSet
protected final SqlStdOperatorTable opTab
protected int nDynamicParams
| Constructor Detail |
|---|
public SqlAbstractParserImpl()
| Method Detail |
|---|
public static Set<String> getSql92ReservedWords()
protected SqlCall createCall(SqlIdentifier funName,
SqlParserPos pos,
SqlFunctionCategory funcType,
SqlLiteral functionQualifier,
SqlNode[] operands)
funName - Name of functionpos - Position in source codefuncType - Type of functionfunctionQualifier - Qualifieroperands - Operands to call
public abstract SqlAbstractParserImpl.Metadata getMetadata()
public abstract SqlParseException normalizeException(Throwable ex)
SqlParseException.
ex - dirty excn
public abstract void ReInit(Reader reader)
reader - provides new inputpublic abstract void setTabSize(int tabSize)
tabSize - Tab stop size
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||