|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.util.profile.AbstractProfileNode
wicket.util.profile.AbstractShellProfileNode
wicket.util.profile.ArrayShellProfileNode
A shell pseudo-node implementation for an array class.
| Nested Class Summary |
| Nested classes inherited from class wicket.util.profile.IObjectProfileNode |
IObjectProfileNode.INodeFilter, IObjectProfileNode.INodeVisitor |
| Field Summary | |
(package private) static IObjectProfileNode[] |
EMPTY_OBJECTPROFILENODE_ARRAY
|
(package private) int |
m_size
|
| Constructor Summary | |
(package private) |
ArrayShellProfileNode(IObjectProfileNode parent,
java.lang.Class type,
int length)
|
| Method Summary | |
IObjectProfileNode[] |
children()
Returns all children of this node. |
int |
compareTo(java.lang.Object obj)
|
java.lang.String |
dump()
Dumps this node into a flat-text format used by the ObjectProfileVisitors#newDefaultNodePrinter default node visitor. |
java.lang.String |
name()
Returns a human-readable name for this node, usually derived from the class field or array index that was used to reach the objectassociated with
this node. |
java.lang.Object |
object()
Returns the object associated with this node. |
IObjectProfileNode |
parent()
Returns the assigned ownership parent for this node. |
IObjectProfileNode[] |
path()
Returns the full path from the profile tree root to this node, in that direction. |
int |
pathlength()
A convenience method for retrieving this node's tree path length. |
int |
refcount()
Returns the reference count for the associated AbstractShellProfileNode.object(). |
IObjectProfileNode |
root()
A convenience method for retrieving the root node from any node in a profile tree. |
IObjectProfileNode |
shell()
Returns the shell pseudo-node for this node. |
int |
size()
Returns the full size (in bytes) assigned to this node in its profile tree. |
java.lang.String |
toString()
|
boolean |
traverse(IObjectProfileNode.INodeFilter filter,
IObjectProfileNode.INodeVisitor visitor)
A generic hook for traversing profile trees using filtersand
visitors. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static final IObjectProfileNode[] EMPTY_OBJECTPROFILENODE_ARRAY
int m_size
| Constructor Detail |
ArrayShellProfileNode(IObjectProfileNode parent,
java.lang.Class type,
int length)
| Method Detail |
public java.lang.String name()
IObjectProfileNodeobjectassociated with
this node.
IObjectProfileNode.name()public final java.lang.Object object()
IObjectProfileNode
IObjectProfileNode.object()public final IObjectProfileNode shell()
IObjectProfileNodeAnother way to describe this is that node.shell().size() is the minimum size an instance of node.object().getClass() can be (when all non-primitive instance fields are set to 'null').
The returned reference is also guaranteed to be present somewhere in the array
returned by IObjectProfileNode.children(). This data is kept in a separate node instance to
simplify tree visiting and node filtering.
IObjectProfileNode.shell()public final IObjectProfileNode[] children()
IObjectProfileNodesizeorder.
Note: the returned array also contains the shellpseudo-node.
IObjectProfileNode.children()public final int refcount()
IObjectProfileNodeIObjectProfileNode.object(). This is exactly
the number of unique references to this object in the object graph submitted to
ObjectProfiler.profile(java.lang.Object).
IObjectProfileNode.refcount()
public final boolean traverse(IObjectProfileNode.INodeFilter filter,
IObjectProfileNode.INodeVisitor visitor)
IObjectProfileNodefiltersand
visitors. See IObjectProfileNode.INodeFilter and
IObjectProfileNode.INodeVisitor for more details
filter - [null is equivalent to no filtering]visitor - [may not be null]
IObjectProfileNode.traverse(wicket.util.profile.IObjectProfileNode.INodeFilter, wicket.util.profile.IObjectProfileNode.INodeVisitor)public final int size()
IObjectProfileNodeshelland its non-primitive
non-null instance fields, computed as a closure over the
spanning tree produced by ObjectProfiler.profile(java.lang.Object).
size in interface IObjectProfileNodeIObjectProfileNode.size()public final IObjectProfileNode parent()
IObjectProfileNode
parent in interface IObjectProfileNodeIObjectProfileNode.parent()public final IObjectProfileNode[] path()
IObjectProfileNodeInvariant: node.root() == node.path()[0] Invariant: node.path()[node.path().length - 1] == node Invariant: node.path().length == node.pathlength()
path in interface IObjectProfileNodeIObjectProfileNode.path()public final IObjectProfileNode root()
IObjectProfileNodeInvariant: node.root() == node iff 'node' is the root of its profile tree Invariant: node.root() == node.path()[0]
root in interface IObjectProfileNodeIObjectProfileNode.root()public final int pathlength()
IObjectProfileNode
pathlength in interface IObjectProfileNodeIObjectProfileNode.pathlength()public final java.lang.String dump()
IObjectProfileNode
dump in interface IObjectProfileNodeIObjectProfileNode.dump()public final int compareTo(java.lang.Object obj)
compareTo in interface java.lang.ComparableComparable.compareTo(java.lang.Object)public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||