Class VariableReference

java.lang.Object
  |
  +--VariableReference

public class VariableReference
extends java.lang.Object

The primary purpose of this class is to serve as an entry in VariableTable.


Field Summary
 java.lang.String name
          The name of the variable
 int value
          The value of the variable
 
Constructor Summary
VariableReference(java.lang.String s)
          Calls VariableReference(String, int) with s and 0.
VariableReference(java.lang.String s, int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of the variable

value

public int value
The value of the variable
Constructor Detail

VariableReference

public VariableReference(java.lang.String s)
Calls VariableReference(String, int) with s and 0. Thereby making the default value for a VariableReference 0.
Parameters:
s - name for the reference

VariableReference

public VariableReference(java.lang.String s,
                         int i)
Parameters:
s - name for the reference
i - value for the reference