Class 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 Detail

      • InnerNode

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

      • toString

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

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        protected java.util.Map<java.lang.String,​java.lang.Object> getChildren()
      • getChildrenWithVectorsFlattened

        protected java.util.Map<java.lang.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 java.util.Map<java.lang.String,​LeafNode<?>> getAllDescendantLeafNodes​(InnerNode node)