Class InnerNode

java.lang.Object
com.yahoo.config.Node
com.yahoo.config.InnerNode
Direct Known Subclasses:
ConfigInstance

public abstract class InnerNode extends Node
Superclass for all inner nodes in a ConfigInstance.

This class cannot have non-private members because such members will interfere with the members in the generated subclass.

Author:
gjoranv
  • Constructor Details

    • InnerNode

      public InnerNode()
      Creates a new InnerNode.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • postInitialize

      public void postInitialize(String configId)
      Overrides Node.postInitialize(String). Perform post initialization on this node's children.
      Overrides:
      postInitialize in class Node
      Parameters:
      configId - The config id of this instance.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getChildren

      protected final Map<String,Object> getChildren()
    • getChildrenWithVectorsFlattened

      protected final Map<String,Node> getChildrenWithVectorsFlattened()
      Returns a flat map of this node's direct children, including all NodeVectors' elements. Keys are the node name, including index for vector elements, e.g. 'arr[0]'.
    • getAllDescendantLeafNodes

      protected static Map<String,LeafNode<?>> getAllDescendantLeafNodes(InnerNode node)