| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.SuppliedParameterReference
SuppliedParameterReference | public class SuppliedParameterReference extends ComputedExpression (Code) | | Supplied parameter reference: this is an internal expression used to refer to
the value of the n'th parameter supplied on a template call (apply-templates).
It is used within a type-checking expression designed to check the consistency
of the supplied value with the required type. This type checking is all done
at run-time, because the binding of apply-templates to actual template rules
is entirely dynamic.
|
slotNumber | int slotNumber(Code) | | |
SuppliedParameterReference | public SuppliedParameterReference(int slot)(Code) | | Constructor
Parameters: slot - identifies this parameter |
computeCardinality | public int computeCardinality()(Code) | | Get the static cardinality
ZERO_OR_MORE, because we don't know the type of the supplied valuein advance. |
equals | public boolean equals(Object other)(Code) | | Test if this expression is the same as another expression.
(Note, we only compare expressions that
have the same static and dynamic context).
|
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Determine the data type of the expression, if possible.
Type.ITEM, because we don't know the type of the supplied valuein advance. Parameters: th - |
iterate | public SequenceIterator iterate(XPathContext c) throws XPathException(Code) | | Get the value of this expression in a given context.
Parameters: c - the XPathContext which contains the relevant variable bindings the value of the variable, if it is defined throws: XPathException - if the variable is undefined |
|
|