Interface Visitor

All Known Implementing Classes:
SimpleVisitor

public interface Visitor
The Visitor interface.
Author:
José Paulo Leal jpleal@fc.up.pt
Implementation Note:
abstract component of the design pattern with the same name.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visit(Character character)
    Do a visit to a character in the composite structure
    void
    visit(Item item)
    Do a visit to an item in the composite structure
    void
    visit(Passage passage)
    Do a visit to a passage in the composite structure
    void
    visit(Place place)
    Do a visit to a place in the composite structure
  • Method Details

    • visit

      void visit(Character character)
      Do a visit to a character in the composite structure
      Parameters:
      character - to be visited
    • visit

      void visit(Place place)
      Do a visit to a place in the composite structure
      Parameters:
      place - to be visited
    • visit

      void visit(Item item)
      Do a visit to an item in the composite structure
      Parameters:
      item - to be visited
    • visit

      void visit(Passage passage)
      Do a visit to a passage in the composite structure
      Parameters:
      passage - to be visited