ch.sahits.codegen.java.input
Enum EParserState

java.lang.Object
  extended by java.lang.Enum<EParserState>
      extended by ch.sahits.codegen.java.input.EParserState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EParserState>

public enum EParserState
extends java.lang.Enum<EParserState>

Since:
0.9.0
Author:
Andi Hotz

Enum Constant Summary
COMMA_FOUND
          The ',' token was found
CONSTRAINT_FOUND
          The 'CONTRAINT' token was found
CREATE_FOUND
          The 'CREATE' token was found
FOREIGN_KEY_FOUND
          The 'FOREIGN' token was found
FULLTEXT_OR_SPATIAL_FOUND
          The 'FULLTEXT' or 'SPATIAL' token was found
IGNORE_TOKEN
          Token that is ignored
INDEX_FOUND
          The 'INDEX' token was found
INDEX_OR_KEY_FOUND
          The 'INDEX' or 'KEY' token was found
INTERNAL_FIELD_DELIMITER
          FIELD delimiter in a field definition
LEFT_PARENTHESIS_FOUND
          The '(' token was found
ON_FOUND
          The 'ON' token was found
PRIMARY_KEY_FOUND
          The 'PRIMARY' token was found
REFERENCES_FOUND
          The 'REFERENCES' token was found
RIGHT_PARENTESIS_FOUND
          The ')' token was found
SEMICOLON_FOUND
          The ';' token was found
STARTED
          The Parsing has started but no token was yet found
TABLE_FOUND
          The 'TABLE' token was found
TRIGGER_FOUND
          TRIGGER keyword encountered
UNIQUE_FOUND
          The 'UNIQUE' token was found
 
Method Summary
static EParserState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EParserState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STARTED

public static final EParserState STARTED
The Parsing has started but no token was yet found


CREATE_FOUND

public static final EParserState CREATE_FOUND
The 'CREATE' token was found


TABLE_FOUND

public static final EParserState TABLE_FOUND
The 'TABLE' token was found


INDEX_FOUND

public static final EParserState INDEX_FOUND
The 'INDEX' token was found


LEFT_PARENTHESIS_FOUND

public static final EParserState LEFT_PARENTHESIS_FOUND
The '(' token was found


RIGHT_PARENTESIS_FOUND

public static final EParserState RIGHT_PARENTESIS_FOUND
The ')' token was found


COMMA_FOUND

public static final EParserState COMMA_FOUND
The ',' token was found


SEMICOLON_FOUND

public static final EParserState SEMICOLON_FOUND
The ';' token was found


ON_FOUND

public static final EParserState ON_FOUND
The 'ON' token was found


CONSTRAINT_FOUND

public static final EParserState CONSTRAINT_FOUND
The 'CONTRAINT' token was found


PRIMARY_KEY_FOUND

public static final EParserState PRIMARY_KEY_FOUND
The 'PRIMARY' token was found


INDEX_OR_KEY_FOUND

public static final EParserState INDEX_OR_KEY_FOUND
The 'INDEX' or 'KEY' token was found


UNIQUE_FOUND

public static final EParserState UNIQUE_FOUND
The 'UNIQUE' token was found


FULLTEXT_OR_SPATIAL_FOUND

public static final EParserState FULLTEXT_OR_SPATIAL_FOUND
The 'FULLTEXT' or 'SPATIAL' token was found


FOREIGN_KEY_FOUND

public static final EParserState FOREIGN_KEY_FOUND
The 'FOREIGN' token was found


REFERENCES_FOUND

public static final EParserState REFERENCES_FOUND
The 'REFERENCES' token was found


IGNORE_TOKEN

public static final EParserState IGNORE_TOKEN
Token that is ignored


INTERNAL_FIELD_DELIMITER

public static final EParserState INTERNAL_FIELD_DELIMITER
FIELD delimiter in a field definition


TRIGGER_FOUND

public static final EParserState TRIGGER_FOUND
TRIGGER keyword encountered

Method Detail

values

public static EParserState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EParserState c : EParserState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EParserState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null