harpoon.Backend.Runtime1
Class Data

java.lang.Object
  extended by harpoon.ClassFile.HData
      extended by harpoon.IR.Tree.Data
          extended by harpoon.Backend.Runtime1.Data
Direct Known Subclasses:
DataClaz, DataClazTable, DataConfigChecker, DataGC, DataInitializers, DataInterfaceList, DataJavaMain, DataReflection1, DataReflection2, DataReflectionMemberList, DataStaticFields, DataStrings, PreallocData

public class Data
extends Data

Data is an abstract superclass with handy useful methods for the harpoon.IR.Tree.Data subclasses in Runtime1.

Version:
$Id: Data.java,v 1.3 2002/04/10 03:03:20 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Nested Class Summary
 
Nested classes/interfaces inherited from class harpoon.IR.Tree.Data
Data.TreeFactory
 
Field Summary
protected  HDataElement root
           
 
Fields inherited from class harpoon.IR.Tree.Data
desc, frame, modCount, tf
 
Constructor Summary
protected Data(String desc, HClass hc, Frame f)
          Creates a Data.
 
Method Summary
protected  DATUM _DATUM(Exp e)
           
protected  DATUM _DATUM(Label l)
           
protected  Stm emitUtf8String(String str)
           
 HClass getHClass()
          Return the HClass to which this HData belongs.
 HDataElement getRootElement()
          Return the 'root' element of this data view.
 int hashCode()
           
static byte[] toUTF8(String str)
          Make a java-style UTF-8 encoded byte array for a string.
 
Methods inherited from class harpoon.IR.Tree.Data
getDesc, print
 
Methods inherited from class harpoon.ClassFile.HData
clone, getElementsI, getElementsL, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected HDataElement root
Constructor Detail

Data

protected Data(String desc,
               HClass hc,
               Frame f)
Creates a Data.

Method Detail

getHClass

public HClass getHClass()
Description copied from class: HData
Return the HClass to which this HData belongs. Returns null if this HData has global, rather than class-local, data structures.

Specified by:
getHClass in class HData

getRootElement

public HDataElement getRootElement()
Description copied from class: HData
Return the 'root' element of this data view.

Specified by:
getRootElement in class HData
Returns:
root of the data view, or null if this notion is not applicable.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

_DATUM

protected DATUM _DATUM(Exp e)

_DATUM

protected DATUM _DATUM(Label l)

toUTF8

public static byte[] toUTF8(String str)
Make a java-style UTF-8 encoded byte array for a string.


emitUtf8String

protected Stm emitUtf8String(String str)