org.apache.commons.el
Class ComplexValue

java.lang.Object
  extended by org.apache.commons.el.Expression
      extended by org.apache.commons.el.ComplexValue

public class ComplexValue
extends Expression

Represents a dynamic value, which consists of a prefix and an optional set of ValueSuffix elements. A prefix is something like an identifier, and a suffix is something like a "property of" or "indexed element of" operator.

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

Constructor Summary
ComplexValue(Expression pPrefix, List pSuffixes)
          Constructor
 
Method Summary
 Expression bindFunctions(javax.servlet.jsp.el.FunctionMapper functions)
          Returns an expression with all FunctionInvocations replaced by BoundFunctionInvocations.
 Object evaluate(javax.servlet.jsp.el.VariableResolver pResolver, javax.servlet.jsp.el.FunctionMapper functions)
          Evaluates by evaluating the prefix, then applying the suffixes
 String getExpressionString()
          Returns the expression in the expression language syntax
 Expression getPrefix()
           
 List getSuffixes()
           
 void setPrefix(Expression pPrefix)
           
 void setSuffixes(List pSuffixes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexValue

public ComplexValue(Expression pPrefix,
                    List pSuffixes)
Constructor

Method Detail

getPrefix

public Expression getPrefix()

setPrefix

public void setPrefix(Expression pPrefix)

getSuffixes

public List getSuffixes()

setSuffixes

public void setSuffixes(List pSuffixes)

getExpressionString

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

Specified by:
getExpressionString in class Expression

evaluate

public Object evaluate(javax.servlet.jsp.el.VariableResolver pResolver,
                       javax.servlet.jsp.el.FunctionMapper functions)
                throws javax.servlet.jsp.el.ELException
Evaluates by evaluating the prefix, then applying the suffixes

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

bindFunctions

public Expression bindFunctions(javax.servlet.jsp.el.FunctionMapper functions)
                         throws javax.servlet.jsp.el.ELException
Description copied from class: Expression
Returns an expression with all FunctionInvocations replaced by BoundFunctionInvocations.

Specified by:
bindFunctions in class Expression
Parameters:
functions - the functions to use in this transformation
Returns:
an Expression identical to this expression except with all FunctionInvocations replaced by BoundFunctionInvocations.
Throws:
javax.servlet.jsp.el.ELException - if any of the functions in this Expression are not present in functions


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