Package javax.servlet.jsp.jstl.core
Class IndexedValueExpression
java.lang.Object
javax.el.Expression
javax.el.ValueExpression
javax.servlet.jsp.jstl.core.IndexedValueExpression
- All Implemented Interfaces:
Serializable
ValueExpression that refers to a specific member of an indexed variable.
This allows individual members of an indexed collection to be used as lvalues.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIndexedValueExpression
(ValueExpression valueExpression, int i) Constructor specifying indexed variable and index. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
boolean
isReadOnly
(ELContext elContext) void
Methods inherited from class javax.el.ValueExpression
getValueReference
-
Constructor Details
-
IndexedValueExpression
Constructor specifying indexed variable and index.- Parameters:
valueExpression
- that evaluates to the indexed variablei
- index specifying the member
-
-
Method Details
-
equals
- Specified by:
equals
in classExpression
-
getExpectedType
- Specified by:
getExpectedType
in classValueExpression
-
getExpressionString
- Specified by:
getExpressionString
in classExpression
-
getType
- Specified by:
getType
in classValueExpression
- Parameters:
elContext
- The EL context for this evaluation- Returns:
- The type of the result of this value expression
-
getValue
- Specified by:
getValue
in classValueExpression
- Parameters:
elContext
- The EL context for this evaluation- Returns:
- The result of evaluating this value expression
-
hashCode
public int hashCode()- Specified by:
hashCode
in classExpression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralText
in classExpression
-
isReadOnly
- Specified by:
isReadOnly
in classValueExpression
- Parameters:
elContext
- The EL context for this evaluation- Returns:
true
if this expression is read only otherwisefalse
-
setValue
- Specified by:
setValue
in classValueExpression
- Parameters:
elContext
- The EL context for this evaluationarg1
- The value to set the property to which this value expression refers
-