com.icl.saxon.expr
public class StyleSheetFunctionCall extends Function
staticContext
Constructor and Description |
---|
StyleSheetFunctionCall() |
Modifier and Type | Method and Description |
---|---|
Value |
evaluate(Context c)
Evaluate the function
|
int |
getDataType()
Determine the data type of the expression, if possible
|
int |
getDependencies()
Determine which aspects of the context the expression depends on.
|
String |
getName()
Get the name of the function.
|
Expression |
reduce(int dependencies,
Context context)
Remove dependencies.
|
void |
setFunction(SAXONFunction f)
Create the reference to the saxon:function element
|
Expression |
simplify()
Simplify the function call
|
addArgument, checkArgumentCount, display, getNumberOfArguments
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent
public void setFunction(SAXONFunction f)
public String getName()
public int getDataType()
getDataType
in class Expression
public Expression simplify() throws XPathException
simplify
in class Expression
XPathException
public int getDependencies()
getDependencies
in class Expression
public Expression reduce(int dependencies, Context context) throws XPathException
reduce
in class Expression
dependencies
- The dependencies to be removed, e.g. Context.VARIABLEScontext
- The context to be used for the partial evaluationXPathException
public Value evaluate(Context c) throws XPathException
evaluate
in class Expression
context
- The context in which the function is to be evaluatedXPathException
- if the function cannot be evaluated.