dk.brics.xpath
Class Axis

java.lang.Object
  extended by dk.brics.xpath.Node
      extended by dk.brics.xpath.Axis
Direct Known Subclasses:
AttributeAxis, ChildAxis, DescendantOrSelfAxis

public abstract class Axis
extends Node

Abstract superclass for axes.


Nested Class Summary
static class Axis.Kind
          Axis kinds.
 
Constructor Summary
Axis(Axis.Kind kind)
          Constructs a new axis node.
 
Method Summary
 void apply(Visitor v)
          Applies the given Visitor to this node.
 Axis.Kind getKind()
          Gets the kind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis

public Axis(Axis.Kind kind)
Constructs a new axis node.

Parameters:
kind - kind of axis
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 Axis.Kind getKind()
Gets the kind.

Returns:
kind of axis


Copyright © 2005-2010 Anders Møller.