Class ObjectStructure

java.lang.Object
Behavioral.Visitor.ObjectStructure

public class ObjectStructure extends Object
ObjectStructure manages a collection of elements and processes them with visitors.
  • Constructor Details

    • ObjectStructure

      public ObjectStructure()
      Default constructor for ObjectStructure.
  • Method Details

    • addElement

      public void addElement(Element element)
      Add an element to the structure.
      Parameters:
      element - The Element to add.
    • accept

      public void accept(Visitor visitor)
      Accept a visitor for all elements in the structure.
      Parameters:
      visitor - The Visitor to accept.