com.hp.hpl.sparta.xpath
Interface Visitor


public interface Visitor

Something that crawls over the parse tree. This is a participant in the Visitor Pattern [Gamma et al, #331]. You pass a visitor to the XPath.accept method which then passes it to all the nodes on the parse tree, each one of which calls back one of the visitor's visit methods.

Copyright (C) 2002 Hewlett-Packard Company. This file is part of Sparta, an XML Parser, DOM, and XPath library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Version:
$Date: 2002/09/18 05:29:45 $ $Revision: 1.2 $
Author:
Eamonn O'Brien-Strain

Method Summary
 void visit(AllElementTest a)
           
 void visit(AttrEqualsExpr a)
           
 void visit(AttrExistsExpr a)
           
 void visit(AttrNotEqualsExpr a)
           
 void visit(AttrTest a)
           
 void visit(ElementTest a)
           
 void visit(ParentNodeTest a)
           
 void visit(PositionEqualsExpr a)
           
 void visit(TextTest a)
           
 void visit(ThisNodeTest a)
           
 void visit(TrueExpr a)
           
 

Method Detail

visit

public void visit(AllElementTest a)

visit

public void visit(ThisNodeTest a)

visit

public void visit(ParentNodeTest a)
           throws XPathException

visit

public void visit(ElementTest a)

visit

public void visit(AttrTest a)

visit

public void visit(TextTest a)

visit

public void visit(TrueExpr a)

visit

public void visit(AttrExistsExpr a)
           throws XPathException

visit

public void visit(AttrEqualsExpr a)
           throws XPathException

visit

public void visit(AttrNotEqualsExpr a)
           throws XPathException

visit

public void visit(PositionEqualsExpr a)
           throws XPathException