Module Simula

Class ConnectionStatement.DoPart

java.lang.Object
simula.compiler.syntaxClass.statement.ConnectionStatement.DoPart
Direct Known Subclasses:
ConnectionStatement.WhenPart
Enclosing class:
ConnectionStatement

private class ConnectionStatement.DoPart extends Object
Utility class to hold the single do-part.
  • Field Details

    • connectionBlock

      final ConnectionBlock connectionBlock
      The associated connection block.
  • Constructor Details

    • DoPart

      private DoPart(ConnectionBlock connectionBlock, Statement statement)
      Create a new do-part.
      Parameters:
      connectionBlock - The associated connection block
      statement - the statement after DO
  • Method Details

    • doChecking

      public void doChecking()
      Perform semantic checking.
    • doCoding

      public void doCoding(boolean first)
      Perform Java coding.
      Parameters:
      first - true if coding the first when-part
    • printTree

      public void printTree(int indent)
      Utility print method.
      Parameters:
      indent - the indent
    • toString

      public String toString()
      Overrides:
      toString in class Object