public abstract class StandardFunction extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StandardFunction.Entry
An entry in the table describing the properties of a function
|
Modifier and Type | Field and Description |
---|---|
static int |
ABS |
static int |
AS_ARG0
Function properties
|
static int |
AS_PRIM_ARG0 |
static int |
BASE |
static int |
CORE
Categories of functions, bit significant
|
static int |
DCOLL |
static int |
DEPENDS_ON_STATIC_CONTEXT |
static int |
DLANG |
static Sequence |
EMPTY |
static int |
FILTER |
static int |
FOCUS |
static int |
HOF |
static int |
INS
Classification of function arguments for serialization purposes; note that values must not conflict
with bit settings used for cardinalities
|
static int |
INTERNAL |
static int |
LATE |
static int |
NAV |
static int |
NS |
static int |
ONE
Local names used for cardinality values
|
static int |
OPT |
static int |
PLUS |
static int |
STAR |
static int |
TRA |
static int |
UO |
static int |
USE_WHEN |
static int |
XPATH30 |
static int |
XPATH31 |
static int |
XQUPDATE |
static int |
XSLT |
static int |
XSLT30 |
Modifier and Type | Method and Description |
---|---|
static StandardFunction.Entry |
getFunction(String name,
int arity)
Get the table entry for the function with a given name
|
static StandardFunction.Entry |
makeEntry(String name,
Class implementationClass,
int minArguments,
int maxArguments,
ItemType itemType,
int cardinality,
int applicability,
int properties)
Make a table entry describing the signature of a function, with a reference to the implementation class.
|
static StandardFunction.Entry |
register(String name,
Class implementationClass,
int minArguments,
int maxArguments,
ItemType itemType,
int cardinality,
int applicability,
int properties)
Register a system function in the table of function details.
|
public static Sequence EMPTY
public static final int CORE
public static final int XSLT
public static final int USE_WHEN
public static final int XQUPDATE
public static final int XPATH30
public static final int INTERNAL
public static final int XSLT30
public static final int XPATH31
public static final int HOF
public static final int ONE
public static final int OPT
public static final int STAR
public static final int PLUS
public static final int AS_ARG0
public static final int AS_PRIM_ARG0
public static final int FOCUS
public static final int BASE
public static final int NS
public static final int DCOLL
public static final int DLANG
public static final int FILTER
public static final int LATE
public static final int UO
public static final int DEPENDS_ON_STATIC_CONTEXT
public static final int INS
public static final int ABS
public static final int TRA
public static final int NAV
public static StandardFunction.Entry register(String name, Class implementationClass, int minArguments, int maxArguments, ItemType itemType, int cardinality, int applicability, int properties)
name
- the function nameimplementationClass
- the class used to implement the functionminArguments
- 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 functionapplicability
- the host languages (and versions thereof) in which this function is availableproperties
- bitwise properties of the functionpublic static StandardFunction.Entry makeEntry(String name, Class implementationClass, int minArguments, int maxArguments, ItemType itemType, int cardinality, int applicability, int properties)
name
- the function nameimplementationClass
- the class used to implement the functionminArguments
- 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 functionapplicability
- the host languages (and versions of) in which this function is availablepublic static StandardFunction.Entry getFunction(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 number of arguments of the function, or -1 if any arity will doCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.