org.planx.xpath.expr
Class LocationPath
java.lang.Object
org.planx.xpath.expr.Expression
org.planx.xpath.expr.LocationPath
public class LocationPath
- extends Expression
A LocationPath consists of a list of Step objects
and an indication of whether it is an absolute location
path or not.
steps
protected List steps
isAbsolute
protected boolean isAbsolute
LocationPath
public LocationPath()
appendStep
public void appendStep(Step step)
prependStep
public void prependStep(Step step)
isAbsolute
public boolean isAbsolute()
setAbsolute
public void setAbsolute(boolean isAbsolute)
evaluate
public XObject evaluate(Context ctxt,
Environment env,
Navigator nav)
throws XPathException
- Description copied from class:
Expression
- Evaluate the expression for the given context using the
specified environment.
- Specified by:
evaluate in class Expression
- Throws:
XPathException
evaluate
public XObject evaluate(XNodeSet nodes,
Environment env,
Navigator nav)
throws XPathException
- Evaluate this location path using each of the nodes in the
specified set as context node. The result is the union of
all the sets found this way. The results are returned in
document order.
- Throws:
XPathException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010. All Rights Reserved.