Class ElementA

java.lang.Object
Behavioral.Visitor.Element
Behavioral.Visitor.ElementA

public class ElementA extends Element
Concrete implementation of an element, ElementA.
  • Constructor Details

    • ElementA

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

    • operationA

      public String operationA()
      Perform ElementA-specific behavior.
      Returns:
      A message describing the operation.
    • accept

      public void accept(Visitor visitor)
      Accept a Visitor.
      Specified by:
      accept in class Element
      Parameters:
      visitor - The Visitor to accept.