public class LocationPath extends Path
Expression.PointerIterator, Expression.ValueIterator| Modifier and Type | Field | Description |
|---|---|---|
private boolean |
absolute |
NOT_A_NUMBER, ONE, ZERO| Constructor | Description |
|---|---|
LocationPath(boolean absolute,
Step[] steps) |
Create a new LocationPath.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
compute(EvalContext context) |
Evaluates the expression.
|
boolean |
computeContextDependent() |
Implemented by subclasses and result is cached by isContextDependent()
|
java.lang.Object |
computeValue(EvalContext context) |
Evaluates the expression.
|
boolean |
isAbsolute() |
Learn whether this LocationPath is absolute.
|
java.lang.String |
toString() |
isContextDependent, iterate, iteratePointersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitareBasicPredicates, buildContextChain, createContextForStep, evalSteps, getSingleNodePointerForSteps, getSteps, isSimplePath, isSimpleStep, searchForPathpublic LocationPath(boolean absolute,
Step[] steps)
absolute - whether this is an absolute pathsteps - to evaluatepublic boolean isAbsolute()
public boolean computeContextDependent()
ExpressioncomputeContextDependent in class Pathpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object compute(EvalContext context)
Expressioncompute in class Expressioncontext - evaluation contextpublic java.lang.Object computeValue(EvalContext context)
ExpressioncomputeValue in class Expressioncontext - evaluation context