public class Value
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<?> |
clazz
The class.
|
protected java.lang.String |
expression
The expression.
|
Constructor and Description |
---|
Value(java.lang.Class<?> clazz)
Create a new value.
|
Value(java.lang.String expression)
Create a new value.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
evaluate(Value value,
java.lang.String[] imports)
Evaluate a value.
|
static java.lang.Object |
evaluate(Value value,
java.lang.String[] imports)
Evaluate a value.
|
java.lang.Class<?> |
getClazz()
Get the clazz.
|
java.lang.String |
getExpression()
Get the expression.
|
protected java.lang.String expression
protected java.lang.Class<?> clazz
public Value(java.lang.String expression)
expression
- The creation expression.public Value(java.lang.Class<?> clazz)
clazz
- The clazz.public java.lang.String getExpression()
public java.lang.Class<?> getClazz()
public static java.lang.Object evaluate(Value value, java.lang.String[] imports) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object evaluate(Value value, java.lang.String[] imports) throws java.lang.Exception
java.lang.Exception