org.jproggy.snippetory.engine
Enum Token.TokenType

java.lang.Object
  extended by java.lang.Enum<Token.TokenType>
      extended by org.jproggy.snippetory.engine.Token.TokenType
All Implemented Interfaces:
Serializable, Comparable<Token.TokenType>
Enclosing class:
Token

public static enum Token.TokenType
extends Enum<Token.TokenType>

The token type classifies he meaning of a template element.


Enum Constant Summary
BlockEnd
           
BlockStart
           
Comment
           
Field
           
Syntax
           
TemplateData
           
 
Method Summary
static Token.TokenType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Token.TokenType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BlockStart

public static final Token.TokenType BlockStart

BlockEnd

public static final Token.TokenType BlockEnd

Field

public static final Token.TokenType Field

Syntax

public static final Token.TokenType Syntax

TemplateData

public static final Token.TokenType TemplateData

Comment

public static final Token.TokenType Comment
Method Detail

values

public static Token.TokenType[] 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 (Token.TokenType c : Token.TokenType.values())
    System.out.println(c);

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

valueOf

public static Token.TokenType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null