SmartFrog 3.10.000

org.smartfrog.sfcore.languages.sf.functions
Class Not

java.lang.Object
  extended by org.smartfrog.sfcore.languages.sf.functions.BaseFunction
      extended by org.smartfrog.sfcore.languages.sf.functions.BaseUnaryOperator
          extended by org.smartfrog.sfcore.languages.sf.functions.Not
All Implemented Interfaces:
Function

public class Not
extends BaseUnaryOperator

Defines the unary operator not that negates its boolean parameter. The parameter attribute is "data" and an exception will be thrown if it doesn't exist or is not boolean


Field Summary
 
Fields inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseUnaryOperator
DATA_ATTRIBUTE
 
Fields inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseFunction
context, name
 
Constructor Summary
Not()
           
 
Method Summary
protected  java.lang.Object doOperator(java.lang.Object a)
          Negate the parameter
 
Methods inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseUnaryOperator
doFunction
 
Methods inherited from class org.smartfrog.sfcore.languages.sf.functions.BaseFunction
doit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Not

public Not()
Method Detail

doOperator

protected java.lang.Object doOperator(java.lang.Object a)
                               throws SmartFrogCompileResolutionException
Negate the parameter

Specified by:
doOperator in class BaseUnaryOperator
Parameters:
a - a boolean
Returns:
the negation
Throws:
SmartFrogCompileResolutionException - if the parameter is not boolean

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP