|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JavaExpression.Type>
com.google.clearsilver.jsilver.compiler.JavaExpression.Type
public static enum JavaExpression.Type
Simple type enumeration to allow us to compare the return types of expressions easily and cast expressions nicely.
Enum Constant Summary | |
---|---|
BOOLEAN
|
|
DATA
|
|
DATA_CONTEXT
|
|
INT
|
|
MACRO
|
|
STRING
|
|
VALUE
|
|
VAR_NAME
|
|
VOID
|
Field Summary | |
---|---|
String |
symbol
The Java literal representing the type (e.g. |
static JavaExpression.Type |
UNKNOWN
Useful constant for unknown types |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
public static final JavaExpression.Type UNKNOWN
public final String symbol
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullprotected abstract JavaExpression cast(JavaExpression expression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |