public class WeldValueExpression extends ForwardingValueExpression
Constructor and Description |
---|
WeldValueExpression(ValueExpression delegate) |
Modifier and Type | Method and Description |
---|---|
protected ValueExpression |
delegate() |
Class |
getType(ELContext context)
Evaluates the expression relative to the provided context, and
returns the most general type that is acceptable for an object to be
passed as the
value parameter in a future call
to the ValueExpression.setValue(javax.el.ELContext, java.lang.Object) method. |
Object |
getValue(ELContext context)
Evaluates the expression relative to the provided context, and
returns the resulting value.
|
boolean |
isReadOnly(ELContext context)
Evaluates the expression relative to the provided context, and
returns
true if a call to ValueExpression.setValue(javax.el.ELContext, java.lang.Object) will
always fail. |
void |
setValue(ELContext context,
Object value)
Evaluates the expression relative to the provided context, and
sets the result to the provided value.
|
equals, getExpectedType, getExpressionString, getValueReference, hashCode, isLiteralText, toString
public WeldValueExpression(ValueExpression delegate)
protected ValueExpression delegate()
delegate
in class ForwardingValueExpression
public Object getValue(ELContext context)
ValueExpression
The resulting value is automatically coerced to the type
returned by getExpectedType()
, which was
provided to the ExpressionFactory
when this
expression was created.
getValue
in class ForwardingValueExpression
context
- The context of this evaluation.public void setValue(ELContext context, Object value)
ValueExpression
setValue
in class ForwardingValueExpression
context
- The context of this evaluation.value
- The new value to be set.public boolean isReadOnly(ELContext context)
ValueExpression
true
if a call to ValueExpression.setValue(javax.el.ELContext, java.lang.Object)
will
always fail.isReadOnly
in class ForwardingValueExpression
context
- The context of this evaluation.true
if the expression is read-only or
false
if not.public Class getType(ELContext context)
ValueExpression
value
parameter in a future call
to the ValueExpression.setValue(javax.el.ELContext, java.lang.Object)
method.
This is not always the same as getValue().getClass()
.
For example, in the case of an expression that references an
array element, the getType
method will return the
element type of the array, which might be a superclass of the type
of the actual element that is currently in the specified
array element.
getType
in class ForwardingValueExpression
context
- The context of this evaluation.Copyright © 2014 Seam Framework. All Rights Reserved.