Class Xyster_Container_Visitor_Abstract


Implements interfaces:

Abstract Visitor implementation

A generic traverse method is implemented, that accepts any object with a method named "accept", that takes a Xyster_Container_Visitor as an argument and and invokes it. Additionally it provides the checkTraversal() method, that throws an exception if currently no traversal is running.

  • copyright: Copyright (c) 2007-2008 Irrational Logic (
  • abstract:
  • license: New BSD License

Located in /Container/Visitor/Abstract.php (line 37)

Direct descendents
Class Description
Xyster_Container_Visitor_TraversalChecking Concrete implementation of visitor which simply checks traversals
Method Summary
void traverse (mixed $node)
void _checkTraversal ()
traverse (line 51)

Entry point for the Visitor traversal {@inherit}

  • throws: Xyster_Container_Visitor_Exception if node is invalid for traversal
  • access: public
void traverse (mixed $node)
  • mixed $node

Implementation of:
Entry point for the Visitor traversal

Redefined in descendants as:
_checkTraversal (line 77)

Checks the traversal flag

  • throws: Xyster_Container_Visitor_Exception if no traversal is active
  • access: protected
void _checkTraversal ()

Documentation generated on Mon, 19 May 2008 17:08:07 -0400 by phpDocumentor 1.4.2