org.jaxen.function
Class TrueFunction

java.lang.Object
  extended byorg.jaxen.function.TrueFunction
All Implemented Interfaces:
Function

public class TrueFunction
extends java.lang.Object
implements Function

4.3 boolean true()

Returns true.

Author:
bob mcwhirter (bob @ werken.com)
See Also:
XPath Specification

Constructor Summary
TrueFunction()
          Create a new TrueFunction object.
 
Method Summary
 java.lang.Object call(Context context, java.util.List args)
          Returns Boolean.TRUE
static java.lang.Boolean evaluate()
          Returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrueFunction

public TrueFunction()
Create a new TrueFunction object.

Method Detail

call

public java.lang.Object call(Context context,
                             java.util.List args)
                      throws FunctionCallException
Returns Boolean.TRUE

Specified by:
call in interface Function
Parameters:
context - ignored
args - an empty list
Returns:
Boolean.TRUE
Throws:
FunctionCallException - if args is not empty

evaluate

public static java.lang.Boolean evaluate()
Returns true.

Returns:
Boolean.TRUE