jsint
Class DynamicEnvironment

java.lang.Object
  extended byjsint.DynamicEnvironment
All Implemented Interfaces:
java.io.Serializable

public class DynamicEnvironment
extends java.lang.Object
implements java.io.Serializable

A Map from Symbol to DynamicVariables.

See Also:
Serialized Form

Field Summary
protected  java.util.Hashtable rep
           
static boolean showJavaDotWarnings
          This is here for historical reasons.
 
Constructor Summary
DynamicEnvironment()
           
DynamicEnvironment(DynamicEnvironment baseEnv)
           
 
Method Summary
static Pair getBindings(java.lang.Object x)
          This is used by the (environment-bindings) primitive.
 java.lang.Object getValue(Symbol s)
           
 void importBindings(DynamicEnvironment env, java.lang.String prefix)
           
 void importBindings(DynamicEnvironment env, java.lang.String prefix, boolean importMacros)
           
 void importBindings(DynamicEnvironment env, java.lang.String prefix, boolean importMacros, Symbol[] procnames)
           
 DynamicVariable intern(Symbol x)
           
 boolean isDefined(Symbol s)
           
 void lockDown()
           
 java.lang.Object setValue(Symbol s, java.lang.Object newval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

showJavaDotWarnings

public static boolean showJavaDotWarnings
This is here for historical reasons.


rep

protected java.util.Hashtable rep
Constructor Detail

DynamicEnvironment

public DynamicEnvironment()

DynamicEnvironment

public DynamicEnvironment(DynamicEnvironment baseEnv)
Method Detail

lockDown

public void lockDown()

getBindings

public static Pair getBindings(java.lang.Object x)
This is used by the (environment-bindings) primitive.


importBindings

public void importBindings(DynamicEnvironment env,
                           java.lang.String prefix)

importBindings

public void importBindings(DynamicEnvironment env,
                           java.lang.String prefix,
                           boolean importMacros)

importBindings

public void importBindings(DynamicEnvironment env,
                           java.lang.String prefix,
                           boolean importMacros,
                           Symbol[] procnames)

getValue

public java.lang.Object getValue(Symbol s)

isDefined

public boolean isDefined(Symbol s)

setValue

public java.lang.Object setValue(Symbol s,
                                 java.lang.Object newval)

intern

public DynamicVariable intern(Symbol x)