Class MIFrame

java.lang.Object
de.monticore.interpreter.frames.MIFrame

public class MIFrame extends Object
A calculation frame: It contains local variables (or global ones for the topmost frame).

E.g., a new frame is opened for the execution of a function defined in a model, s. a. MIValueFunctionOfModel

  • Field Details

    • parentFrame

      protected final Optional<MIFrame> parentFrame
    • booleans

      protected final boolean[] booleans
    • ints

      protected final int[] ints
    • doubles

      protected final double[] doubles
    • objects

      protected final MCValue[] objects
  • Constructor Details

  • Method Details

    • hasParentFrame

      public boolean hasParentFrame()
    • getParentFrame

      public MIFrame getParentFrame()
    • getParentFrame

      public MIFrame getParentFrame(int frameLevel)
    • getBoolean

      public boolean getBoolean(int idx)
    • setBoolean

      public void setBoolean(int idx, boolean value)
    • getInt

      public int getInt(int idx)
    • setInt

      public void setInt(int idx, int value)
    • getDouble

      public double getDouble(int idx)
    • setDouble

      public void setDouble(int idx, double value)
    • getObject

      public MCValue getObject(int idx)
    • setObject

      public void setObject(int idx, MCValue value)