|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.flwor.TupleExpression
public class TupleExpression
A tuple expression is an expression that returns a tuple. Specifically, it is a list of slot numbers of local variables; it returns a Tuple item containg the current value of these variables.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD |
Constructor Summary | |
---|---|
TupleExpression()
|
Method Summary | |
---|---|
int |
computeCardinality()
Get the cardinality of the expression. |
Expression |
copy()
Copy an expression. |
Tuple |
evaluateItem(XPathContext context)
Evaluate an expression as a single item. |
void |
explain(ExpressionPresenter out)
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. |
LocalVariableReference[] |
getSlots()
|
Iterator<Expression> |
iterateSubExpressions()
Get the immediate sub-expressions of this expression. |
boolean |
replaceSubExpression(Expression original,
Expression replacement)
Replace one subexpression by a replacement subexpression |
void |
setCurrentTuple(XPathContext context,
Tuple tuple)
Set the local variables in the current stack frame to values corresponding to a supplied tuple |
void |
setVariables(List<LocalVariableReference> refs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TupleExpression()
Method Detail |
---|
public void setVariables(List<LocalVariableReference> refs)
public LocalVariableReference[] getSlots()
public ItemType getItemType(TypeHierarchy th)
Expression
This method should always return a result, though it may be the best approximation that is available at the time.
getItemType
in class Expression
th
- the type hierarchy cache
public Iterator<Expression> iterateSubExpressions()
iterateSubExpressions
in class Expression
public boolean replaceSubExpression(Expression original, Expression replacement)
replaceSubExpression
in class Expression
original
- the original subexpressionreplacement
- the replacement subexpression
public Expression copy()
copy
in class Expression
public void explain(ExpressionPresenter out)
explain
in class Expression
out
- the expression presenter used to display the structurepublic Tuple evaluateItem(XPathContext context) throws XPathException
Expression
evaluateItem
in class Expression
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic void setCurrentTuple(XPathContext context, Tuple tuple)
context
- identifies the stack frame to be modifiedtuple
- the tuple containing the current valuespublic int computeCardinality()
computeCardinality
in class Expression
public int getIntrinsicDependencies()
Expression
getIntrinsicDependencies
in class Expression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |