dk.brics.xpath
Class Predicate

java.lang.Object
  extended by dk.brics.xpath.Node
      extended by dk.brics.xpath.Predicate
Direct Known Subclasses:
ComplexPredicate, PathPredicate

public abstract class Predicate
extends Node

Abstract superclass for predicate nodes.


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

Predicate

public Predicate(Predicate.Kind kind)
Constructs a new predicate node.

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

Returns:
kind of predicate


Copyright © 2005-2010 Anders Møller.