|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeNode
A context tree node associated with a Java object.
A TreeNode allows access to both the context information associated
with a Java object and to information regarding the contexts position within
the overall context tree or trees.
| Method Summary | |
|---|---|
Set<? extends TreeNode> |
getChildren()
Returns the immediate children of this context. |
ContextElement |
getContext()
Returns the context information associated with this node. |
List<? extends TreeNode> |
getPath()
Returns the unique rooting path of this context element. |
Collection<List<? extends TreeNode>> |
getPaths()
Returns the complete set of rooting paths for this context element. |
String |
toTreeString()
|
| Methods inherited from interface org.terracotta.context.WeakIdentityHashMap.Cleanable |
|---|
clean |
| Method Detail |
|---|
Set<? extends TreeNode> getChildren()
List<? extends TreeNode> getPath()
throws IllegalStateException
If this context element is not connected to a root in any ContextManager
instance or is rooted via multiple distinct paths then an
IllegalStateException will be thrown.
IllegalStateException - if the context is not uniquely rootedCollection<List<? extends TreeNode>> getPaths()
ContextElement getContext()
String toTreeString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||