FileDocCategorySizeDatePackage
NotOperator.javaAPI DocGlassfish v2 API3302Sat May 05 19:17:28 BST 2007org.apache.taglibs.standard.lang.jstl

NotOperator

public class NotOperator extends UnaryOperator

The implementation of the not operator

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

Fields Summary
public static final NotOperator
SINGLETON
Constructors Summary
public NotOperator()
Constructor


  //-------------------------------------
      
    
  
  
Methods Summary
public java.lang.Objectapply(java.lang.Object pValue, java.lang.Object pContext, Logger pLogger)
Applies the operator to the given value

    // Coerce the value to a boolean
    boolean val = Coercions.coerceToBoolean (pValue, pLogger).booleanValue ();

    return PrimitiveObjects.getBoolean (!val);
  
public java.lang.StringgetOperatorSymbol()
Returns the symbol representing the operator

    return "not";