Module Simula

Enum Class Declaration.Kind

java.lang.Object
java.lang.Enum<Declaration.Kind>
simula.compiler.syntaxClass.declaration.Declaration.Kind
All Implemented Interfaces:
Serializable, Comparable<Declaration.Kind>, Constable
Enclosing class:
Declaration

public static enum Declaration.Kind extends Enum<Declaration.Kind>
The declarationKind
  • Enum Constant Details

    • StandardClass

      public static final Declaration.Kind StandardClass
      Standard Class.
    • ConnectionBlock

      public static final Declaration.Kind ConnectionBlock
      Connection Block.
    • CompoundStatement

      public static final Declaration.Kind CompoundStatement
      Compound Statement.
    • SubBlock

      public static final Declaration.Kind SubBlock
      Subblock.
    • Procedure

      public static final Declaration.Kind Procedure
      Normal Simula Procedure implemented as a Java Class
    • MemberMethod

      public static final Declaration.Kind MemberMethod
      Procedure coded as a Java Member Method.
    • ContextFreeMethod

      public static final Declaration.Kind ContextFreeMethod
      Procedure treated as a Java Static Method.
    • Class

      public static final Declaration.Kind Class
      Class.
    • PrefixedBlock

      public static final Declaration.Kind PrefixedBlock
      Prefixed Block.
    • SimulaProgram

      public static final Declaration.Kind SimulaProgram
      Simula Program.
    • ArrayDeclaration

      public static final Declaration.Kind ArrayDeclaration
      Array Declaration.
    • VirtualSpecification

      public static final Declaration.Kind VirtualSpecification
      Virtual Specification.
    • VirtualMatch

      public static final Declaration.Kind VirtualMatch
      Virtual Match.
    • Parameter

      public static final Declaration.Kind Parameter
      Parameter.
    • LabelDeclaration

      public static final Declaration.Kind LabelDeclaration
      Label Declaration
    • SimpleVariableDeclaration

      public static final Declaration.Kind SimpleVariableDeclaration
      Simple Variable Declaration.
    • ExternalDeclaration

      public static final Declaration.Kind ExternalDeclaration
      External Declaration.
  • Constructor Details

    • Kind

      private Kind()
  • Method Details

    • values

      public static Declaration.Kind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Declaration.Kind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null