Package Behavioral.Visitor
Class ObjectStructure
java.lang.Object
Behavioral.Visitor.ObjectStructure
ObjectStructure manages a collection of elements and processes them with visitors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccept a visitor for all elements in the structure.voidaddElement(Element element) Add an element to the structure.
-
Constructor Details
-
ObjectStructure
public ObjectStructure()Default constructor for ObjectStructure.
-
-
Method Details
-
addElement
Add an element to the structure.- Parameters:
element- The Element to add.
-
accept
Accept a visitor for all elements in the structure.- Parameters:
visitor- The Visitor to accept.
-