Encapsulates the details of a previously parsed expression string.
Provides a common abstraction for expression evaluation.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the original expression stringReturn the original string used to create this expression (unmodified). |
| public Object | |
| public <T> T | |
| public Object | |
| public <T> T | |
| public Object | Returns: the evaluation resultthe context in which to evaluate the expression context)Evaluate this expression in the provided context and return the result of evaluation. |
| public Object | Returns: the evaluation resultthe context in which to evaluate the expression context, Object the root object against which to evaluate the expression rootObject)Evaluate this expression in the provided context and return the result of evaluation, but use the supplied root context as an override for any default root object specified in the context. |
| public <T> T | Returns: the evaluation resultthe context in which to evaluate the expression context, Class<T> the type the caller would like the result to be desiredResultType)Evaluate this expression in the provided context which can resolve references to properties, methods, types, etc. The type of the evaluation result is expected to be of a particular type, and an exception will be thrown if it is not and cannot be converted to that type. |
| public <T> T | Returns: the evaluation resultthe context in which to evaluate the expression context, Object the root object against which to evaluate the expression rootObject, Class<T> the type the caller would like the result to be desiredResultType)Evaluate this expression in the provided context which can resolve references to properties, methods, types, etc. The type of the evaluation result is expected to be of a particular type, and an exception will be thrown if it is not and cannot be converted to that type.j The supplied root object overrides any specified in the supplied context. |
| public Class | Returns: the most general type of value that can be set in this contextReturn the most general type that can be passed to the
|
| public Class | Returns: the most general type of value that can be set in this contextthe root object against which to evaluate the expression rootObject)Return the most general type that can be passed to the
|
| public Class | Returns: the most general type of value that can be set in this contextthe context in which to evaluate the expression context)Return the most general type that can be passed to the
|
| public Class | Returns: the most general type of value that can be set in this contextthe context in which to evaluate the expression context, Object the root object against which to evaluate the expression rootObject)Return the most general type that can be passed to the
|
| public TypeDescriptor | Returns: a type descriptor for values that can be set in this contextReturn a descriptor for the most general type that can be passed to one of
the |
| public TypeDescriptor | Returns: a type descriptor for values that can be set in this contextthe root object against which to evaluate the expression rootObject)Return a descriptor for the most general type that can be passed to the
|
| public TypeDescriptor | Returns: a type descriptor for values that can be set in this contextthe context in which to evaluate the expression context)Return a descriptor for the most general type that can be passed to the
|
| public TypeDescriptor | Returns: a type descriptor for values that can be set in this contextthe context in which to evaluate the expression context, Object the root object against which to evaluate the expression rootObject)Return a descriptor for the most general type that can be passed to the
|
| public boolean | Returns: true if the expression is writable; false otherwisethe root object against which to evaluate the expression rootObject)Determine if this expression can be written to, i.e. setValue() can be called. |
| public boolean | Returns: true if the expression is writable; false otherwisethe context in which the expression should be checked context)Determine if this expression can be written to, i.e. setValue() can be called. |
| public boolean | Returns: true if the expression is writable; false otherwisethe context in which the expression should be checked context, Object the root object against which to evaluate the expression rootObject)Determine if this expression can be written to, i.e. setValue() can be called. |
| public void | |
| public void | setValue(EvaluationContext
the context in which to set the value of the expression context, Object the new value value)Set this expression in the provided context to the value provided. |
| public void | setValue(EvaluationContext
the context in which to set the value of the expression context, Object the root object against which to evaluate the expression rootObject, Object the new value value)Set this expression in the provided context to the value provided. |
| getExpressionString | back to summary |
|---|---|
| public String getExpressionString() Return the original string used to create this expression (unmodified).
| |
| getValue | back to summary |
|---|---|
| public Object getValue() throws EvaluationException Evaluate this expression in the default standard context.
| |
| getValue | back to summary |
|---|---|
| public <T> T getValue(Class<T> desiredResultType) throws EvaluationException Evaluate this expression in the default context. If the result of the evaluation does not match (and cannot be converted to) the expected result type then an exception will be thrown.
| |
| getValue | back to summary |
|---|---|
| public Object getValue(Object rootObject) throws EvaluationException Evaluate this expression against the specified root object.
| |
| getValue | back to summary |
|---|---|
| public <T> T getValue(Object rootObject, Class<T> desiredResultType) throws EvaluationException Evaluate this expression in the default context against the specified root object. If the result of the evaluation does not match (and cannot be converted to) the expected result type then an exception will be thrown.
| |
| getValue | back to summary |
|---|---|
| public Object getValue(EvaluationContext context) throws EvaluationException Evaluate this expression in the provided context and return the result of evaluation.
| |
| getValue | back to summary |
|---|---|
| public Object getValue(EvaluationContext context, Object rootObject) throws EvaluationException Evaluate this expression in the provided context and return the result of evaluation, but use the supplied root context as an override for any default root object specified in the context.
| |
| getValue | back to summary |
|---|---|
| public <T> T getValue(EvaluationContext context, Class<T> desiredResultType) throws EvaluationException Evaluate this expression in the provided context which can resolve references to properties, methods, types, etc. The type of the evaluation result is expected to be of a particular type, and an exception will be thrown if it is not and cannot be converted to that type.
| |
| getValue | back to summary |
|---|---|
| public <T> T getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) throws EvaluationException Evaluate this expression in the provided context which can resolve references to properties, methods, types, etc. The type of the evaluation result is expected to be of a particular type, and an exception will be thrown if it is not and cannot be converted to that type.j The supplied root object overrides any specified in the supplied context.
| |
| getValueType | back to summary |
|---|---|
| public Class Return the most general type that can be passed to the
| |
| getValueType | back to summary |
|---|---|
| public Class Return the most general type that can be passed to the
| |
| getValueType | back to summary |
|---|---|
| public Class Return the most general type that can be passed to the
| |
| getValueType | back to summary |
|---|---|
| public Class Return the most general type that can be passed to the
The supplied root object overrides any specified in the supplied context.
| |
| getValueTypeDescriptor | back to summary |
|---|---|
| public TypeDescriptor getValueTypeDescriptor() throws EvaluationException Return a descriptor for the most general type that can be passed to one of
the
| |
| getValueTypeDescriptor | back to summary |
|---|---|
| public TypeDescriptor getValueTypeDescriptor(Object rootObject) throws EvaluationException Return a descriptor for the most general type that can be passed to the
| |
| getValueTypeDescriptor | back to summary |
|---|---|
| public TypeDescriptor getValueTypeDescriptor(EvaluationContext context) throws EvaluationException Return a descriptor for the most general type that can be passed to the
| |
| getValueTypeDescriptor | back to summary |
|---|---|
| public TypeDescriptor getValueTypeDescriptor(EvaluationContext context, Object rootObject) throws EvaluationException Return a descriptor for the most general type that can be passed to the
The supplied root object overrides any specified in the supplied context.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable(Object rootObject) throws EvaluationException Determine if this expression can be written to, i.e. setValue() can be called.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable(EvaluationContext context) throws EvaluationException Determine if this expression can be written to, i.e. setValue() can be called.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable(EvaluationContext context, Object rootObject) throws EvaluationException Determine if this expression can be written to, i.e. setValue() can be called. The supplied root object overrides any specified in the supplied context.
| |
| setValue | back to summary |
|---|---|
| public void setValue(Object rootObject, Object value) throws EvaluationException Set this expression in the provided context to the value provided.
| |
| setValue | back to summary |
|---|---|
| public void setValue(EvaluationContext context, Object value) throws EvaluationException Set this expression in the provided context to the value provided.
| |
| setValue | back to summary |
|---|---|
| public void setValue(EvaluationContext context, Object rootObject, Object value) throws EvaluationException Set this expression in the provided context to the value provided. The supplied root object overrides any specified in the supplied context.
| |