public abstract class Function extends Expression
| Modifier and Type | Field and Description |
|---|---|
protected Expression[] |
argument |
staticContext| Constructor and Description |
|---|
Function() |
| Modifier and Type | Method and Description |
|---|---|
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
|
abstract java.lang.String |
getName()
Get the name of the function.
|
int |
getNumberOfArguments()
Determine the number of actual arguments supplied in the function call
|
containsReferences, enumerate, evaluate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getDataType, getDependencies, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, reduce, setStaticContext, simplify, usesCurrentprotected Expression[] argument
public void addArgument(Expression expr)
public int getNumberOfArguments()
public abstract java.lang.String getName()
protected int checkArgumentCount(int min,
int max)
throws XPathException
min - the minimum number of arguments allowedmax - the maximum number of arguments allowedXPathException - if the number of arguments is out of rangepublic void display(int level)
display in class Expression