Module Simula

Class ConnectionStatement.WhenPart

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

private final class ConnectionStatement.WhenPart extends ConnectionStatement.DoPart
Utility class to hold a when-part.
  • Field Details

    • classIdentifier

      String classIdentifier
      The WHEN class-identifier
    • classDeclaration

      ClassDeclaration classDeclaration
      The class declaration correspondig to the class identifier. Set during checking.
    • impossibleWhenPart

      boolean impossibleWhenPart
      Indicator to signal an impossible when-part. Set during checking if object-expression is not compatible with the WHEN class.
  • Constructor Details

    • WhenPart

      public WhenPart(String classIdentifier, ConnectionBlock connectionBlock, Statement statement)
      Create a new when-part.
      Parameters:
      classIdentifier - the WHEN class-identifier
      connectionBlock - The associated connection block
      statement - the statement after DO
  • Method Details