net.sf.jga.fn.logical

Class LogicalNot

public class LogicalNot extends AbstractUnaryPredicate<Boolean> implements Serializable

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

Copyright © 2002 David A. Hall

Author: David A. Hall

Nested Class Summary
interfaceLogicalNot.Visitor
Interface for classes that may interpret a LogicalNot predicate.
Method Summary
voidaccept(Visitor v)
Calls the Visitor's visit(LogicalNot) method, if it implements the nested Visitor interface.
booleanp(Boolean x)
Given Boolean argument x, returns true when x is false, false when x is true
StringtoString()

Method Detail

accept

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

p

public boolean p(Boolean x)
Given Boolean argument x, returns true when x is false, false when x is true

Returns: !x

toString

public String toString()