Package manifold.preprocessor
Enum TokenType
- java.lang.Object
-
- java.lang.Enum<TokenType>
-
- manifold.preprocessor.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<TokenType>
public enum TokenType extends Enum<TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BlockCommentCharLiteralDefineElifElseEndifErrorIfLineCommentSourceStringLiteralTextBlockUndefWarningWhitespace
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDirective()booleanisDirective()static TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Whitespace
public static final TokenType Whitespace
-
LineComment
public static final TokenType LineComment
-
BlockComment
public static final TokenType BlockComment
-
StringLiteral
public static final TokenType StringLiteral
-
CharLiteral
public static final TokenType CharLiteral
-
TextBlock
public static final TokenType TextBlock
-
If
public static final TokenType If
-
Elif
public static final TokenType Elif
-
Else
public static final TokenType Else
-
Endif
public static final TokenType Endif
-
Define
public static final TokenType Define
-
Undef
public static final TokenType Undef
-
Error
public static final TokenType Error
-
Warning
public static final TokenType Warning
-
Source
public static final TokenType Source
-
-
Method Detail
-
values
public static 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 (TokenType c : 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 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
-
isDirective
public boolean isDirective()
-
getDirective
public String getDirective()
-
-