|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.ClassFile.HData
public abstract class HData
HData
is an interface that all views of a particular
class's static data should extend.
An HData
encapsulates a data view of class data in
roughly the same way that an HCode
encapsulates a
code view of method instructions.
A particular implementation of HData
correlates with
"memory layout" for a particular runtime implementation.
It is possible (and rather recommended) for a class to have *several*
HData
s associated with it, each of which encapsulates
a certain set of class data.
Constructor Summary | |
---|---|
HData()
|
Method Summary | |
---|---|
HData |
clone(HClass cls)
Clone this HData , possibly moving it to a different
HClass . |
Iterator |
getElementsI()
Return an Iterator over the component objects making up this data view. |
List |
getElementsL()
Return an ordered Collection (a List ) of
the component objects making up this data view. |
abstract HClass |
getHClass()
Return the HClass to which this HData
belongs. |
abstract HDataElement |
getRootElement()
Return the 'root' element of this data view. |
void |
print(PrintWriter pw)
Print a human-readable representation of this dataview using a null callback. |
abstract void |
print(PrintWriter pw,
HCode.PrintCallback callback)
Print a human-readable representation of this dataview using the specified callback. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HData()
Method Detail |
---|
public HData clone(HClass cls) throws CloneNotSupportedException
HData
, possibly moving it to a different
HClass
.
CloneNotSupportedException
- if it is not possible to
clone this HData
.public abstract HClass getHClass()
HClass
to which this HData
belongs. Returns null
if this HData
has global, rather than class-local, data structures.
public abstract HDataElement getRootElement()
null
if this notion
is not applicable.public Iterator getElementsI()
AT LEAST ONE OF getElementsI()
AND
getElementsL()
MUST BE IMPLEMENTED.
public List getElementsL()
Collection
(a List
) of
the component objects making up this data view. If there is a
'root' to the data view, it should be the first element in the
List.
AT LEAST ONE OF getElementsI()
AND
getElementsL()
MUST BE IMPLEMENTED.
public final void print(PrintWriter pw)
public abstract void print(PrintWriter pw, HCode.PrintCallback callback)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |