org.jaxen.function
Class TrueFunction

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

public class TrueFunction
extends 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.
 
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 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


Copyright © 2001-2008 Codehaus. All Rights Reserved.