public class LocationPath extends Path
Expression.PointerIterator, Expression.ValueIteratorNOT_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, searchForPathisContextDependent, iterate, iteratePointerspublic LocationPath(boolean absolute,
Step[] steps)
absolute - whether this is an absolute pathsteps - to evaluatepublic boolean isAbsolute()
public boolean computeContextDependent()
ExpressioncomputeContextDependent in class Pathpublic Object compute(EvalContext context)
Expressioncompute in class Expressioncontext - evaluation contextpublic Object computeValue(EvalContext context)
ExpressioncomputeValue in class Expressioncontext - evaluation contextCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.