org.ucl.xpath.ast
Class XPathExpr

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.Expr
          extended byorg.ucl.xpath.ast.XPathExpr

public class XPathExpr
extends Expr

Path expression walks tries to walk the path specified in its argument


Constructor Summary
XPathExpr(int slashes, StepExpr expr)
           
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 void add_tail(int slashes, StepExpr expr)
          Add to tail of path
 StepExpr expr()
           
 XPathExpr next()
           
 void set_next(XPathExpr n)
          an XPath expression, n is copied to _next
 void set_slashes(int count)
           
 int slashes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathExpr

public XPathExpr(int slashes,
                 StepExpr expr)
Parameters:
slashes - is copied to _slashes
expr - is copied to _expr _next is made null as a result.
Method Detail

accept

public java.lang.Object accept(XPathVisitor v)
Support for Visitor interface.

Specified by:
accept in class XPathNode
Returns:
Result of Visitor operation.

add_tail

public void add_tail(int slashes,
                     StepExpr expr)
Add to tail of path


set_slashes

public void set_slashes(int count)
Parameters:
count - is copied to _slashes

next

public XPathExpr next()
Returns:
XPath expression _next

set_next

public void set_next(XPathExpr n)
an XPath expression, n is copied to _next


expr

public StepExpr expr()
Returns:
Step expression _expr

slashes

public int slashes()
Returns:
int _slashes