|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.vm.Ref
public final class Ref
Refs are the run-time representation of variables. They are simply a slot pointing to the value of the variable. Maybe they will be augmented with debugging info later on e.g. variable name.
| Field Summary | |
|---|---|
java.lang.Object |
value
The value of the variable. |
| Constructor Summary | |
|---|---|
Ref()
Constructs a new Ref with a default null
value. |
|
Ref(java.lang.Object v)
Constructs a new Ref with the specified value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getValue()
Returns the value associated with this reference. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Object value
| Constructor Detail |
|---|
public Ref()
Ref with a default null
value.
public Ref(java.lang.Object v)
Ref with the specified value.
v - the value for this reference| Method Detail |
|---|
public java.lang.Object getValue()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||