Module Simula

Class ConnectionBlock

All Implemented Interfaces:
Externalizable, Serializable

public final class ConnectionBlock extends DeclarationScope implements Externalizable
Connection Block.

A Connection Block is a Statement within a Connection Statement. It acts as a block, whether it takes the form of a block or not. It further acts as if enclosed by a second fictitious block, called a "connection block". During the execution of a connection block the object X is said to be "connected".

See Simula Standard 4.8 Connection statement.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
See Also:
  • Field Details

    • statement

      private Statement statement
      The Connection Statement.
    • whenClassIdentifier

      private final String whenClassIdentifier
      When clause class identifier.
    • whenClassDeclaration

      private Declaration whenClassDeclaration
      When clause class Declaration. Set during checking.
    • inspectedVariable

      public final VariableExpression inspectedVariable
      The inspected variable.
    • classDeclaration

      public ClassDeclaration classDeclaration
      The when class identifier
  • Constructor Details

    • ConnectionBlock

      public ConnectionBlock(VariableExpression inspectedVariable, String whenClassIdentifier)
      Create a new ConnectionBlock.
      Parameters:
      inspectedVariable - the inspected variable
      whenClassIdentifier - the when class identifier
    • ConnectionBlock

      public ConnectionBlock()
      Create a new ConnectionBlock.
  • Method Details