public class ExpressionInitializer extends Initializer
Expression
.Modifier and Type | Field and Description |
---|---|
private Expression |
expr
The expression used to generate an initial value.
|
Constructor and Description |
---|
ExpressionInitializer(Expression expr)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getReturnType()
Report the type of object which will be returned when
resolve()
is called. |
java.lang.Object |
resolve()
Evaluate the initializer and return back the result.
|
private Expression expr
public ExpressionInitializer(Expression expr)
expr
- The expression to be used to generate an initial value.public java.lang.Object resolve()
resolve
in class Initializer
public java.lang.Class<?> getReturnType()
resolve()
is called.getReturnType
in class Initializer