dk.brics.xpath
Class Test

java.lang.Object
  extended by dk.brics.xpath.Node
      extended by dk.brics.xpath.Test
Direct Known Subclasses:
NameTest, NodeTest, TextTest

public abstract class Test
extends Node

Abstract superclass for test nodes.


Nested Class Summary
static class Test.Kind
          Test kinds.
 
Constructor Summary
Test(Test.Kind kind)
          Constructs a new test node.
 
Method Summary
 void apply(Visitor v)
          Applies the given Visitor to this node.
 Test.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

Test

public Test(Test.Kind kind)
Constructs a new test node.

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

Returns:
kind of test


Copyright © 2005-2010 Anders Møller.