public abstract class ValueExpression extends Expression
Constructor and Description |
---|
ValueExpression() |
Modifier and Type | Method and Description |
---|---|
abstract Class<?> |
getExpectedType() |
abstract Class<?> |
getType(ELContext context) |
abstract Object |
getValue(ELContext context) |
ValueReference |
getValueReference(ELContext context) |
abstract boolean |
isReadOnly(ELContext context) |
abstract void |
setValue(ELContext context,
Object value) |
equals, getExpressionString, hashCode, isLiteralText
public abstract Object getValue(ELContext context)
context
- The EL context for this evaluationNullPointerException
- If the supplied context is null
PropertyNotFoundException
- If a property/variable resolution failed because no match
was found or a match was found but was not readableELException
- Wraps any exception throw whilst resolving a property or
variablepublic abstract void setValue(ELContext context, Object value)
context
- The EL context for this evaluationvalue
- The value to set the property to which this value
expression refersNullPointerException
- If the supplied context is null
PropertyNotFoundException
- If a property/variable resolution failed because no match
was foundPropertyNotWritableException
- If a property/variable resolution failed because a match was
found but was not writableELException
- Wraps any exception throw whilst resolving a property or
variablepublic abstract boolean isReadOnly(ELContext context)
context
- The EL context for this evaluationtrue
if this expression is read only otherwise
false
NullPointerException
- If the supplied context is null
PropertyNotFoundException
- If a property/variable resolution failed because no match
was found or a match was found but was not readableELException
- Wraps any exception throw whilst resolving a property or
variablepublic abstract Class<?> getType(ELContext context)
context
- The EL context for this evaluationNullPointerException
- If the supplied context is null
PropertyNotFoundException
- If a property/variable resolution failed because no match
was found or a match was found but was not readableELException
- Wraps any exception throw whilst resolving a property or
variablepublic abstract Class<?> getExpectedType()
public ValueReference getValueReference(ELContext context)
context
- The EL context for this evaluationnull
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.