public class XPathFunctionCall extends FunctionCall
argumentlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
XPathFunctionCall(javax.xml.xpath.XPathFunction function)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
SequenceIterator |
call(ValueRepresentation[] argValues,
XPathContext context)
Call an extension function previously identified using the bind() method.
|
void |
checkArguments(StaticContext env)
Method called by the expression parser when all arguments have been supplied
|
int |
computeCardinality()
Determine the cardinality of the result
|
int |
getIntrinsicDependencies()
Determine which aspects of the context the expression depends on.
|
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the expression, if possible.
|
SequenceIterator |
iterate(XPathContext context)
Evaluate the function.
|
Expression |
preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
(because the external function might have side-effects and might use the context)
|
checkArgumentCount, display, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheckadoptChildExpression, checkPermittedContents, computeDependencies, computeSpecialProperties, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorpublic XPathFunctionCall(javax.xml.xpath.XPathFunction function)
public Expression preEvaluate(StaticContext env)
preEvaluate in class FunctionCallpublic void checkArguments(StaticContext env) throws XPathException
checkArguments in class FunctionCallXPathExceptionpublic int getIntrinsicDependencies()
getIntrinsicDependencies in class ComputedExpressionpublic SequenceIterator iterate(XPathContext context) throws XPathException
iterate in interface Expressioniterate in class ComputedExpressioncontext - The context in which the function is to be evaluatedXPathException - if the function cannot be evaluated.public SequenceIterator call(ValueRepresentation[] argValues, XPathContext context) throws XPathException
argValues - The values of the argumentsXPathExceptionpublic ItemType getItemType(TypeHierarchy th)
This method will always return a result, though it may be the best approximation that is available at the time.
th - public int computeCardinality()
computeCardinality in class ComputedExpression