net.sf.saxon.expr
public class SuppliedParameterReference extends Expression
Field Summary | |
---|---|
int | slotNumber |
SequenceType | type |
Constructor Summary | |
---|---|
SuppliedParameterReference(int slot)
Constructor |
Method Summary | |
---|---|
int | computeCardinality()
Get the static cardinality |
Expression | copy()
Copy an expression. |
Item | evaluateItem(XPathContext context)
Evaluate an expression as a single item. |
ValueRepresentation | evaluateVariable(XPathContext c)
Get the value of this expression in a given context. |
void | explain(ExpressionPresenter destination)
Diagnostic print of expression structure. |
int | getIntrinsicDependencies()
Determine the intrinsic dependencies of an expression, that is, those which are not derived
from the dependencies of its subexpressions. |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression, if possible. |
SequenceIterator | iterate(XPathContext c)
Get the value of this expression in a given context. |
Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType) |
void | setSuppliedType(SequenceType type)
Set the type of the supplied value if known |
String | toString()
The toString() method for an expression attempts to give a representation of the expression
in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath.
|
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType) |
Parameters: slot identifies this parameter
Returns: ZERO_OR_MORE, unless we know the type of the supplied value in advance.
Returns: the copy of the original expression
Parameters: context The context in which the expression is to be evaluated
Returns: the node or atomic value that results from evaluating the expression; or null to indicate that the result is an empty sequence
Throws: net.sf.saxon.trans.XPathException if any dynamic error occurs evaluating the expression
Parameters: c the XPathContext which contains the relevant variable bindings
Returns: the value of the variable, if it is defined
Throws: XPathException if the variable is undefined
Returns: a set of bit-significant flags identifying the "intrinsic" dependencies. The flags are documented in class net.sf.saxon.value.StaticProperty
Parameters: th the type hierarchy cache
Returns: Type.ITEM, because we don't know the type of the supplied value in advance.
Parameters: c the XPathContext which contains the relevant variable bindings
Returns: the value of the variable, if it is defined
Throws: XPathException if the variable is undefined
Parameters: type of the supplied value
Returns: a representation of the expression as a string