Package es.bsc.dataclay.util.filtering
Enum ASTParser.ASTKeyword
- java.lang.Object
-
- java.lang.Enum<ASTParser.ASTKeyword>
-
- es.bsc.dataclay.util.filtering.ASTParser.ASTKeyword
-
- All Implemented Interfaces:
Serializable
,Comparable<ASTParser.ASTKeyword>
- Enclosing class:
- ASTParser
public static enum ASTParser.ASTKeyword extends Enum<ASTParser.ASTKeyword>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ASTParser.ASTKeyword
fromString(String token)
static boolean
isASTKeyword(String token)
static ASTParser.ASTKeyword
valueOf(String name)
Returns the enum constant of this type with the specified name.static ASTParser.ASTKeyword[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTRIBUTE
public static final ASTParser.ASTKeyword ATTRIBUTE
-
EQOP
public static final ASTParser.ASTKeyword EQOP
-
RELOP
public static final ASTParser.ASTKeyword RELOP
-
INT
public static final ASTParser.ASTKeyword INT
-
STRING
public static final ASTParser.ASTKeyword STRING
-
BOOL
public static final ASTParser.ASTKeyword BOOL
-
NULL
public static final ASTParser.ASTKeyword NULL
-
-
Field Detail
-
_token
public String _token
-
-
Method Detail
-
values
public static ASTParser.ASTKeyword[] 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 (ASTParser.ASTKeyword c : ASTParser.ASTKeyword.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ASTParser.ASTKeyword 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
-
isASTKeyword
public static boolean isASTKeyword(String token)
-
fromString
public static ASTParser.ASTKeyword fromString(String token)
-
-