Package de.monticore.interpreter.frames
Class MIFrame
java.lang.Object
de.monticore.interpreter.frames.MIFrame
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMIFrame(MIFrameLayout frameLayout) MIFrame(MIFrameLayout frameLayout, MIFrame parentFrame) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(int idx) doublegetDouble(int idx) intgetInt(int idx) getObject(int idx) getParentFrame(int frameLevel) booleanvoidsetBoolean(int idx, boolean value) voidsetDouble(int idx, double value) voidsetInt(int idx, int value) void
-
Field Details
-
parentFrame
-
booleans
protected final boolean[] booleans -
ints
protected final int[] ints -
doubles
protected final double[] doubles -
objects
-
-
Constructor Details
-
MIFrame
-
MIFrame
-
-
Method Details
-
hasParentFrame
public boolean hasParentFrame() -
getParentFrame
-
getParentFrame
-
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
-
setObject
-