org.eigenbase.sql.parser
Interface SqlAbstractParserImpl.Metadata

All Known Implementing Classes:
SqlAbstractParserImpl.MetadataImpl
Enclosing class:
SqlAbstractParserImpl

public static interface SqlAbstractParserImpl.Metadata

Metadata about the parser. For example:


Method Summary
 String getJdbcKeywords()
          Returns comma-separated list of JDBC keywords.
 List<String> getTokens()
          Returns a list of all tokens in alphabetical order.
 boolean isContextVariableName(String token)
          Returns whether token is the name of a context variable such as "CURRENT_USER".
 boolean isKeyword(String token)
          Returns whether token is a keyword.
 boolean isNonReservedKeyword(String token)
          Returns true if token is a keyword but not a reserved word.
 boolean isReservedFunctionName(String token)
          Returns whether token is a reserved function name such as "CURRENT_USER".
 boolean isReservedWord(String token)
          Returns whether token is a reserved word.
 boolean isSql92ReservedWord(String token)
          Returns whether token is a reserved word as specified by the SQL:92 standard.
 

Method Detail

isNonReservedKeyword

boolean isNonReservedKeyword(String token)
Returns true if token is a keyword but not a reserved word. For example, "KEY".


isContextVariableName

boolean isContextVariableName(String token)
Returns whether token is the name of a context variable such as "CURRENT_USER".


isReservedFunctionName

boolean isReservedFunctionName(String token)
Returns whether token is a reserved function name such as "CURRENT_USER".


isKeyword

boolean isKeyword(String token)
Returns whether token is a keyword. (That is, a non-reserved keyword, a context variable, or a reserved function name.)


isReservedWord

boolean isReservedWord(String token)
Returns whether token is a reserved word.


isSql92ReservedWord

boolean isSql92ReservedWord(String token)
Returns whether token is a reserved word as specified by the SQL:92 standard.


getJdbcKeywords

String getJdbcKeywords()
Returns comma-separated list of JDBC keywords.


getTokens

List<String> getTokens()
Returns a list of all tokens in alphabetical order.