Package manifold.templates.tokenizer
Enum Token.TokenType
- java.lang.Object
-
- java.lang.Enum<Token.TokenType>
-
- manifold.templates.tokenizer.Token.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<Token.TokenType>
- Enclosing class:
- Token
public static enum Token.TokenType extends Enum<Token.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANGLE_ENDCOMMENTCOMMENT_BEGINCOMMENT_ENDCONTENTDIR_ANGLE_BEGINDIRECTIVEEXPREXPR_ANGLE_BEGINEXPR_BRACE_BEGINEXPR_BRACE_ENDSTMTSTMT_ANGLE_BEGIN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetToken()static Token.TokenTypevalueOf(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.
-
-
-
Enum Constant Detail
-
CONTENT
public static final Token.TokenType CONTENT
-
COMMENT
public static final Token.TokenType COMMENT
-
EXPR
public static final Token.TokenType EXPR
-
STMT
public static final Token.TokenType STMT
-
DIRECTIVE
public static final Token.TokenType DIRECTIVE
-
EXPR_BRACE_BEGIN
public static final Token.TokenType EXPR_BRACE_BEGIN
-
EXPR_BRACE_END
public static final Token.TokenType EXPR_BRACE_END
-
EXPR_ANGLE_BEGIN
public static final Token.TokenType EXPR_ANGLE_BEGIN
-
STMT_ANGLE_BEGIN
public static final Token.TokenType STMT_ANGLE_BEGIN
-
DIR_ANGLE_BEGIN
public static final Token.TokenType DIR_ANGLE_BEGIN
-
ANGLE_END
public static final Token.TokenType ANGLE_END
-
COMMENT_BEGIN
public static final Token.TokenType COMMENT_BEGIN
-
COMMENT_END
public static final Token.TokenType COMMENT_END
-
-
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 nameNullPointerException- if the argument is null
-
getToken
public String getToken()
-
-