org.planx.xpath.expr
Class LocationPath

java.lang.Object
  extended by org.planx.xpath.expr.Expression
      extended by 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.


Field Summary
protected  boolean isAbsolute
           
protected  List steps
           
 
Constructor Summary
LocationPath()
           
 
Method Summary
 void appendStep(Step step)
           
 XObject evaluate(Context ctxt, Environment env, Navigator nav)
          Evaluate the expression for the given context using the specified environment.
 XObject evaluate(XNodeSet nodes, Environment env, Navigator nav)
          Evaluate this location path using each of the nodes in the specified set as context node.
 boolean isAbsolute()
           
 void prependStep(Step step)
           
 void setAbsolute(boolean isAbsolute)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

steps

protected List steps

isAbsolute

protected boolean isAbsolute
Constructor Detail

LocationPath

public LocationPath()
Method Detail

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.