public static class StandardFunction.Entry extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
int |
applicability
Flags indicating which host languages the function is applicable to
|
SequenceType[] |
argumentTypes
An array holding the types of the arguments to the function
|
int |
cardinality
The cardinality of the result of the function
|
Class |
implementationClass
The class containing the implementation of this function (always a subclass of SystemFunction)
|
ItemType |
itemType
The item type of the result of the function
|
int |
maxArguments
The maximum number of arguments permitted
|
int |
minArguments
The minimum number of arguments required
|
String |
name
The name of the function: a local name in the case of functions in the standard library, or a
name with the conventional prefix "saxon:" in the case of Saxon extension functions
|
int |
opcode
Some classes support more than one function.
|
int |
properties
Any additional properties.
|
Sequence[] |
resultIfEmpty
An array holding, for each declared argument, the value that is to be returned if an empty sequence
as the value of this argument allows the result to be determined irrespective of the values of the
other arguments; null if there is no such calculation possible
|
int[] |
syntacticContext
The syntactic context of each argument for the purposes of streamability analysis
|
Constructor and Description |
---|
StandardFunction.Entry() |
Modifier and Type | Method and Description |
---|---|
StandardFunction.Entry |
arg(int a,
ItemType type,
int options,
Sequence resultIfEmpty)
Add information to a function entry about the argument types of the function
|
public String name
public Class implementationClass
public int opcode
public int minArguments
public int maxArguments
public ItemType itemType
public int cardinality
public int applicability
public int[] syntacticContext
public SequenceType[] argumentTypes
public Sequence[] resultIfEmpty
public int properties
public StandardFunction.Entry arg(int a, ItemType type, int options, Sequence resultIfEmpty)
a
- the position of the argument, counting from zerotype
- the item type of the argumentoptions
- the cardinality and usage of the argumentresultIfEmpty
- the value returned by the function if an empty sequence appears as the value
of this argument, in the case when this result is unaffected by any other arguments. Supply null
if this does not apply.Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.