|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.xquery.AbstractExpression
org.exist.xquery.BindingExpression
org.exist.xquery.ForExpr
public class ForExpr
Represents an XQuery "for" expression.
| Field Summary |
|---|
| Fields inherited from interface org.exist.xquery.Expression |
|---|
DOT_TEST, EXPRESSION_ID_INVALID, IGNORE_CONTEXT, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NEED_INDEX_INFO, NO_CONTEXT_ID, SINGLE_STEP_EXECUTION |
| Constructor Summary | |
|---|---|
ForExpr(XQueryContext context)
|
|
| Method Summary | |
|---|---|
void |
accept(ExpressionVisitor visitor)
Start traversing the expression tree using the specified ExpressionVisitor. |
void |
analyze(AnalyzeContextInfo contextInfo,
OrderSpec[] orderBy)
|
void |
analyze(AnalyzeContextInfo contextInfo,
OrderSpec[] orderBy,
GroupSpec[] groupBy)
|
void |
dump(ExpressionDumper dumper)
Write a diagnostic dump of the expression to the passed ExpressionDumper. |
Sequence |
eval(Sequence contextSequence,
Item contextItem,
Sequence resultSequence,
GroupedValueSequenceTable groupedSequence)
This implementation tries to process the "where" clause in advance, i.e. |
void |
resetState()
Called to inform an expression that it should reset to its initial state. |
int |
returnsType()
The static return type of the expression. |
void |
setPositionalVariable(String var)
A "for" expression may have an optional positional variable whose QName can be set via this method. |
String |
toString()
|
| Methods inherited from class org.exist.xquery.BindingExpression |
|---|
analyze, eval, getInputSequence, getReturnExpression, getVariable, getWhereExpression, preselect, setGroupReturnExpr, setGroupSpecs, setGroupVariable, setInputSequence, setOrderSpecs, setReturnExpression, setSequenceType, setToGroupVariable, setVariable, setWhereExpression |
| Methods inherited from class org.exist.xquery.AbstractExpression |
|---|
eval, getASTNode, getCardinality, getContextDocSet, getContextId, getDependencies, getExpressionId, setASTNode, setContextDocSet, setPrimaryAxis |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ForExpr(XQueryContext context)
| Method Detail |
|---|
public void setPositionalVariable(String var)
var -
public void analyze(AnalyzeContextInfo contextInfo,
OrderSpec[] orderBy)
throws XPathException
XPathException
public void analyze(AnalyzeContextInfo contextInfo,
OrderSpec[] orderBy,
GroupSpec[] groupBy)
throws XPathException
analyze in class BindingExpressionXPathException
public Sequence eval(Sequence contextSequence,
Item contextItem,
Sequence resultSequence,
GroupedValueSequenceTable groupedSequence)
throws XPathException
eval in class BindingExpressionXPathExceptionExpression.eval(Sequence, Item)public void dump(ExpressionDumper dumper)
ExpressionExpressionDumper.
dumper - the expression dumper to write topublic String toString()
toString in class Objectpublic int returnsType()
ExpressionType. If the return type cannot be determined
statically, return Type.ITEM.
returnsType in interface ExpressionreturnsType in class BindingExpressionpublic void resetState()
Expression
resetState in interface ExpressionresetState in class BindingExpressionpublic void accept(ExpressionVisitor visitor)
ExpressionExpressionVisitor.
accept in interface Expressionaccept in class AbstractExpression
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||