BooleanFn, Ceiling, Concat, Contains, Count, Current, Document, ElementAvailable, Floor, FormatNumber, FunctionAvailable, FunctionProxy, GenerateId, Id, Key, Lang, Last, LocalName, NameFn, NamespaceURI, NormalizeSpace, Not, NumberFn, Position, Round, StartsWith, StringFn, StringLength, StyleSheetFunctionCall, Substring, SubstringAfter, SubstringBefore, Sum, SystemProperty, Translate, UnparsedEntityURIpublic abstract class Function extends Expression
| Modifier and Type | Field | Description |
|---|---|---|
protected Expression[] |
argument |
staticContext| Constructor | Description |
|---|---|
Function() |
| Modifier and Type | Method | 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