Package org.openrefine.grel
Enum Scanner.TokenType
- java.lang.Object
-
- java.lang.Enum<Scanner.TokenType>
-
- org.openrefine.grel.Scanner.TokenType
-
- All Implemented Interfaces:
Serializable
,Comparable<Scanner.TokenType>
- Enclosing class:
- Scanner
public static enum Scanner.TokenType extends Enum<Scanner.TokenType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Scanner.TokenType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Scanner.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Error
public static final Scanner.TokenType Error
-
Delimiter
public static final Scanner.TokenType Delimiter
-
Operator
public static final Scanner.TokenType Operator
-
Identifier
public static final Scanner.TokenType Identifier
-
Number
public static final Scanner.TokenType Number
-
String
public static final Scanner.TokenType String
-
Regex
public static final Scanner.TokenType Regex
-
-
Method Detail
-
values
public static Scanner.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 (Scanner.TokenType c : Scanner.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 Scanner.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
-
-