Package org.terracotta.context
Class AbstractTreeNode
java.lang.Object
org.terracotta.context.AbstractTreeNode
- All Implemented Interfaces:
TreeNode,WeakIdentityHashMap.Cleanable
- Direct Known Subclasses:
MutableTreeNode,RootNode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddChild(AbstractTreeNode child) (package private) abstract voidaddedParent(AbstractTreeNode child) voidclean()static StringdumpSubtree(int indent, TreeNode node) (package private) abstract Set<AbstractTreeNode>Set<? extends AbstractTreeNode>Returns the immediate children of this context.(package private) abstract Collection<ContextListener>getPath()Returns the unique rooting path of this context element.booleanremoveChild(AbstractTreeNode child) (package private) abstract voidremovedParent(AbstractTreeNode child) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.terracotta.context.TreeNode
getContext, getPaths
-
Field Details
-
children
-
-
Constructor Details
-
AbstractTreeNode
AbstractTreeNode()
-
-
Method Details
-
addChild
-
removeChild
-
getChildren
Description copied from interface:TreeNodeReturns the immediate children of this context.- Specified by:
getChildrenin interfaceTreeNode- Returns:
- the context children
-
getPath
Description copied from interface:TreeNodeReturns the unique rooting path of this context element.If this context element is not connected to a root in any ContextManager instance or is rooted via multiple distinct paths then an
IllegalStateExceptionwill be thrown. -
toTreeString
- Specified by:
toTreeStringin interfaceTreeNode
-
dumpSubtree
-
addedParent
-
removedParent
-
getAncestors
-
getListeners
-
clean
public void clean()- Specified by:
cleanin interfaceWeakIdentityHashMap.Cleanable
-