|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivationRecord
public class ActivationRecord
An ActivationRecord is an environment in which one new name is bound to some value, while all other names retain the values they have in some pre-existing outer environment, accessed via a nesting link.
Constructor Summary | |
---|---|
ActivationRecord(java.lang.String name,
java.lang.Object value,
Environment nestingLink)
Creates an activation record that binds a name to an ordinary value. |
|
ActivationRecord(java.lang.String functionName,
java.lang.String parameterName,
Expression functionBody,
Environment nestingLink)
Creates an activation record that binds a name to a (possibly recursive) function. |
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 |
Constructor Detail |
---|
public ActivationRecord(java.lang.String name, java.lang.Object value, Environment nestingLink)
name
- the name being boundvalue
- the value the name is bound tonestingLink
- the environment being augmentedpublic ActivationRecord(java.lang.String functionName, java.lang.String parameterName, Expression functionBody, Environment nestingLink)
functionName
- the name being boundparameterName
- the function's parameterfunctionBody
- the function's bodynestingLink
- the environment being augmentedMethod Detail |
---|
public java.lang.Object get(java.lang.String name)
Environment
get
in interface Environment
name
- the name to look up
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |