Top Description Inners Fields Constructors Methods
sun.jvm.hotspot.ui.tree

public Class MetadataTreeNodeAdapter

extends FieldTreeNodeAdapter
Class Inheritance
Imports
java.io.*, sun.jvm.hotspot.oops.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.runtime.*

An adapter class which allows oops to be displayed in a tree via the SimpleTreeNode interface. FIXME: must attach this to some sort of policy object which determines how to display names and whether VM fields should be shown. (Must also fix oop visitation mechanism in oops package.)

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
MetadataTreeNodeAdapter.Counter

Should be applied to one metadata at a time, then have the number of fields fetched.

pack-priv class
MetadataTreeNodeAdapter.Fetcher

Creates a new SimpleTreeNode for the given field.

pack-priv static class
MetadataTreeNodeAdapter.Finder

Finds the index of the given FieldIdentifier.

Field Summary

Modifier and TypeField and Description
private Metadata

Constructor Summary

AccessConstructor and Description
public
MetadataTreeNodeAdapter(Metadata metadata, FieldIdentifier id)

The metadata may be null (for metadata fields of metadatas which are null); the FieldIdentifier may also be null (for the root node).

public
MetadataTreeNodeAdapter(Metadata metadata, FieldIdentifier id, boolean treeTableMode)

The metadata may be null (for metadata fields of metadatas which are null); the FieldIdentifier may also be null (for the root node).

Method Summary

Modifier and TypeMethod and Description
public SimpleTreeNode
public int
public int
public Metadata
public String
getValue()

Implements sun.jvm.hotspot.ui.tree.SimpleTreeNode.getValue.

TreeTable support: get value of the node

public boolean
Inherited from sun.jvm.hotspot.ui.tree.FieldTreeNodeAdapter:
getIDgetNamegetTreeTableModetoString

Field Detail

metadataback to summary
private Metadata metadata

Constructor Detail

MetadataTreeNodeAdapterback to summary
public MetadataTreeNodeAdapter(Metadata metadata, FieldIdentifier id)

The metadata may be null (for metadata fields of metadatas which are null); the FieldIdentifier may also be null (for the root node). treeTableMode defaults to false.

MetadataTreeNodeAdapterback to summary
public MetadataTreeNodeAdapter(Metadata metadata, FieldIdentifier id, boolean treeTableMode)

The metadata may be null (for metadata fields of metadatas which are null); the FieldIdentifier may also be null (for the root node).

Method Detail

getChildback to summary
public SimpleTreeNode getChild(int index)

Implements sun.jvm.hotspot.ui.tree.SimpleTreeNode.getChild.

getChildCountback to summary
public int getChildCount()

Implements sun.jvm.hotspot.ui.tree.SimpleTreeNode.getChildCount.

getIndexOfChildback to summary
public int getIndexOfChild(SimpleTreeNode child)

Implements sun.jvm.hotspot.ui.tree.SimpleTreeNode.getIndexOfChild.

getMetadataback to summary
public Metadata getMetadata()
getValueback to summary
public String getValue()

Implements sun.jvm.hotspot.ui.tree.SimpleTreeNode.getValue.

Doc from sun.jvm.hotspot.ui.tree.SimpleTreeNode.getValue.

TreeTable support: get value of the node

isLeafback to summary
public boolean isLeaf()

Implements sun.jvm.hotspot.ui.tree.SimpleTreeNode.isLeaf.

sun.jvm.hotspot.ui.tree back to summary

pack-priv Class MetadataTreeNodeAdapter.Counter

extends DefaultMetadataVisitor
Class Inheritance

Should be applied to one metadata at a time, then have the number of fields fetched. FIXME: want this to distinguish between VM and non-VM fields.

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public int
public void
Inherited from sun.jvm.hotspot.oops.DefaultMetadataVisitor:
doOopepiloguegetObjsetObj

Field Detail

numFieldsback to summary
private int numFields

Constructor Detail

Counterback to summary
pack-priv Counter()

Method Detail

doBooleanback to summary
public void doBoolean(BooleanField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doBoolean.

Implements sun.jvm.hotspot.oops.FieldVisitor.doBoolean.

doByteback to summary
public void doByte(ByteField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doByte.

Implements sun.jvm.hotspot.oops.FieldVisitor.doByte.

doCharback to summary
public void doChar(CharField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doChar.

Implements sun.jvm.hotspot.oops.FieldVisitor.doChar.

doCIntback to summary
public void doCInt(CIntField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doCInt.

Implements sun.jvm.hotspot.oops.FieldVisitor.doCInt.

doDoubleback to summary
public void doDouble(DoubleField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doDouble.

Implements sun.jvm.hotspot.oops.FieldVisitor.doDouble.

doFloatback to summary
public void doFloat(FloatField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doFloat.

Implements sun.jvm.hotspot.oops.FieldVisitor.doFloat.

doIntback to summary
public void doInt(IntField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doInt.

Implements sun.jvm.hotspot.oops.FieldVisitor.doInt.

doLongback to summary
public void doLong(LongField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doLong.

Implements sun.jvm.hotspot.oops.FieldVisitor.doLong.

doMetadataback to summary
public void doMetadata(MetadataField field, boolean isVMField)

Implements abstract sun.jvm.hotspot.oops.DefaultMetadataVisitor.doMetadata.

Implements sun.jvm.hotspot.oops.FieldVisitor.doMetadata.

doOopback to summary
public void doOop(OopField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doOop.

Implements sun.jvm.hotspot.oops.FieldVisitor.doOop.

doShortback to summary
public void doShort(ShortField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doShort.

Implements sun.jvm.hotspot.oops.FieldVisitor.doShort.

getNumFieldsback to summary
public int getNumFields()
prologueback to summary
public void prologue()

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.prologue.

Implements sun.jvm.hotspot.oops.MetadataVisitor.prologue.

sun.jvm.hotspot.ui.tree back to summary

pack-priv Class MetadataTreeNodeAdapter.Fetcher

extends DefaultMetadataVisitor
Class Inheritance

Creates a new SimpleTreeNode for the given field. FIXME: want this to distinguish between VM and non-VM fields.

Field Summary

Modifier and TypeField and Description
private SimpleTreeNode
private int
private int

Constructor Summary

AccessConstructor and Description
public
Fetcher(int index)

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public SimpleTreeNode
public void
Inherited from sun.jvm.hotspot.oops.DefaultMetadataVisitor:
doOopepiloguegetObjsetObj

Field Detail

childback to summary
private SimpleTreeNode child
curFieldback to summary
private int curField
indexback to summary
private int index

Constructor Detail

Fetcherback to summary
public Fetcher(int index)

Method Detail

doBooleanback to summary
public void doBoolean(BooleanField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doBoolean.

Implements sun.jvm.hotspot.oops.FieldVisitor.doBoolean.

doByteback to summary
public void doByte(ByteField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doByte.

Implements sun.jvm.hotspot.oops.FieldVisitor.doByte.

doCharback to summary
public void doChar(CharField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doChar.

Implements sun.jvm.hotspot.oops.FieldVisitor.doChar.

doCIntback to summary
public void doCInt(CIntField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doCInt.

Implements sun.jvm.hotspot.oops.FieldVisitor.doCInt.

doDoubleback to summary
public void doDouble(DoubleField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doDouble.

Implements sun.jvm.hotspot.oops.FieldVisitor.doDouble.

doFloatback to summary
public void doFloat(FloatField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doFloat.

Implements sun.jvm.hotspot.oops.FieldVisitor.doFloat.

doIntback to summary
public void doInt(IntField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doInt.

Implements sun.jvm.hotspot.oops.FieldVisitor.doInt.

doLongback to summary
public void doLong(LongField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doLong.

Implements sun.jvm.hotspot.oops.FieldVisitor.doLong.

doMetadataback to summary
public void doMetadata(MetadataField field, boolean isVMField)

Implements abstract sun.jvm.hotspot.oops.DefaultMetadataVisitor.doMetadata.

Implements sun.jvm.hotspot.oops.FieldVisitor.doMetadata.

doOopback to summary
public void doOop(OopField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doOop.

Implements sun.jvm.hotspot.oops.FieldVisitor.doOop.

doShortback to summary
public void doShort(ShortField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doShort.

Implements sun.jvm.hotspot.oops.FieldVisitor.doShort.

getChildback to summary
public SimpleTreeNode getChild()
prologueback to summary
public void prologue()

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.prologue.

Implements sun.jvm.hotspot.oops.MetadataVisitor.prologue.

sun.jvm.hotspot.ui.tree back to summary

pack-priv Class MetadataTreeNodeAdapter.Finder

extends DefaultMetadataVisitor
Class Inheritance

Finds the index of the given FieldIdentifier.

Field Summary

Modifier and TypeField and Description
private int
private FieldIdentifier
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public int
getIndex()

Returns -1 if not found

public void
Inherited from sun.jvm.hotspot.oops.DefaultMetadataVisitor:
doOopepiloguegetObjsetObj

Field Detail

curFieldback to summary
private int curField
idback to summary
private FieldIdentifier id
indexback to summary
private int index

Constructor Detail

Finderback to summary
public Finder(FieldIdentifier id)

Method Detail

doBooleanback to summary
public void doBoolean(BooleanField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doBoolean.

Implements sun.jvm.hotspot.oops.FieldVisitor.doBoolean.

doByteback to summary
public void doByte(ByteField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doByte.

Implements sun.jvm.hotspot.oops.FieldVisitor.doByte.

doCharback to summary
public void doChar(CharField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doChar.

Implements sun.jvm.hotspot.oops.FieldVisitor.doChar.

doCIntback to summary
public void doCInt(CIntField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doCInt.

Implements sun.jvm.hotspot.oops.FieldVisitor.doCInt.

doDoubleback to summary
public void doDouble(DoubleField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doDouble.

Implements sun.jvm.hotspot.oops.FieldVisitor.doDouble.

doFloatback to summary
public void doFloat(FloatField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doFloat.

Implements sun.jvm.hotspot.oops.FieldVisitor.doFloat.

doIntback to summary
public void doInt(IntField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doInt.

Implements sun.jvm.hotspot.oops.FieldVisitor.doInt.

doLongback to summary
public void doLong(LongField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doLong.

Implements sun.jvm.hotspot.oops.FieldVisitor.doLong.

doMetadataback to summary
public void doMetadata(MetadataField field, boolean isVMField)

Implements abstract sun.jvm.hotspot.oops.DefaultMetadataVisitor.doMetadata.

Implements sun.jvm.hotspot.oops.FieldVisitor.doMetadata.

doOopback to summary
public void doOop(OopField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doOop.

Implements sun.jvm.hotspot.oops.FieldVisitor.doOop.

doShortback to summary
public void doShort(ShortField field, boolean isVMField)

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.doShort.

Implements sun.jvm.hotspot.oops.FieldVisitor.doShort.

getIndexback to summary
public int getIndex()

Returns -1 if not found

prologueback to summary
public void prologue()

Overrides sun.jvm.hotspot.oops.DefaultMetadataVisitor.prologue.

Implements sun.jvm.hotspot.oops.MetadataVisitor.prologue.