org.gjt.lindfors.pattern
Interface Visitor


public interface Visitor

Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which it operates.

For more detailed documentation, refer to the Visitor Design Pattern .
See also: Visitor pattern in Design Patterns: Elements of Reusable Object-Oriented Software .

Since:
JDK1.2
Version:
$Revision: 1.2 $
Author:
Juha Lindfors

Method Summary
 Command getCallbackObject()
          Returns the callback method abstracted as a Command object.
 

Method Detail

getCallbackObject

Command getCallbackObject()
Returns the callback method abstracted as a Command object. This method is used by the elements in the object structure that accept visitors. By calling the execute() method of command object , they will invoke the correct callback method in the concrete visitor implementation.

See Also:
Command