Package org.jaxen.function
Class NotFunction
- java.lang.Object
-
- org.jaxen.function.NotFunction
-
- All Implemented Interfaces:
Function
public class NotFunction extends java.lang.Object implements Function
4.3
boolean not(boolean)
The not function returns true if its argument is false, and false otherwise.
- See Also:
- Section 4.3 of the XPath Specification
-
-
Constructor Summary
Constructors Constructor Description NotFunction()
Create a newNotFunction
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
call(Context context, java.util.List args)
ReturnsBoolean.TRUE
if the boolean value ofargs.get(0)
is false, andBoolean.FALSE
otherwise.static java.lang.Boolean
evaluate(java.lang.Object obj, Navigator nav)
ReturnsBoolean.TRUE
if the boolean value ofobj
is false, andBoolean.FALSE
otherwise.
-
-
-
Method Detail
-
call
public java.lang.Object call(Context context, java.util.List args) throws FunctionCallException
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
-
evaluate
public static java.lang.Boolean evaluate(java.lang.Object obj, Navigator nav)
ReturnsBoolean.TRUE
if the boolean value ofobj
is false, andBoolean.FALSE
otherwise. The boolean value is calculated as if by the XPathboolean
function.- Parameters:
obj
- the object whose boolean value is invertednav
- theNavigator
used to calculate the boolean value ofobj
- Returns:
Boolean.TRUE
if the boolean value ofobj
is false, andBoolean.FALSE
otherwise
-
-