Class ClassHolder.LeafNode

  • Enclosing class:
    ClassHolder

    protected static class ClassHolder.LeafNode
    extends ClassHolder.DataNode
    Information for a leaf node of the data structure tree.
    • Constructor Detail

      • LeafNode

        public LeafNode​(Item item,
                        ClassHolder.ParentNode parent)
        Constructor. This automatically links to the containing node.
        Parameters:
        item -
        parent -
    • Method Detail

      • isInterior

        public boolean isInterior()
        Check if this is an interior node (always false).
        Specified by:
        isInterior in class ClassHolder.DataNode
        Returns:
        false for value component
      • describe

        public java.lang.String describe​(int depth)
        Generate the node description.
        Specified by:
        describe in class ClassHolder.DataNode
        Parameters:
        depth - current nesting depth
        Returns:
        description