org.apache.commons.el
Class BinaryOperatorExpression

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

public class BinaryOperatorExpression
extends Expression

An expression representing a binary operator on a value

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

Constructor Summary
BinaryOperatorExpression(Expression pExpression, List pOperators, List pExpressions)
          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 to the literal value
 Expression getExpression()
           
 List getExpressions()
           
 String getExpressionString()
          Returns the expression in the expression language syntax
 List getOperators()
           
 void setExpression(Expression pExpression)
           
 void setExpressions(List pExpressions)
           
 void setOperators(List pOperators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryOperatorExpression

public BinaryOperatorExpression(Expression pExpression,
                                List pOperators,
                                List pExpressions)
Constructor

Method Detail

getExpression

public Expression getExpression()

setExpression

public void setExpression(Expression pExpression)

getOperators

public List getOperators()

setOperators

public void setOperators(List pOperators)

getExpressions

public List getExpressions()

setExpressions

public void setExpressions(List pExpressions)

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 to the literal value

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-2010 Apache Software Foundation. All Rights Reserved.