|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.expr.ExpressionImpl
jd.xml.xpath.expr.NodeSetExpression
jd.xml.xpath.expr.path.LocationStep
An expression class to represent XPath location steps with and without predicate filters.
Field Summary | |
protected Axis |
axis_
|
protected int |
maxAxisResultSize_
|
protected NodeTest |
nodeTest_
|
Fields inherited from interface jd.xml.xpath.expr.Expression |
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN |
Constructor Summary | |
LocationStep(Axis axis,
NodeTest nodeTest)
Create a new LocationStep. |
Method Summary | |
void |
accept(ExpressionVisitor visitor)
Accept a ExpressionVisitor. |
Axis |
getAxis()
Return the Axis of the LocationStep. |
int |
getContextDependencies()
Return DEP_CONTEXT_NODE. |
int |
getMaxResultSize()
Return the maximum size of the returned NodeSet or 0 if not known. |
abstract void |
getNodes(XPathContext context,
XMutableNodeSet nodeSet)
Evaluate the LocationStep. |
NodeTest |
getNodeTest()
Return the NodeTest of the LocationStep. |
Methods inherited from class jd.xml.xpath.expr.NodeSetExpression |
canCreateModelWalker, getMaxResultSize, getMinResultSize, getMinResultSize, getModelWalker, getResultType, toBooleanValue, toNumberValue, toStringValue, toXObject |
Methods inherited from class jd.xml.xpath.expr.ExpressionImpl |
hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final Axis axis_
protected final NodeTest nodeTest_
protected final int maxAxisResultSize_
Constructor Detail |
public LocationStep(Axis axis, NodeTest nodeTest)
Method Detail |
public final Axis getAxis()
public NodeTest getNodeTest()
public int getMaxResultSize()
NodeSetExpression
getMaxResultSize
in class NodeSetExpression
public abstract void getNodes(XPathContext context, XMutableNodeSet nodeSet)
context
- the evaluation contextnodeSet
- a NodeSet where to store the resulting nodespublic int getContextDependencies()
public void accept(ExpressionVisitor visitor)
Expression
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |