java.io.Serializable
, javax.xml.transform.SourceLocator
, Container
, Expression
, InstructionInfoProvider
public class XPathFunctionCall extends FunctionCall
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
argument
Constructor | Description |
---|---|
XPathFunctionCall(javax.xml.xpath.XPathFunction function) |
Default constructor
|
Modifier and Type | Method | 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)
|
adoptChildExpression, 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, typeError
checkArgumentCount, display, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
public XPathFunctionCall(javax.xml.xpath.XPathFunction function)
public Expression preEvaluate(StaticContext env)
preEvaluate
in class FunctionCall
public void checkArguments(StaticContext env) throws XPathException
checkArguments
in class FunctionCall
XPathException
public int getIntrinsicDependencies()
getIntrinsicDependencies
in class ComputedExpression
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in interface Expression
iterate
in class ComputedExpression
context
- 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 argumentsXPathException
public 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