Class InnerCNode

java.lang.Object
com.yahoo.config.codegen.CNode
com.yahoo.config.codegen.InnerCNode

public class InnerCNode extends CNode
Represents an inner node in the configuration tree.
Author:
gjoranv
  • Constructor Details

    • InnerCNode

      public InnerCNode(String name)
      Constructor for the root node.
  • Method Details

    • getChildren

      public CNode[] getChildren()
      Specified by:
      getChildren in class CNode
    • children

      public Map<String,CNode> children()
      Access to children for testing
      Returns:
      modifiable children map
    • getChild

      public CNode getChild(String name)
      Specified by:
      getChild in class CNode
    • setLeaf

      protected void setLeaf(String name, DefLine defLine, String comment) throws IllegalArgumentException
      Adds a child to this node with the given type, name and value. Necessary children on the path to the given leaf node will be added as well.
      Specified by:
      setLeaf in class CNode
      Parameters:
      name - the full name/path of the node to add.
      defLine - the parsed .def-file line to add.
      comment - comment extracted from the .def-file.
      Throws:
      IllegalArgumentException
    • needRestart

      public boolean needRestart()
      Specified by:
      needRestart in class CNode