com.iotabits.revisitor
Interface iVisitable

All Known Implementing Classes:
BasicVisitable

public interface iVisitable

This is the starter interface for the pattern. A visitable object simply implements an accept() method that takes an iReflectiveVisitor object and dispatches itself to a method in the revisitor - i.e. one that expects the type of the implementing class.

In the reflective idiom we just call revisitor.dispatchToVisit().


Method Summary
 void accept(iReflectiveVisitor visitor)
          Dispatches this object to the revisitor.
 

Method Detail

accept

public void accept(iReflectiveVisitor visitor)
            throws java.lang.Exception
Dispatches this object to the revisitor.

In the reflective idiom we just call revisitor.dispatchToVisit().

Parameters:
visitor - The object doing the visiting.
Throws:
java.lang.Exception - When there is not method found.