| java.lang.Object net.sf.saxon.functions.StandardFunction
StandardFunction | abstract public class StandardFunction (Code) | | This class contains static data tables defining the properties of standard functions. "Standard functions"
here means the XPath 2.0 functions, the XSLT 2.0 functions, and a few selected extension functions
which need special recognition.
|
Method Summary | |
public static void | arg(Entry e, int a, ItemType type, int cardinality) | public static Entry | getFunction(String name, int arity) Get the table entry for the function with a given name
Parameters: name - the name of the function. | public static Entry | makeEntry(String name, Class implementationClass, int opcode, int minArguments, int maxArguments, ItemType itemType, int cardinality) Make a table entry describing the signature of a function, with a reference to the implementation class.
Parameters: name - the function name Parameters: implementationClass - the class used to implement the function Parameters: opcode - identifies the function when a single class implements several functions Parameters: minArguments - the minimum number of arguments required Parameters: maxArguments - the maximum number of arguments allowed Parameters: itemType - the item type of the result of the function Parameters: cardinality - the cardinality of the result of the function the entry describing the function. |
SAME_AS_FIRST_ARGUMENT | protected static ItemType SAME_AS_FIRST_ARGUMENT(Code) | | |
arg | public static void arg(Entry e, int a, ItemType type, int cardinality)(Code) | | Add information to a function entry about the argument types of the function
Parameters: e - the entry for the function Parameters: a - the position of the argument, counting from zero Parameters: type - the item type of the argument Parameters: cardinality - the cardinality of the argument |
getFunction | public static Entry getFunction(String name, int arity)(Code) | | Get the table entry for the function with a given name
Parameters: name - the name of the function. This may be an unprefixed local-name for functions in thesystem namespace, or may use the conventional prefix "saxon:" in the case of Saxon extension functionsthat are specially recognized if the function name is known, an Entry containing information about the function. Otherwise,null |
makeEntry | public static Entry makeEntry(String name, Class implementationClass, int opcode, int minArguments, int maxArguments, ItemType itemType, int cardinality)(Code) | | Make a table entry describing the signature of a function, with a reference to the implementation class.
Parameters: name - the function name Parameters: implementationClass - the class used to implement the function Parameters: opcode - identifies the function when a single class implements several functions Parameters: minArguments - the minimum number of arguments required Parameters: maxArguments - the maximum number of arguments allowed Parameters: itemType - the item type of the result of the function Parameters: cardinality - the cardinality of the result of the function the entry describing the function. The entry is incomplete, it does not yet contain informationabout the function arguments. |
|
|