|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.sql.parser.SqlAbstractParserImpl
net.sf.farrago.parser.FarragoAbstractParserImpl
public abstract class FarragoAbstractParserImpl
Abstract base for parsers generated from CommonDdlParser.jj. Most of the methods on this class correspond to specific methods generated on subclasses.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eigenbase.sql.parser.SqlAbstractParserImpl |
|---|
SqlAbstractParserImpl.ExprContext, SqlAbstractParserImpl.Metadata, SqlAbstractParserImpl.MetadataImpl |
| Field Summary | |
|---|---|
protected boolean |
dropRestrict
Whether a DROP RESTRICT statement is being processed |
protected FarragoSessionParser |
farragoParser
Public parser interface. |
| Fields inherited from class org.eigenbase.sql.parser.SqlAbstractParserImpl |
|---|
nDynamicParams, opTab |
| Constructor Summary | |
|---|---|
FarragoAbstractParserImpl()
|
|
| Method Summary | |
|---|---|
abstract SqlIdentifier |
ContextVariable()
Tests whether the current input is a context variable name. |
abstract Object |
FarragoSqlStmtEof()
|
abstract SqlParserPos |
getCurrentPosition()
|
FarragoRepos |
getRepos()
|
boolean |
isContextVariable(String keyword)
Returns whether a keyword is the name of a context variable. |
boolean |
isNonReserved(String keyword)
Returns whether a keyword is a non-reserved word. |
boolean |
isReservedFunctionName(String keyword)
Returns whether a keyword is the name of a reserved function. |
DdlCreateStmt |
newDdlCreateStmt(CwmModelElement createdElement,
DdlReplaceOptions replaceOptions)
Creates new DDL Statement for CREATE. |
DdlDropStmt |
newDdlDropLabelStmt(CwmModelElement droppedElement,
boolean restrict)
Creates new DDL Statement for DROP LABEL. |
DdlDropStmt |
newDdlDropStmt(CwmModelElement droppedElement,
boolean restrict)
Creates new DDL Statement for DROP. |
abstract String |
NonReservedKeyWord()
Tests whether the current input is a non-reserved keyword. |
abstract SqlParseException |
normalizeException(Throwable e)
Removes or transforms misleading information from a parse exception or error, and converts to SqlParseException. |
abstract SqlIdentifier |
ReservedFunctionName()
Tests whether the current input is a reserved function name. |
protected void |
setDefaultExpression(FemAbstractAttribute attribute,
SqlNode defaultClause)
Converts the SQL representation of a default value into its catalog representation. |
abstract SqlNode |
SqlExpressionEof()
|
| Methods inherited from class org.eigenbase.sql.parser.SqlAbstractParserImpl |
|---|
createCall, getMetadata, getSql92ReservedWords, ReInit, setTabSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FarragoSessionParser farragoParser
protected boolean dropRestrict
| Constructor Detail |
|---|
public FarragoAbstractParserImpl()
| Method Detail |
|---|
public FarragoRepos getRepos()
public abstract SqlParserPos getCurrentPosition()
public abstract SqlNode SqlExpressionEof()
throws Exception
Exception
public abstract Object FarragoSqlStmtEof()
throws Exception
Exception
public abstract String NonReservedKeyWord()
throws Exception
Exception - if not a non-reserved keyword
public abstract SqlIdentifier ReservedFunctionName()
throws Exception
Exception - if not a reserved function name
public abstract SqlIdentifier ContextVariable()
throws Exception
Exception - if not a context variable name
protected void setDefaultExpression(FemAbstractAttribute attribute,
SqlNode defaultClause)
attribute - attribute for which default value is being defineddefaultClause - SQL representationpublic abstract SqlParseException normalizeException(Throwable e)
SqlAbstractParserImplSqlParseException.
normalizeException in class SqlAbstractParserImple - dirty excn
public final boolean isNonReserved(String keyword)
keyword - Keyword
public boolean isReservedFunctionName(String keyword)
keyword - Keyword
public boolean isContextVariable(String keyword)
keyword - Keyword
public DdlDropStmt newDdlDropStmt(CwmModelElement droppedElement,
boolean restrict)
droppedElement - catalog element to droprestrict - whether a DROP RESTRICT statement is being processed
public DdlCreateStmt newDdlCreateStmt(CwmModelElement createdElement,
DdlReplaceOptions replaceOptions)
createdElement - catalog element to createreplaceOptions - attributes of CREATE OR REPLACE
public DdlDropStmt newDdlDropLabelStmt(CwmModelElement droppedElement,
boolean restrict)
droppedElement - label element to droprestrict - whether a DROP RESTRICT statement is being processed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||