public class LocationPath extends Path
Expression.PointerIterator, Expression.ValueIterator
NOT_A_NUMBER, ONE, ZERO
Constructor and Description |
---|
LocationPath(boolean absolute,
Step[] steps)
Create a new LocationPath.
|
Modifier and Type | Method and Description |
---|---|
Object |
compute(EvalContext context)
Evaluates the expression.
|
boolean |
computeContextDependent()
Implemented by subclasses and result is cached by isContextDependent()
|
Object |
computeValue(EvalContext context)
Evaluates the expression.
|
boolean |
isAbsolute()
Learn whether this LocationPath is absolute.
|
String |
toString() |
areBasicPredicates, buildContextChain, createContextForStep, evalSteps, getSingleNodePointerForSteps, getSteps, isSimplePath, isSimpleStep, searchForPath
isContextDependent, iterate, iteratePointers
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 Object compute(EvalContext context)
Expression
compute
in class Expression
context
- evaluation contextpublic Object computeValue(EvalContext context)
Expression
computeValue
in class Expression
context
- evaluation contextCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.