public class PathStep extends AbstractExpression
| Modifier and Type | Class and Description |
|---|---|
static class |
PathStep.Axis |
AbstractExpression.Type| Modifier and Type | Field and Description |
|---|---|
static int |
MANCESTOR |
static int |
MATTRIBUTE |
static int |
MCHILD |
static int |
MDESCENDANT |
static int |
MFOLLOWING |
static int |
MFOLLOWING_SIB |
static int |
MPARENT |
static int |
MPRECEDING |
static int |
MPRECEDING_SIB |
static int |
MSELF |
subs, sup| Constructor and Description |
|---|
PathStep(PathStep.Axis axis,
NodeTest nodeTest) |
| Modifier and Type | Method and Description |
|---|---|
AbstractExpression |
accept(ExpressionVisitor visitor) |
int |
equivHash() |
PathStep.Axis |
getAxis() |
AbstractExpression |
getLastContextStep()
This method is called by the optimizer in order to determine an element or attribute QName (or wildcard) against which
some expression is being compared, in order to generate an appropriate text query.
|
NodeTest |
getNodeTest() |
int |
getPrecedence() |
boolean |
isDocumentOrdered() |
boolean |
isRestrictive()
An expression is restrictive when any empty sub implies the expression is empty.
|
boolean |
propEquals(AbstractExpression other) |
boolean |
propGreaterEqual(AbstractExpression other) |
void |
toString(StringBuilder buf)
Each subclass must implement the toString(StringBuilder) method by
rendering itself as a syntatically valid XPath/XQuery expression in
the given buffer.
|
acceptSubs, appendSub, deepEquals, equivalent, geq, getBindingContext, getRoot, getSubs, getSuper, getTail, getType, isAbsolute, matchDown, replaceRoot, setSubs, toStringpublic static final int MSELF
public static final int MCHILD
public static final int MPARENT
public static final int MDESCENDANT
public static final int MANCESTOR
public static final int MPRECEDING
public static final int MFOLLOWING
public static final int MPRECEDING_SIB
public static final int MFOLLOWING_SIB
public static final int MATTRIBUTE
public PathStep(PathStep.Axis axis, NodeTest nodeTest)
public PathStep.Axis getAxis()
public NodeTest getNodeTest()
public void toString(StringBuilder buf)
AbstractExpressiontoString in class AbstractExpressionpublic AbstractExpression accept(ExpressionVisitor visitor)
public int getPrecedence()
getPrecedence in class AbstractExpressionpublic boolean isDocumentOrdered()
isDocumentOrdered in class AbstractExpressionpublic AbstractExpression getLastContextStep()
AbstractExpressiongetLastContextStep in class AbstractExpressionpublic boolean propEquals(AbstractExpression other)
propEquals in class AbstractExpressionother - another expressionpublic boolean propGreaterEqual(AbstractExpression other)
propGreaterEqual in class AbstractExpressionother - another expression of the same type as thisthis ge oexpublic int equivHash()
AbstractExpression.equivalent(AbstractExpression)public boolean isRestrictive()
AbstractExpressionisRestrictive in class AbstractExpressionCopyright © 2013. All Rights Reserved.