|
|||||||
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_NODE_CONSTRUCTOR, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NEED_INDEX_INFO, NO_CONTEXT_ID, SINGLE_STEP_EXECUTION, USE_TREE_TRAVERSAL |
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(boolean postOptimization)
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, getDependencies, 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, 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 BindingExpression
XPathException
public Sequence eval(Sequence contextSequence, Item contextItem, Sequence resultSequence, GroupedValueSequenceTable groupedSequence) throws XPathException
eval
in class BindingExpression
XPathException
Expression.eval(Sequence, Item)
public int returnsType()
Expression
Type
. If the return type cannot be determined
statically, return Type.ITEM.
returnsType
in interface Expression
returnsType
in class AbstractExpression
public void dump(ExpressionDumper dumper)
Expression
ExpressionDumper
.
dumper
- the expression dumper to write topublic String toString()
toString
in class Object
public void resetState(boolean postOptimization)
Expression
resetState
in interface Expression
resetState
in class BindingExpression
public void accept(ExpressionVisitor visitor)
Expression
ExpressionVisitor
.
accept
in interface Expression
accept
in class AbstractExpression
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |