Interface ICodeNode
- All Superinterfaces:
IActionableItem,IActionableNode,IItem,INode,IVisualItem,IVisualNode
A special interface for nodes holding
code items.
This interface has no equivalent for text or table documents.
- See Also:
-
Field Summary
Fields inherited from interface com.pnfsoftware.jeb.core.output.IActionableItem
HAS_RELATED_ITEMS, ITEM_TYPE_IDENTITY, ITEM_TYPE_MASK, ROLE_MASTER -
Method Summary
Modifier and TypeMethodDescriptionfindNodeByObject(ICodeItem target) Find the first child node that holds the provided code item.Get the children of this node.intGet the number of child nodes.Get the underlying code object help by the node.Get the parent code node.booleanDetermine whether this node has children.Methods inherited from interface com.pnfsoftware.jeb.core.output.IActionableItem
getItemFlags, getItemIdMethods inherited from interface com.pnfsoftware.jeb.core.output.tree.INode
getAdditionalLabels, getLabelMethods inherited from interface com.pnfsoftware.jeb.core.output.IVisualItem
getClassIdMethods inherited from interface com.pnfsoftware.jeb.core.output.tree.IVisualNode
getInitialExpansion
-
Method Details
-
hasChildren
boolean hasChildren()Determine whether this node has children.- Returns:
trueif at least one child is present
-
getCountOfChildren
int getCountOfChildren()Get the number of child nodes.- Returns:
- the child count
-
getChildren
Description copied from interface:INodeGet the children of this node.- Specified by:
getChildrenin interfaceINode- Returns:
- a list of children nodes, possibly empty
-
getParent
ICodeNode getParent()Get the parent code node.- Returns:
- the parent node
-
getObject
ICodeItem getObject()Get the underlying code object help by the node.- Returns:
- the wrapped code object
-
findNodeByObject
Find the first child node that holds the provided code item. The current node is also examined.- Parameters:
target- the target code item- Returns:
- reference to the first child node that wraps the target code item, null if none
-