Module Simula

Class SwitchDeclaration

All Implemented Interfaces:
Externalizable, Serializable

public final class SwitchDeclaration extends ProcedureDeclaration
Switch Declaration.
 
 Simula Standard: 5.3 Switch declaration
 
  switch-declaration
     = SWITCH switch-identifier := switch-list
     
     switch-list = designational-expression { , designational-expression }
 
Link to GitHub: Source File.
Author:
SIMULA Standards Group, Øystein Myhre Andersen
See Also:
  • Field Details

    • switchList

      Vector<Expression> switchList
      The switch list of label expressions.
  • Constructor Details

    • SwitchDeclaration

      public SwitchDeclaration(String ident)
      Create a new SwitchDeclaration.
      Parameters:
      ident - switch identifier
    • SwitchDeclaration

      public SwitchDeclaration()
      Default constructor used by Externalization.
  • Method Details