org.ucl.xpath.function
Class FsPlus

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

public class FsPlus
extends Function

Class for Plus function.


Field Summary
 
Fields inherited from class org.ucl.xpath.function.Function
_arity, _fl, _name
 
Constructor Summary
FsPlus()
          Constructor for FsPlus.
 
Method Summary
static ResultSequence do_math_op(java.util.Collection args, java.lang.Class type, java.lang.String mname)
          Mathematical operation on the arguments.
 ResultSequence evaluate(java.util.Collection args)
          Evaluate arguments.
static ResultSequence fs_plus_unary(java.util.Collection args)
          Unary operation on the arguments.
static ResultSequence fs_plus(java.util.Collection args)
          General operation on the arguments.
 
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

FsPlus

public FsPlus()
Constructor for FsPlus.

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.

fs_plus

public static ResultSequence fs_plus(java.util.Collection args)
                              throws DynamicError
General operation on the arguments.

Parameters:
args - input arguments.
Returns:
Result of the operation.
Throws:
DynamicError - Dynamic error.

fs_plus_unary

public static ResultSequence fs_plus_unary(java.util.Collection args)
                                    throws DynamicError
Unary operation on the arguments.

Parameters:
args - input arguments.
Returns:
Result of the operation.
Throws:
DynamicError - Dynamic error.

do_math_op

public static ResultSequence do_math_op(java.util.Collection args,
                                        java.lang.Class type,
                                        java.lang.String mname)
                                 throws DynamicError
Mathematical operation on the arguments.

Parameters:
args - input arguments.
type - type of arguments.
mname - Method name for template simulation.
Returns:
Result of operation.
Throws:
DynamicError - Dynamic error.