|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
Method Summary | |
Command |
getCallbackObject()
Returns the callback method abstracted as a Command object. |
Method Detail |
public Command getCallbackObject()
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.
Command
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |