| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.FunctionCall net.sf.saxon.expr.UserFunctionCall
UserFunctionCall | public class UserFunctionCall extends FunctionCall implements InstructionInfoProvider(Code) | | This class represents a call to a function defined in the stylesheet or query.
It is used for all user-defined functions in XQuery, and for a limited class of
user-defined functions in XSLT: those that can be reduced to the evaluation
of a single expression.
|
Inner Class :public class FunctionCallPackage extends ObjectValue | |
UserFunctionCall | public UserFunctionCall()(Code) | | |
computeCardinality | public int computeCardinality()(Code) | | Determine the cardinality of the result
|
dynamicCall | public ValueRepresentation dynamicCall(ValueRepresentation[] suppliedArguments, XPathContext context) throws XPathException(Code) | | Call the function dynamically. For this to be possible, the static arguments of the function call
must have been set up as SuppliedParameterReference objects. The actual arguments are placed on the
callee's stack, and the type conversion takes place "in situ".
|
evaluateItem | public Item evaluateItem(XPathContext c) throws XPathException(Code) | | Call the function, returning the value as an item. This method will be used
only when the cardinality is zero or one. If the function is tail recursive,
it returns an Object representing the arguments to the next (recursive) call
|
getArguments | public Expression[] getArguments()(Code) | | Get the arguments (the expressions supplied in the function call)
|
getFunction | public UserFunction getFunction()(Code) | | Get the function that is being called by this function call
|
getInstructionInfo | public InstructionInfo getInstructionInfo()(Code) | | Get diagnostic information about this expression
|
getIntrinsicDependencies | public int getIntrinsicDependencies()(Code) | | |
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Determine the data type of the expression, if possible
Type.ITEM (meaning not known in advance) Parameters: th - |
isConfirmed | public boolean isConfirmed()(Code) | | Determine whether this function call is confirmed
|
iterate | public SequenceIterator iterate(XPathContext c) throws XPathException(Code) | | Call the function, returning an iterator over the results. (But if the function is
tail recursive, it returns an iterator over the arguments of the recursive call)
|
markTailFunctionCalls | public boolean markTailFunctionCalls()(Code) | | Mark tail-recursive calls on stylesheet functions. For most expressions, this does nothing.
|
preEvaluate | public Expression preEvaluate(StaticContext env)(Code) | | Pre-evaluate a function at compile time. This version of the method suppresses
early evaluation by doing nothing.
|
setConfirmed | public void setConfirmed(boolean conf)(Code) | | Set this function as confirmed (the function being called is known to exist) or not
|
|
|