Class InitialEnvironment
java.lang.Object
InitialEnvironment
- All Implemented Interfaces:
- Environment
public class InitialEnvironment
- extends java.lang.Object
- implements Environment
This is the outermost environment, containing predefined names. The
names +, -, *, /, %, =, !=, <, >, <=, and >= are
associated with corresponding functions.
Method Summary |
java.lang.Object |
get(java.lang.String name)
Return the value corresponding to the specified name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitialEnvironment
public InitialEnvironment()
get
public java.lang.Object get(java.lang.String name)
- Description copied from interface:
Environment
- Return the value corresponding to the specified name.
- Specified by:
get
in interface Environment
- Parameters:
name
- the name to look up
- Returns:
- the value associated with the name