public abstract class IXVStandardFuncion
extends java.lang.Object
Constructor and Description |
---|
IXVStandardFuncion() |
Modifier and Type | Method and Description |
---|---|
static void |
arg(net.sf.saxon.functions.StandardFunction.Entry e,
int a,
net.sf.saxon.type.ItemType type,
int cardinality,
net.sf.saxon.om.Sequence resultIfEmpty)
Add information to a function entry about the argument types of the function.
|
static net.sf.saxon.functions.StandardFunction.Entry |
getFunction(java.lang.String name,
int arity)
Get the table entry for the function with a given name.
|
static net.sf.saxon.functions.StandardFunction.Entry |
makeEntry(java.lang.String name,
java.lang.Class<? extends IXFunction> implementationClass,
int opcode,
int minArguments,
int maxArguments,
net.sf.saxon.type.ItemType itemType,
int cardinality)
Make a table entry describing the signature of a function, with a reference to the implementation class.
|
public static net.sf.saxon.functions.StandardFunction.Entry makeEntry(java.lang.String name, java.lang.Class<? extends IXFunction> implementationClass, int opcode, int minArguments, int maxArguments, net.sf.saxon.type.ItemType itemType, int cardinality)
name
- the function nameimplementationClass
- the class used to implement the functionopcode
- identifies the function when a single class implements several functionsminArguments
- the minimum number of arguments requiredmaxArguments
- the maximum number of arguments alloweditemType
- the item type of the result of the functioncardinality
- the cardinality of the result of the functionpublic static void arg(net.sf.saxon.functions.StandardFunction.Entry e, int a, net.sf.saxon.type.ItemType type, int cardinality, net.sf.saxon.om.Sequence resultIfEmpty)
e
- the entry for the functiona
- the position of the argument, counting from zerotype
- the item type of the argumentcardinality
- the cardinality of the argumentresultIfEmpty
- the value returned by the function if an empty sequence appears as the value,
when this result is unaffected by any other argumentspublic static net.sf.saxon.functions.StandardFunction.Entry getFunction(java.lang.String name, int arity)
name
- the name of the function. This may be an unprefixed local-name for functions in the
system namespace, or may use the conventional prefix "saxon:" in the case of Saxon extension functions
that are specially recognizedarity
- the arityCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa