Package org.jaxen.function
Class NotFunction
java.lang.Object
org.jaxen.function.NotFunction
- All Implemented Interfaces:
Function
4.3 boolean not(boolean)
The not function returns true if its argument is false, and false otherwise.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsBoolean.TRUE
if the boolean value ofargs.get(0)
is false, andBoolean.FALSE
otherwise.static Boolean
ReturnsBoolean.TRUE
if the boolean value ofobj
is false, andBoolean.FALSE
otherwise.
-
Constructor Details
-
NotFunction
public NotFunction()Create a newNotFunction
object.
-
-
Method Details
-
call
ReturnsBoolean.TRUE
if the boolean value ofargs.get(0)
is false, andBoolean.FALSE
otherwise. The boolean value is calculated as if by the XPathboolean
function.- Specified by:
call
in interfaceFunction
- Parameters:
context
- the context at the point in the expression where the function is calledargs
- a single element list- Returns:
Boolean.TRUE
if the boolean value ofobj
is false, andBoolean.FALSE
otherwise- Throws:
FunctionCallException
- ifargs
does not have exactly one argument
-