|
|||||||
| 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_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NEED_INDEX_INFO, NO_CONTEXT_ID, SINGLE_STEP_EXECUTION |
| 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()
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 value
public LocationStep(XQueryContext context,
int axis,
NodeTest test)
LocationStep instance.
context - a XQueryContext valueaxis - an int valuetest - a NodeTest value| Method Detail |
|---|
public int getDependencies()
AbstractExpressionDependency.DEFAULT_DEPENDENCIES.
getDependencies in interface ExpressiongetDependencies in class AbstractExpressionExpression.getDependencies()public void setPreloadNodeSets(boolean doPreload)
setPreloadNodeSets
doPreload - a boolean value
public void setPreloadedData(DocumentSet docs,
NodeSet nodes)
setPreloadedData
docs - a DocumentSet valuenodes - a NodeSet value
public void analyze(AnalyzeContextInfo contextInfo)
throws XPathException
Expression
analyze in interface Expressionanalyze in class StepXPathException
public Sequence eval(Sequence contextSequence,
Item contextItem)
throws XPathException
eval
eval in interface Expressioneval in class StepcontextSequence - 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 Expressionaccept in class AbstractExpressionvisitor - an ExpressionVisitor valuepublic void resetState()
Expression
resetState in interface ExpressionresetState in class Step
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||