class ValueExpressionImpl<T> extends java.lang.Object implements ValueExpression<T>
ValueExpression.Resolver<T>| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
expression |
private T |
resolvedValue |
BOOLEAN_RESOLVER, NULL_BOOLEAN_EXPRESSION, NULL_STRING_EXPRESSION, STRING_RESOLVER| Constructor and Description |
|---|
ValueExpressionImpl(java.lang.String expression,
T resolvedValue) |
| Modifier and Type | Method and Description |
|---|---|
T |
getResolvedValue()
The resolved value.
|
java.lang.String |
getValue()
Gets the value of the value which may or may not be an
expression. |
boolean |
isExpression()
Checks whether this is an expression or not.
|
java.lang.String |
toString() |
private final java.lang.String expression
private final T resolvedValue
ValueExpressionImpl(java.lang.String expression,
T resolvedValue)
public T getResolvedValue()
ValueExpressionexpression the resolved value will be the value from a system property or
the default value from the expression if the system property is not set.
If this is not an expression the value returned will be the non-expression value
or null if allowed for the property.getResolvedValue in interface ValueExpression<T>public boolean isExpression()
ValueExpressionisExpression in interface ValueExpression<T>true if this is an expression, otherwise falsepublic java.lang.String getValue()
ValueExpressionexpression.getValue in interface ValueExpression<T>public java.lang.String toString()
toString in interface ValueExpression<T>toString in class java.lang.Object