org.ucl.xpath.function
Class FnTrace

java.lang.Object
  extended byorg.ucl.xpath.function.Function
      extended byorg.ucl.xpath.function.FnTrace

public class FnTrace
extends Function

The input $value is returned, unchanged, as the result of the function. In addition, the inputs $value, converted to an xs:string, and $label may be directed to a trace data set. The location and format of the trace data set are implementation dependent. The ordering of output from invocations of the fn:trace() function is implementation dependent.


Field Summary
 
Fields inherited from class org.ucl.xpath.function.Function
_arity, _fl, _name
 
Constructor Summary
FnTrace()
          Constructor for FnTrace.
 
Method Summary
 ResultSequence evaluate(java.util.Collection args)
          Evaluate arguments.
static ResultSequence trace(java.util.Collection args)
          Trace operation.
 
Methods inherited from class org.ucl.xpath.function.Function
arity, convert_argument, convert_arguments, dynamic_context, name, set_function_library, signature, signature, signature, static_context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FnTrace

public FnTrace()
Constructor for FnTrace.

Method Detail

evaluate

public ResultSequence evaluate(java.util.Collection args)
                        throws DynamicError
Evaluate arguments.

Specified by:
evaluate in class Function
Parameters:
args - argument expressions.
Returns:
Result of evaluation.
Throws:
DynamicError - Dynamic error.

trace

public static ResultSequence trace(java.util.Collection args)
                            throws DynamicError
Trace operation.

Parameters:
args - Result from the expressions evaluation.
Returns:
Result of fn:trace operation.
Throws:
DynamicError - Dynamic error.