net.sf.saxon.functions
public abstract class SystemFunction extends FunctionCall
Field Summary | |
---|---|
protected int | operation |
Method Summary | |
---|---|
protected void | addContextDocumentArgument(int pos, String augmentedName)
Add an implicit argument referring to the context document. |
void | checkArguments(StaticContext env)
Method called during static type checking |
int | computeCardinality()
Determine the cardinality of the function. |
int | computeSpecialProperties()
Determine the special properties of this expression. |
void | display(int level, NamePool pool, PrintStream out)
Diagnostic print of expression structure |
protected StandardFunction.Entry | getDetails()
Get the details |
String | getErrorCodeForTypeErrors()
Return the error code to be used for type errors |
ItemType | getItemType(TypeHierarchy th)
Determine the item type of the value returned by the function |
protected SequenceType | getRequiredType(int arg)
Get the required type of the nth argument |
static void | main(String[] args)
The main() method of this class is not intended to be called, it merely
tells the code inspection tools in IDEA that the constructors of each
function class are actual entry points |
static FunctionCall | makeSystemFunction(String name, int arity, NamePool pool)
Make a system function (one in the standard function namespace). |
void | setDetails(StandardFunction.Entry entry)
Set the details of this type of function |
protected void | useContextItemAsDefault()
Set "." as the default value for the first and only argument. |
Parameters: th
Parameters: name The local name of the function. It may also be a lexical QName for a recognized built-in function, e.g. saxon:evaluate, in which case the prefix is hard-coded.
Returns: a FunctionCall that implements this function, if it exists, or null if the function is unknown.