Interface VisitorInterface

All Known Implementing Classes:
ModificationVisitor

public interface VisitorInterface
VisitorInterface defines a common interface for various types of visitors that can process different kinds of statements in an assembler.
  • Method Details

    • visit

      void visit(Statement statement)
      Visits the given statement.
      Parameters:
      statement - the statement to be visited
    • visit

      void visit(BaseStatement statement)
      Visits the given statement.
      Parameters:
      statement - the statement to be visited
    • visit

      void visit(SicStatement statement)
      Visits the given statement.
      Parameters:
      statement - the statement to be visited
    • visit

      void visit(SingleStatement statement)
      Visits the given statement.
      Parameters:
      statement - the statement to be visited
    • visit

      void visit(ExtendedStatement statement)
      Visits the given statement.
      Parameters:
      statement - the statement to be visited
    • visit

      void visit(DirectiveStatement statement)
      Visits the given statement.
      Parameters:
      statement - the statement to be visited
    • visit

      void visit(RegisterStatement statement)
      Visits the given statement.
      Parameters:
      statement - the statement to be visited
    • getStrings

      Queue<String> getStrings()
      Returns a queue of strings generated by this visitor
      Returns:
      A queue of strings for anything that is needed