org.jaxen.function

Class TrueFunction

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

Object
call(Context context, List args)
Returns Boolean.TRUE
static Boolean
evaluate()
Returns true.

Constructor Details

TrueFunction

public TrueFunction()
Create a new TrueFunction object.

Method Details

call

public Object call(Context context,
                   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 Boolean evaluate()
Returns true.
Returns:
Boolean.TRUE