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, iteratePointers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
areBasicPredicates, buildContextChain, createContextForStep, evalSteps, getSingleNodePointerForSteps, getSteps, isSimplePath, isSimpleStep, searchForPath
public LocationPath(boolean absolute, Step[] steps)
absolute
- whether this is an absolute pathsteps
- to evaluatepublic boolean isAbsolute()
public boolean computeContextDependent()
Expression
computeContextDependent
in class Path
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object compute(EvalContext context)
Expression
compute
in class Expression
context
- evaluation contextpublic java.lang.Object computeValue(EvalContext context)
Expression
computeValue
in class Expression
context
- evaluation context