|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--com.bluemarsh.jswat.panel.BasicTreeNode | +--com.bluemarsh.jswat.panel.DbgVar | +--com.bluemarsh.jswat.panel.ObjectDbgVar
Class ObjectDbgVar represents an ObjectReference variable.
Field Summary | |
protected static javax.swing.ImageIcon |
icon
Our object icon. |
protected com.sun.jdi.ObjectReference |
objRef
Object reference 'this' represents. |
protected java.util.Map |
valuesMap
This will eventually be set to the map of values for it. |
Fields inherited from class com.bluemarsh.jswat.panel.DbgVar |
typeName, varName |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
protected |
ObjectDbgVar(java.lang.String name,
java.lang.String type,
com.sun.jdi.ObjectReference val)
Creates a new ObjectDbgVar from a name, type, and value. |
Method Summary | |
java.util.Enumeration |
children()
Redefined from parent to whip up a child list "just in time." |
protected void |
concoctChildren()
Adds children from 'this' object's fields. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
protected boolean |
formsLoop(com.sun.jdi.ObjectReference objref)
Test if the given object reference already exists in the parent heirarchy. |
javax.swing.tree.TreeNode |
getChildAt(int index)
Redefined from parent to whip up a child list "just in time." |
int |
getChildCount()
Redefined from parent to allow 'this' variable's fields to appear as child nodes. |
javax.swing.Icon |
getIcon(boolean isExpanded)
Redefined to return a suitable "object" icon. |
com.sun.jdi.Value |
getValue()
Retrieve the value this variable represents. |
protected java.util.Map |
getValuesMap()
Returns the values Map for 'this' (creates it if necessary). |
void |
refresh()
Refreshes the variable. |
java.lang.String |
toString()
Returns a string description of 'this' variable. |
Methods inherited from class com.bluemarsh.jswat.panel.DbgVar |
compareTo, create, create, create, createLoop |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static javax.swing.ImageIcon icon
protected com.sun.jdi.ObjectReference objRef
protected java.util.Map valuesMap
getValuesMap()
method.Constructor Detail |
protected ObjectDbgVar(java.lang.String name, java.lang.String type, com.sun.jdi.ObjectReference val)
name
- the name of the variable.type
- the type of the variable.val
- the value of the variable.Method Detail |
public java.util.Enumeration children()
children
in class javax.swing.tree.DefaultMutableTreeNode
protected void concoctChildren()
protected boolean formsLoop(com.sun.jdi.ObjectReference objref)
objref
- object reference to test.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in class javax.swing.tree.DefaultMutableTreeNode
index
- index of child.public int getChildCount()
getChildCount
in class javax.swing.tree.DefaultMutableTreeNode
public javax.swing.Icon getIcon(boolean isExpanded)
getIcon
in class BasicTreeNode
isExpanded
- true if tree node is expanded.public com.sun.jdi.Value getValue()
getValue
in class DbgVar
protected java.util.Map getValuesMap()
Map
with the fields and values
for 'this' (object) variable.public void refresh()
refresh
in class DbgVar
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |