|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ucl.xpath.function.Function
Support for functions.
Field Summary | |
protected int |
_arity
|
protected FunctionLibrary |
_fl
|
protected QName |
_name
|
Constructor Summary | |
Function(QName name,
int arity)
Constructor for Function. |
Method Summary | |
int |
arity()
Support for int interface. |
static ResultSequence |
convert_argument(ResultSequence arg,
SeqType expected)
Convert the input argument according to section 3.1.5 of specification. |
static java.util.Collection |
convert_arguments(java.util.Collection args,
java.util.Collection expected)
Convert arguments. |
protected DynamicContext |
dynamic_context()
|
abstract ResultSequence |
evaluate(java.util.Collection args)
Evaluate arguments. |
QName |
name()
Support for QName interface. |
void |
set_function_library(FunctionLibrary fl)
Set the function library variable. |
java.lang.String |
signature()
Default constructor for signature. |
static java.lang.String |
signature(Function f)
Obtain the function name and arity from signature. |
static java.lang.String |
signature(QName name,
int arity)
Apply the name and arity to signature. |
protected StaticContext |
static_context()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected QName _name
protected int _arity
protected FunctionLibrary _fl
Constructor Detail |
public Function(QName name, int arity)
name
- QName.arity
- the arity of a specific function.Method Detail |
public QName name()
public int arity()
public java.lang.String signature()
public static java.lang.String signature(Function f)
f
- current function.
public static java.lang.String signature(QName name, int arity)
name
- QName.arity
- arity of the function.
public abstract ResultSequence evaluate(java.util.Collection args) throws DynamicError
args
- argument expressions.
DynamicError
- Dynamic error.public static ResultSequence convert_argument(ResultSequence arg, SeqType expected) throws DynamicError
arg
- input argument.expected
- Expected Sequence type.
DynamicError
- Dynamic error.public static java.util.Collection convert_arguments(java.util.Collection args, java.util.Collection expected) throws DynamicError
args
- input arguments.expected
- expected arguments.
DynamicError
- Dynamic error.public void set_function_library(FunctionLibrary fl)
fl
- Function Library.protected StaticContext static_context()
protected DynamicContext dynamic_context()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |