Package com.yahoo.config.codegen
Class InnerCNode
java.lang.Object
com.yahoo.config.codegen.CNode
com.yahoo.config.codegen.InnerCNode
Represents an inner node in the configuration tree.
- Author:
- gjoranv
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.yahoo.config.codegen.CNode
checkMyName, getComment, getCommentBlock, getFullName, getMd5, getName, getNamespace, getPackage, getParent, getVersion, toString
-
Constructor Details
-
InnerCNode
Constructor for the root node.
-
-
Method Details
-
getChildren
- Specified by:
getChildrenin classCNode
-
children
Access to children for testing- Returns:
- modifiable children map
-
getChild
-
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:
setLeafin classCNode- 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:
needRestartin classCNode
-