|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.util.profile.AbstractProfileNode
Abstract base class for all node implementations in this package.
| 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) |
AbstractProfileNode(IObjectProfileNode parent)
|
| Method Summary | |
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. |
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. |
IObjectProfileNode |
root()
A convenience method for retrieving the root node from any node in a profile tree. |
int |
size()
Returns the full size (in bytes) assigned to this node in its profile tree. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface wicket.util.profile.IObjectProfileNode |
children, name, object, refcount, shell, traverse |
| Field Detail |
static final IObjectProfileNode[] EMPTY_OBJECTPROFILENODE_ARRAY
int m_size
| Constructor Detail |
AbstractProfileNode(IObjectProfileNode parent)
| Method Detail |
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 | ||||||||||