FileDocCategorySizeDatePackage
BinaryOperator.javaAPI DocGlassfish v2 API3486Sat May 05 19:17:26 BST 2007org.apache.taglibs.standard.lang.jstl

BinaryOperator

public abstract class BinaryOperator extends Object

This is the superclass for all binary operators

author
Nathan Abramson - Art Technology Group
version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: tcfujii $

Fields Summary
Constructors Summary
public BinaryOperator()
Constructor

  
Methods Summary
public abstract java.lang.Objectapply(java.lang.Object pLeft, java.lang.Object pRight, java.lang.Object pContext, Logger pLogger)
Applies the operator to the given pair of values

public abstract java.lang.StringgetOperatorSymbol()
Returns the symbol representing the operator

public booleanshouldCoerceToBoolean()
Returns true if the operator expects its arguments to be coerced to Booleans. The And/Or operators set this to true.

    return false;
  
public booleanshouldEvaluate(java.lang.Object pLeft)
Returns true if evaluation is necessary given the specified Left value. The And/OrOperators make use of this

    return true;