|
|||||||
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.Step
org.exist.xquery.LocationStep
public class LocationStep
Processes all location path steps (like descendant::*, ancestor::XXX).
The results of the first evaluation of the expression are cached for the
lifetime of the object and only reloaded if the context sequence (as passed
to the eval(Sequence, Item)
method) has changed.
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 | |
---|---|
LocationStep(XQueryContext context,
int axis)
Creates a new LocationStep instance. |
|
LocationStep(XQueryContext context,
int axis,
NodeTest test)
Creates a new LocationStep instance. |
Method Summary | |
---|---|
void |
accept(ExpressionVisitor visitor)
The method accept |
void |
analyze(AnalyzeContextInfo contextInfo)
Statically analyze the expression and its subexpressions. |
Sequence |
eval(Sequence contextSequence,
Item contextItem)
The method eval |
int |
getDependencies()
Returns Dependency.DEFAULT_DEPENDENCIES . |
Expression |
getParent()
The method getParent |
void |
resetState(boolean postOptimization)
Called to inform an expression that it should reset to its initial state. |
void |
setPreloadedData(DocumentSet docs,
NodeSet nodes)
The method setPreloadedData |
void |
setPreloadNodeSets(boolean doPreload)
The method setPreloadNodeSets |
void |
setUseDirectAttrSelect(boolean useDirectAttrSelect)
The method setUseDirectAttrSelect |
Methods inherited from class org.exist.xquery.Step |
---|
addPredicate, dump, getAxis, getCardinality, getPredicates, getTest, hasPredicates, insertPredicate, returnsType, setAxis, setPrimaryAxis, setTest, toString |
Methods inherited from class org.exist.xquery.AbstractExpression |
---|
eval, getASTNode, getContextDocSet, getContextId, getExpressionId, setASTNode, setContextDocSet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocationStep(XQueryContext context, int axis)
LocationStep
instance.
context
- a XQueryContext
valueaxis
- an int
valuepublic LocationStep(XQueryContext context, int axis, NodeTest test)
LocationStep
instance.
context
- a XQueryContext
valueaxis
- an int
valuetest
- a NodeTest
valueMethod Detail |
---|
public int getDependencies()
AbstractExpression
Dependency.DEFAULT_DEPENDENCIES
.
getDependencies
in interface Expression
getDependencies
in class AbstractExpression
Expression.getDependencies()
public void setPreloadNodeSets(boolean doPreload)
setPreloadNodeSets
doPreload
- a boolean
valuepublic void setPreloadedData(DocumentSet docs, NodeSet nodes)
setPreloadedData
docs
- a DocumentSet
valuenodes
- a NodeSet
valuepublic void analyze(AnalyzeContextInfo contextInfo) throws XPathException
Expression
analyze
in interface Expression
analyze
in class Step
XPathException
public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException
eval
eval
in interface Expression
eval
in class Step
contextSequence
- a Sequence
valuecontextItem
- an Item
value
Sequence
value
XPathException
- if an error occurspublic Expression getParent()
getParent
Expression
valuepublic void setUseDirectAttrSelect(boolean useDirectAttrSelect)
setUseDirectAttrSelect
useDirectAttrSelect
- a boolean
valuepublic void accept(ExpressionVisitor visitor)
accept
accept
in interface Expression
accept
in class AbstractExpression
visitor
- an ExpressionVisitor
valuepublic void resetState(boolean postOptimization)
Expression
resetState
in interface Expression
resetState
in class Step
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |