net.sf.jga.fn.logical
Class LogicalNot

java.lang.Object
  extended by net.sf.jga.fn.Functor<R>
      extended by net.sf.jga.fn.UnaryFunctor<java.lang.Boolean,java.lang.Boolean>
          extended by net.sf.jga.fn.logical.LogicalNot
All Implemented Interfaces:
java.io.Serializable, Visitable

public class LogicalNot
extends UnaryFunctor<java.lang.Boolean,java.lang.Boolean>

Unary Predicate that returns true when Boolean argument x is false.

Copyright © 2002-2005 David A. Hall

Author:
David A. Hall
See Also:
Serialized Form

Nested Class Summary
static interface LogicalNot.Visitor
          Interface for classes that may interpret a LogicalNot predicate.
 
Constructor Summary
LogicalNot()
           
 
Method Summary
 void accept(Visitor v)
          Calls the Visitor's visit(LogicalNot) method, if it implements the nested Visitor interface.
 java.lang.Boolean fn(java.lang.Boolean x)
          Given Boolean argument x, returns true when x is false, false when x is true
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jga.fn.UnaryFunctor
bind, bind0th, bindNth, compose, compose, compose, composeNth, composeNth, eval, generate, generateNth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogicalNot

public LogicalNot()
Method Detail

fn

public java.lang.Boolean fn(java.lang.Boolean x)
Given Boolean argument x, returns true when x is false, false when x is true

Specified by:
fn in class UnaryFunctor<java.lang.Boolean,java.lang.Boolean>
Returns:
!x

accept

public void accept(Visitor v)
Calls the Visitor's visit(LogicalNot) method, if it implements the nested Visitor interface.

Specified by:
accept in interface Visitable
Overrides:
accept in class Functor<java.lang.Boolean>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2006 David A. Hall. All Rights Reserved.