Class IntSymbol

java.lang.Object
  extended by AbstractSymbol
      extended by IntSymbol

 class IntSymbol
extends AbstractSymbol

String table entry for integer constants

See Also:
AbstractSymbol

Field Summary
 
Fields inherited from class AbstractSymbol
index, str
 
Constructor Summary
IntSymbol(java.lang.String str, int len, int index)
           
 
Method Summary
 java.lang.Object clone()
          Returns a copy of this symbol
 void codeDef(int intclasstag, java.io.PrintStream s)
          Generates code for the integer constant definition.
 void codeRef(java.io.PrintStream s)
          Emits a reference to this integer constant.
 
Methods inherited from class AbstractSymbol
equals, equalsIndex, equalString, getString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntSymbol

public IntSymbol(java.lang.String str,
                 int len,
                 int index)
Method Detail

codeDef

public void codeDef(int intclasstag,
                    java.io.PrintStream s)
Generates code for the integer constant definition. This method is incomplete; you get to finish it up in programming assignment 5.

Parameters:
intclasstag - the class tag for string object
s - the output stream

codeRef

public void codeRef(java.io.PrintStream s)
Emits a reference to this integer constant.

Parameters:
s - the output stream

clone

public java.lang.Object clone()
Returns a copy of this symbol

Specified by:
clone in class AbstractSymbol