public static enum JavaExpression.Type extends Enum<JavaExpression.Type>
Enum Constant and Description |
---|
BOOLEAN |
DATA |
DATA_CONTEXT |
INT |
MACRO |
STRING |
VALUE |
VAR_NAME |
VOID |
Modifier and Type | Field and Description |
---|---|
String |
symbol
The Java literal representing the type (e.g.
|
static JavaExpression.Type |
UNKNOWN
Useful constant for unknown types
|
Modifier and Type | Method and Description |
---|---|
protected abstract JavaExpression |
cast(JavaExpression expression)
Unconditionally casts the given expression to the type.
|
static JavaExpression.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaExpression.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaExpression.Type STRING
public static final JavaExpression.Type INT
public static final JavaExpression.Type BOOLEAN
public static final JavaExpression.Type VALUE
public static final JavaExpression.Type DATA
public static final JavaExpression.Type VAR_NAME
public static final JavaExpression.Type DATA_CONTEXT
public static final JavaExpression.Type MACRO
public static final JavaExpression.Type VOID
public static final JavaExpression.Type UNKNOWN
public final String symbol
public static JavaExpression.Type[] values()
for (JavaExpression.Type c : JavaExpression.Type.values()) System.out.println(c);
public static JavaExpression.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract JavaExpression cast(JavaExpression expression)
Copyright © 2010–2014 Google. All rights reserved.