Package org.apache.derby.impl.sql.compile

Examples of org.apache.derby.impl.sql.compile.Token


      curLexState = lexState;
}

protected Token jjFillToken()
{
   Token t = Token.newToken(jjmatchedKind);
   t.kind = jjmatchedKind;
   if (jjmatchedPos < 0)
   {
      if (image == null)
         t.image = "";
View Full Code Here


int jjmatchedKind;

public Token getNextToken()
{
  int kind;
  Token specialToken = null;
  Token matchedToken;
  int curPos = 0;

  EOFLoop :
  for (;;)
  {  
View Full Code Here

        String               newTableName;
        TableElementList        tableElementList =
                                                                        (TableElementList) nodeFactory.getNode(
                                                                                                C_NodeTypes.TABLE_ELEMENT_LIST,
                                                                                                getContextManager());
        Token                           tok = null;
        int[]                           changeType = new int[1];
        int[]                           behavior = new int[1];
        boolean[]                       sequential = new boolean[1];
    switch (jj_nt.kind) {
    case COMPRESS:
View Full Code Here

*/
  final public char alterTableAction(TableElementList tableElementList, int[] changeType, int[] behavior, boolean[] sequential) throws ParseException, StandardException {
        char                            lockGranularity = '\0';
        TableElementNode        tableElement;
        DataTypeDescriptor      typeDescriptor;
        Token                           tok = null;
        String                          columnName;
        long[]                          autoIncrementInfo = new long[4];
    switch (jj_nt.kind) {
    case ADD:
      jj_consume_token(ADD);
View Full Code Here

/*
* <A NAME="routineAlias">routineAlias</A>
*/
  final public RoutineDesignator routineDesignator() throws ParseException, StandardException {
    Token procOrFunction;
    RoutineDesignator routine = null;
    TableName name = null;
    List paramTypeList = null;
    switch (jj_nt.kind) {
    case FUNCTION:
View Full Code Here

/*
* <A NAME="identifier">identifier</A>
*/
  final public String internalIdentifier(int id_length_limit, boolean useANSICasing, boolean checkLength) throws ParseException, StandardException {
        String  str;
        Token   tok;
    switch (jj_nt.kind) {
    case IDENTIFIER:
      tok = jj_consume_token(IDENTIFIER);
        if( useANSICasing)
            str = StringUtil.SQLToUpperCase(tok.image);
View Full Code Here

/*
* <A NAME="delimitedIdentifier">delimitedIdentifier</A>
*/
  final public String delimitedIdentifier() throws ParseException {
        String  str;
        Token   tok;
    tok = jj_consume_token(DELIMITED_IDENTIFIER);
                str = tok.image.substring(1, tok.image.length() -1);
                str = normalizeDelimitedID( str );
                // Remember whether last token was a delimited identifier
                nextToLastTokenDelimitedIdentifier = lastTokenDelimitedIdentifier;
View Full Code Here

/*
* <A NAME="reservedKeyword">reservedKeyword</A>
*/
  final public String reservedKeyword() throws ParseException {
        Token   tok;
    switch (jj_nt.kind) {
    case ADD:
      /* SQL92 reserved Keywords */
              tok = jj_consume_token(ADD);
      break;
View Full Code Here

/*
* <A NAME="nonReservedKeyword">nonReservedKeyword</A>
*/
  final public String nonReservedKeyword() throws ParseException {
        Token   tok;
    switch (jj_nt.kind) {
    case ABS:
      tok = jj_consume_token(ABS);
      break;
    case ABSVAL:
View Full Code Here

/*
* <A NAME="caseSensitiveIdentifier">caseSensitiveIdentifier</A>
*/
  final public String caseSensitiveIdentifier() throws ParseException {
        String  str;
        Token   tok;
    switch (jj_nt.kind) {
    case IDENTIFIER:
      tok = jj_consume_token(IDENTIFIER);
                // Remember whether last token was a delimited identifier
                nextToLastTokenDelimitedIdentifier = lastTokenDelimitedIdentifier;
View Full Code Here

TOP

Related Classes of org.apache.derby.impl.sql.compile.Token

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.