public class ElementA
extends Element
Concrete implementation of an element, ElementA.
-
Constructor Summary
Constructors
Default constructor for ElementA.
-
Method Summary
void
Perform ElementA-specific behavior.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElementA
public ElementA()
Default constructor for ElementA.
-
Method Details
-
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.