Class SQLOPToken
java.lang.Object
com.tangosol.coherence.dsltools.precedence.OPToken
com.tangosol.coherence.dsltools.precedence.IdentifierOPToken
com.tangosol.coherence.dslquery.token.SQLOPToken
- Direct Known Subclasses:
AbstractSQLSnapshotOPToken,SQLBackupOPToken,SQLCreateCacheOPToken,SQLCreateIndexOPToken,SQLDeleteOPToken,SQLDropCacheOPToken,SQLDropIndexOPToken,SQLExplainOPToken,SQLForceRecoveryOPToken,SQLInsertOPToken,SQLListArchivedSnapshotsOPToken,SQLListArchiverOPToken,SQLListServicesOPToken,SQLListSnapshotsOPToken,SQLRemoveSnapshotOPToken,SQLRestoreOPToken,SQLResumeServiceOPToken,SQLRetrieveSnapshotOPToken,SQLSelectOPToken,SQLSourceOPToken,SQLSuspendServiceOPToken,SQLTruncateCacheOPToken,SQLUpdateOPToken,SQLValidateSnapshotOPToken
SQLOPToken provides useful convenience methods for subclasses.
- Author:
- djl 2010.05.04
-
Field Summary
Fields inherited from class com.tangosol.coherence.dsltools.precedence.OPToken
BINARY_OPERATOR_NODE, BINDING_NODE, CALL_NODE, DEREF_NODE, FIELD_LIST, IDENTIFIER_NODE, LIST_NODE, LITERAL_NODE, m_nBindingPower, m_sLedASTName, m_sNudASTName, m_sValue, PRECEDENCE_ASSIGNMENT, PRECEDENCE_BITWISE, PRECEDENCE_EXPONENT, PRECEDENCE_IDENTIFIER, PRECEDENCE_KEYWORD, PRECEDENCE_LOGICAL, PRECEDENCE_LOGICAL_BITWISE, PRECEDENCE_PARENTHESES, PRECEDENCE_PRODUCT, PRECEDENCE_RELATIONAL, PRECEDENCE_SUM, PRECEDENCE_UNARY, PRECEDENCE_UNARY_POST, UNARY_OPERATOR_NODE -
Constructor Summary
ConstructorsConstructorDescriptionSQLOPToken(String id) Construct a new SQLOPToken with the given parameters.SQLOPToken(String id, String sNudASTName) Construct a new SQLOPToken with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected TermcheckAlias(OPParser p, String... expectedNextKeywords) Check to see if there is an alias and create a Term to hold the alias identifier if one existsMethods inherited from class com.tangosol.coherence.dsltools.precedence.IdentifierOPToken
led, nudMethods inherited from class com.tangosol.coherence.dsltools.precedence.OPToken
equals, getBindingPower, getId, getLedASTName, getNudASTName, getValue, hashCode, leftBindingPower, newAST, newAST, newAST, newAST, newAST, setBindingPower, setId, setLedASTName, setNudASTName, setValue, toString
-
Constructor Details
-
SQLOPToken
Construct a new SQLOPToken with the given parameters.- Parameters:
id- string identifier for this token
-
SQLOPToken
Construct a new SQLOPToken with the given parameters.- Parameters:
id- string identifier for this tokensNudASTName- the ast name to use for constructing an ast
-
-
Method Details
-
checkAlias
Check to see if there is an alias and create a Term to hold the alias identifier if one exists- Parameters:
p- The current ParserexpectedNextKeywords- The next keyword to expect- Returns:
- the alias Term
-