org.apache.commons.el
Class ArraySuffix

java.lang.Object
  extended by org.apache.commons.el.ValueSuffix
      extended by org.apache.commons.el.ArraySuffix
Direct Known Subclasses:
PropertySuffix

public class ArraySuffix
extends ValueSuffix

Represents an operator that obtains a Map entry, an indexed value, a property value, or an indexed property value of an object. The following are the rules for evaluating this operator:

Version:
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: bayard $
Author:
Nathan Abramson - Art Technology Group, Shawn Bayern

Constructor Summary
ArraySuffix(Expression pIndex)
          Constructor
 
Method Summary
 ValueSuffix bindFunctions(javax.servlet.jsp.el.FunctionMapper functions)
           
 Object evaluate(Object pValue, javax.servlet.jsp.el.VariableResolver pResolver, javax.servlet.jsp.el.FunctionMapper functions)
          Evaluates the expression in the given context, operating on the given value.
 String getExpressionString()
          Returns the expression in the expression language syntax
 Expression getIndex()
           
 void setIndex(Expression pIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArraySuffix

public ArraySuffix(Expression pIndex)
Constructor

Method Detail

getIndex

public Expression getIndex()

setIndex

public void setIndex(Expression pIndex)

getExpressionString

public String getExpressionString()
Returns the expression in the expression language syntax

Specified by:
getExpressionString in class ValueSuffix

evaluate

public Object evaluate(Object pValue,
                       javax.servlet.jsp.el.VariableResolver pResolver,
                       javax.servlet.jsp.el.FunctionMapper functions)
                throws javax.servlet.jsp.el.ELException
Evaluates the expression in the given context, operating on the given value.

Specified by:
evaluate in class ValueSuffix
Throws:
javax.servlet.jsp.el.ELException

bindFunctions

public ValueSuffix bindFunctions(javax.servlet.jsp.el.FunctionMapper functions)
                          throws javax.servlet.jsp.el.ELException
Specified by:
bindFunctions in class ValueSuffix
Throws:
javax.servlet.jsp.el.ELException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.