Class Environment
java.lang.Object
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. |
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 |
symbols
public java.util.HashMap<java.lang.String,Symbol> symbols
- Symbol map stores constant names and values.
Environment
public Environment()
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 resolvet
- 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