com.icl.saxon.expr
Class Function
public abstract class Function
Abstract superclass for system-defined and user-defined functions
void | addArgument(Expression expr)- Method to add an argument during function definition.
|
protected int | checkArgumentCount(int min, int max)- Check number of arguments.
|
void | display(int level)- Diagnostic print of expression structure
|
String | getName()- Get the name of the function.
|
int | getNumberOfArguments()- Determine the number of actual arguments supplied in the function call
|
containsReferences, display, enumerate, evaluate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getDataType, getDependencies, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, reduce, setStaticContext, simplify, usesCurrent |
addArgument
public void addArgument(Expression expr)
Method to add an argument during function definition.
checkArgumentCount
protected int checkArgumentCount(int min,
int max)
throws XPathException Check number of arguments.
A convenience routine for use in subclasses.
min - the minimum number of arguments allowedmax - the maximum number of arguments allowed
- the actual number of arguments
XPathException - if the number of arguments is out of range
display
public void display(int level)
Diagnostic print of expression structure
- display in interface Expression
getName
public String getName()
Get the name of the function.
This method must be implemented in all subclasses.
- the name of the function, as used in XSL expressions, but excluding
its namespace prefix
getNumberOfArguments
public int getNumberOfArguments()
Determine the number of actual arguments supplied in the function call