public enum ParamType extends Enum<ParamType>
| Enum Constant and Description |
|---|
BOOLEAN
Matches
true or false. |
CONTEXT
Resolve the parameter type as
Context#context(). |
INTEGER
Matches a integer value.
|
REFERENCE
Matches a reference value.
|
STRING
Matches ".*" expressions.
|
SUB_EXPRESSION
Sub-expression are inner-helper invocations.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
parse(Context context,
Object param)
Parse the given parameter to a runtime representation.
|
static ParamType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParamType CONTEXT
Context#context().public static final ParamType STRING
public static final ParamType BOOLEAN
true or false.public static final ParamType INTEGER
public static final ParamType REFERENCE
public static final ParamType SUB_EXPRESSION
public static ParamType[] values()
for (ParamType c : ParamType.values()) System.out.println(c);
public static ParamType 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 nullpublic static Object parse(Context context, Object param) throws IOException
context - The current context.param - The candidate parameter.IOException - If param can't be applied.Copyright © 2015. All rights reserved.