dk.brics.xpath
Class Path

java.lang.Object
  extended by dk.brics.xpath.Node
      extended by dk.brics.xpath.Path
Direct Known Subclasses:
AbsolutePath, RelativePath

public abstract class Path
extends Node

Abstract superclass for path nodes.


Nested Class Summary
static class Path.Kind
          Path kinds.
 
Constructor Summary
Path(Path.Kind kind, List<Step> steps)
          Constructs a new path node.
 
Method Summary
 void apply(Visitor v)
          Applies the given Visitor to this node.
 Path.Kind getKind()
          Gets the kind.
 List<Step> getSteps()
          Gets the list of steps.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Path

public Path(Path.Kind kind,
            List<Step> steps)
Constructs a new path node.

Parameters:
kind - kind of path
steps - list of steps
Method Detail

apply

public void apply(Visitor v)
Description copied from class: Node
Applies the given Visitor to this node.

Specified by:
apply in class Node
Parameters:
v - node visitor

getKind

public Path.Kind getKind()
Gets the kind.

Returns:
kind of path

getSteps

public List<Step> getSteps()
Gets the list of steps.

Returns:
list of step nodes

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2010 Anders Møller.