Package de.monticore.interpreter.util
Class InterpreterDataForBasicSymbols
java.lang.Object
de.monticore.interpreter.util.InterpreterData
de.monticore.interpreter.util.InterpreterDataForBasicSymbols
public class InterpreterDataForBasicSymbols
extends de.monticore.interpreter.util.InterpreterData
The InterpreterData for most cases;
It maps BasicSymbols to values, i.e.,
variables to values and functions to behavior.
-
Field Summary
FieldsFields inherited from class de.monticore.interpreter.util.InterpreterData
calculation, NOT_FULLY_IMPLEMENTED_MESSAGE, setter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddefineFunction(FunctionSymbol funcSym, de.monticore.values.MCValueFunction value) Links a behavior to a function symbolThe currentMIFrameLayoutForBasicSymbolss.Map<FunctionSymbol, de.monticore.values.MCValueFunction> Never(!) edit this map yourself.Supplier<de.monticore.values.MCValueFunction> getFunctionSupplier(FunctionSymbol funcSym) Returns the function behavior as a Supplier (to break recursion)voidreset()Methods inherited from class de.monticore.interpreter.util.InterpreterData
isPresentCalculation, popCalculation, popSetter, putCalculation, putSetter
-
Field Details
-
frameLayoutStack
-
-
Constructor Details
-
InterpreterDataForBasicSymbols
public InterpreterDataForBasicSymbols()
-
-
Method Details
-
getFrameLayoutStack
The currentMIFrameLayoutForBasicSymbolss.- Returns:
- the current frame layout.
-
getFunctions
Never(!) edit this map yourself.- Returns:
- the map of defined functions.
-
defineFunction
Links a behavior to a function symbol- Parameters:
funcSym- the function symbol to link behavior tovalue- the behavior
-
getFunctionSupplier
Returns the function behavior as a Supplier (to break recursion)- Parameters:
funcSym- the function symbol to get the behavior for- Returns:
- The Behavior linked to the function symbol
-
reset
public void reset()- Overrides:
resetin classde.monticore.interpreter.util.InterpreterData
-