pmp
Enum Token.Type

java.lang.Object
  extended by java.lang.Enum<Token.Type>
      extended by pmp.Token.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Token.Type>
Enclosing class:
Token

public static enum Token.Type
extends java.lang.Enum<Token.Type>


Enum Constant Summary
CLOSING_BRACKET
          End of paramlist
CODE
           
CODE_END
           
CODE_START
           
EMPTY
           
END
           
MACRO_NAME
          Token is possibly name of macro.
OPENING_BRACKET
          Start of paramlist
PARAM_SEPARATOR
           
PLAINTEXT
           
SINGLE_CHAR
           
START
           
STRING_END
           
STRING_SPECIAL_SYMBOL
           
STRING_START
           
STRING_TOKEN
           
 
Method Summary
static Token.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Token.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EMPTY

public static final Token.Type EMPTY

START

public static final Token.Type START

END

public static final Token.Type END

SINGLE_CHAR

public static final Token.Type SINGLE_CHAR

PLAINTEXT

public static final Token.Type PLAINTEXT

CODE_START

public static final Token.Type CODE_START

CODE_END

public static final Token.Type CODE_END

CODE

public static final Token.Type CODE

MACRO_NAME

public static final Token.Type MACRO_NAME
Token is possibly name of macro. Analyzer decides whether it is really name of existing macro.


OPENING_BRACKET

public static final Token.Type OPENING_BRACKET
Start of paramlist


CLOSING_BRACKET

public static final Token.Type CLOSING_BRACKET
End of paramlist


PARAM_SEPARATOR

public static final Token.Type PARAM_SEPARATOR

STRING_START

public static final Token.Type STRING_START

STRING_END

public static final Token.Type STRING_END

STRING_TOKEN

public static final Token.Type STRING_TOKEN

STRING_SPECIAL_SYMBOL

public static final Token.Type STRING_SPECIAL_SYMBOL
Method Detail

values

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

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

valueOf

public static Token.Type 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