|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsint.LocalVariable
public class LocalVariable
A LocalVariable is denoted by its position in the environment, in terms
of the number of levels "up" we have to go (number of nested environments),
the number of variables "in" we have to go (ordinal position of variable),
and whether the variable is a "rest" (or "dotted") variable.
Example of variables in (list x y z a b):
Field Summary | |
---|---|
int |
in
The ordinal position in the environment where the variable is. |
int |
up
The number of levels up in the parent chain where the variable is. |
Constructor Summary | |
---|---|
LocalVariable(int up,
int in,
Symbol name)
Create a new variable. |
Method Summary | |
---|---|
java.lang.String |
toString()
Use the name, up and in of the variable as its String representation so they distinguish themselves from a Global variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int up
public int in
Constructor Detail |
---|
public LocalVariable(int up, int in, Symbol name)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |