Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
contextMap |
Constructor and Description |
---|
SLogoTurtle()
SlogoTurtle Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(java.lang.String objectName,
java.lang.Object myObject) |
java.lang.Object |
value(java.lang.String keyName)
If there are local/global variables, a variable might have a different
value depending on the Context, so Contexts should support determining
the value of an identifier.
|
public void addObject(java.lang.String objectName, java.lang.Object myObject)
objectName
- is the name of the object we are adding to the mapmyObject
- is the object we are adding to the mappublic java.lang.Object value(java.lang.String keyName)
Context