dk.brics.xpath
Class Step

java.lang.Object
  extended by dk.brics.xpath.Node
      extended by dk.brics.xpath.Step

public class Step
extends Node

Step node.


Constructor Summary
Step(Axis axis, Test test)
          Constructs a new step node.
 
Method Summary
 void addPredicate(Predicate pred)
          Adds a predicate to this step.
 void apply(Visitor v)
          Applies the given Visitor to this node.
 Axis getAxis()
          Gets the axis node.
 List<Predicate> getPredicates()
          Gets the list of predicates.
 Test getTest()
          Gets the test node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Step

public Step(Axis axis,
            Test test)
Constructs a new step node.

Parameters:
axis - axis node
test - test node
Method Detail

addPredicate

public void addPredicate(Predicate pred)
Adds a predicate to this step.

Parameters:
pred - predicate node

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

getAxis

public Axis getAxis()
Gets the axis node.

Returns:
axis node

getPredicates

public List<Predicate> getPredicates()
Gets the list of predicates.

Returns:
list of predicate nodes

getTest

public Test getTest()
Gets the test node.

Returns:
test node


Copyright © 2005-2010 Anders Møller.