Class Environment

java.lang.Object
  extended by Environment

public class Environment
extends java.lang.Object

Assembly environment class, stores assembly symbol information.


Field Summary
 java.util.HashMap<java.lang.String,Symbol> symbols
          Symbol map stores constant names and values.
 
Constructor Summary
Environment()
           
 
Method Summary
 java.lang.Integer resolve(java.lang.Object o)
          Resolve object within environment context.
 java.lang.Integer resolve(java.lang.Object o, Symbol.Type t)
          Resolve object within environment context and specified type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

symbols

public java.util.HashMap<java.lang.String,Symbol> symbols
Symbol map stores constant names and values.

Constructor Detail

Environment

public Environment()
Method Detail

resolve

public java.lang.Integer resolve(java.lang.Object o)
Resolve object within environment context.

Parameters:
o - object to resolve
Returns:
object integer value if resolved, null otherwise.

resolve

public java.lang.Integer resolve(java.lang.Object o,
                                 Symbol.Type t)
Resolve object within environment context and specified type.

Parameters:
o - object to resolve
t - object type
Returns:
object integer value if resolved and type matches, null otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object