Package org.apache.jasper.el
Class JspValueExpression
java.lang.Object
jakarta.el.Expression
jakarta.el.ValueExpression
org.apache.jasper.el.JspValueExpression
- All Implemented Interfaces:
- Externalizable,- Serializable
Wrapper for providing context to ValueExpressions
- Author:
- Jacob Hookom
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanClass<?>Class<?><T> TinthashCode()booleanbooleanisReadOnly(ELContext context) voidvoidvoidMethods inherited from class jakarta.el.ValueExpressiongetValueReference
- 
Constructor Details- 
JspValueExpressionpublic JspValueExpression()
- 
JspValueExpression
 
- 
- 
Method Details- 
getExpectedType- Specified by:
- getExpectedTypein class- ValueExpression
 
- 
getTypepublic Class<?> getType(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException - Specified by:
- getTypein class- ValueExpression
- Parameters:
- context- The EL context for this evaluation
- Returns:
- The type of the result of this value expression
- Throws:
- 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 readable
- ELException- Wraps any exception throw whilst resolving a property or variable
 
- 
isReadOnlypublic boolean isReadOnly(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException - Specified by:
- isReadOnlyin class- ValueExpression
- Parameters:
- context- The EL context for this evaluation
- Returns:
- trueif this expression is read only otherwise- false
- Throws:
- 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 readable
- ELException- Wraps any exception throw whilst resolving a property or variable
 
- 
setValuepublic void setValue(ELContext context, Object value) throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException - Specified by:
- setValuein class- ValueExpression
- Parameters:
- context- The EL context for this evaluation
- value- The value to set the property to which this value expression refers
- Throws:
- NullPointerException- If the supplied context is- null
- PropertyNotFoundException- If a property/variable resolution failed because no match was found
- PropertyNotWritableException- If a property/variable resolution failed because a match was found but was not writable
- ELException- Wraps any exception throw whilst resolving a property or variable
 
- 
getValuepublic <T> T getValue(ELContext context) throws NullPointerException, PropertyNotFoundException, ELException - Specified by:
- getValuein class- ValueExpression
- Type Parameters:
- T- The expected type for the result of evaluating this value expression
- Parameters:
- context- The EL context for this evaluation
- Returns:
- The result of evaluating this value expression
- Throws:
- 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 readable
- ELException- Wraps any exception throw whilst resolving a property or variable
 
- 
equals- Specified by:
- equalsin class- Expression
 
- 
hashCodepublic int hashCode()- Specified by:
- hashCodein class- Expression
 
- 
getExpressionString- Specified by:
- getExpressionStringin class- Expression
 
- 
isLiteralTextpublic boolean isLiteralText()- Specified by:
- isLiteralTextin class- Expression
 
- 
writeExternal- Specified by:
- writeExternalin interface- Externalizable
- Throws:
- IOException
 
- 
readExternal- Specified by:
- readExternalin interface- Externalizable
- Throws:
- IOException
- ClassNotFoundException
 
 
-