Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,java.lang.Object> |
turtleDict |
MAIN_TURTLE_NAME
Constructor and Description |
---|
TurtleContext() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
java.lang.Object turtle) |
java.lang.Object |
value(java.lang.String name)
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 (this method may be superfluous).
|
public void add(java.lang.String name, java.lang.Object turtle)
public java.lang.Object value(java.lang.String name)
Context