org.exist.xquery
Class LetExpr
java.lang.Object
org.exist.xquery.AbstractExpression
org.exist.xquery.BindingExpression
org.exist.xquery.LetExpr
- All Implemented Interfaces:
- Expression, RewritableExpression
public class LetExpr
- extends BindingExpression
Implements an XQuery let-expression.
| Fields inherited from class org.exist.xquery.BindingExpression |
actualReturnType, groupReturnExpr, groupSpecs, groupVarName, inputSequence, LOG, orderSpecs, POSITIONAL_VAR_TYPE, returnExpr, sequenceType, toGroupVarName, varName, whereExpr |
| 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, NON_STREAMABLE, POSITIONAL_PREDICATE, SINGLE_STEP_EXECUTION, UNORDERED, USE_TREE_TRAVERSAL |
| Methods inherited from class org.exist.xquery.BindingExpression |
analyze, applyWhereExpression, checkOrderSpecs, clearContext, eval, getDependencies, getInputSequence, getReturnExpression, getVariable, getWhereExpression, preselect, registerUpdateListener, replaceExpression, resetState, setContext, setGroupReturnExpr, setGroupSpecs, setGroupVariable, setInputSequence, setOrderSpecs, setReturnExpression, setSequenceType, setToGroupVariable, setVariable, setWhereExpression |
| Methods inherited from class org.exist.xquery.AbstractExpression |
eval, getCardinality, getColumn, getContext, getContextDocSet, getContextId, getExpressionId, getLine, getParent, getPrimaryAxis, getSource, getSubExpression, getSubExpressionCount, match, needsReset, setASTNode, setContextDocSet, setContextId, setLocation, setPrimaryAxis, simplify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LetExpr
public LetExpr(XQueryContext context)
analyze
public void analyze(AnalyzeContextInfo contextInfo,
OrderSpec[] orderBy,
GroupSpec[] groupBy)
throws XPathException
- Specified by:
analyze in class BindingExpression
- Throws:
XPathException
eval
public Sequence eval(Sequence contextSequence,
Item contextItem,
Sequence resultSequence,
GroupedValueSequenceTable groupedSequence)
throws XPathException
- Specified by:
eval in class BindingExpression
- Throws:
XPathException
returnsType
public int returnsType()
- Description copied from interface:
Expression
- The static return type of the expression.
This method should return one of the type constants defined in class
Type. If the return type cannot be determined
statically, return Type.ITEM.
- Specified by:
returnsType in interface Expression- Specified by:
returnsType in class AbstractExpression
dump
public void dump(ExpressionDumper dumper)
- Description copied from interface:
Expression
- Write a diagnostic dump of the expression to the passed
ExpressionDumper.
- Parameters:
dumper - the expression dumper to write to
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
accept
public void accept(ExpressionVisitor visitor)
- Description copied from interface:
Expression
- Start traversing the expression tree using the specified
ExpressionVisitor.
- Specified by:
accept in interface Expression- Overrides:
accept in class AbstractExpression
allowMixNodesInReturn
public boolean allowMixNodesInReturn()
- Specified by:
allowMixNodesInReturn in interface Expression- Overrides:
allowMixNodesInReturn in class AbstractExpression