Module Simula

Class RTS_RTObject.RTS_CHARACTER_ARRAY

java.lang.Object
simula.runtime.RTS_ARRAY
simula.runtime.RTS_RTObject.RTS_CHARACTER_ARRAY
Enclosing class:
RTS_RTObject

public final class RTS_RTObject.RTS_CHARACTER_ARRAY extends RTS_ARRAY
This class represent a Simula character array.
  • Field Details

    • ELTS

      private final char[] ELTS
      The elements in this RTS_CHARACTER_ARRAY
  • Constructor Details

    • RTS_CHARACTER_ARRAY

      public RTS_CHARACTER_ARRAY(RTS_RTObject.RTS_BOUNDS... BOUNDS)
      Create a character array with the given bounds.
      Parameters:
      BOUNDS - the array bounds
  • Method Details

    • putELEMENT

      public char putELEMENT(int ix, char val)
      This method will put a value into ELTS[ix]
      Parameters:
      ix - the index of ELTS
      val - the value to put
      Returns:
      the value stored
    • getELEMENT

      public char getELEMENT(int... x)
      This method will return a value from ELTS[x]
      Parameters:
      x - the index of ELTS
      Returns:
      the value loaded
    • COPY

      Abstract method redefined for all subclass <type>_ARRAY
      Specified by:
      COPY in class RTS_ARRAY
      Returns:
      a copy of this RTS_CHARACTER_ARRAY