static class HierarchicalConfiguration.CloneVisitor extends ConfigurationNodeVisitorAdapter
Modifier and Type | Field and Description |
---|---|
private java.util.Stack |
copyStack
A stack with the actual object to be copied.
|
private ConfigurationNode |
result
Stores the result of the clone process.
|
Constructor and Description |
---|
HierarchicalConfiguration.CloneVisitor()
Creates a new instance of
CloneVisitor . |
Modifier and Type | Method and Description |
---|---|
ConfigurationNode |
getClone()
Returns the result of the clone process.
|
void |
visitAfterChildren(ConfigurationNode node)
Visits the specified node after its children have been processed.
|
void |
visitBeforeChildren(ConfigurationNode node)
Visits and copies the specified node.
|
terminate
private java.util.Stack copyStack
private ConfigurationNode result
public HierarchicalConfiguration.CloneVisitor()
CloneVisitor
.public void visitAfterChildren(ConfigurationNode node)
visitAfterChildren
in interface ConfigurationNodeVisitor
visitAfterChildren
in class ConfigurationNodeVisitorAdapter
node
- the nodepublic void visitBeforeChildren(ConfigurationNode node)
visitBeforeChildren
in interface ConfigurationNodeVisitor
visitBeforeChildren
in class ConfigurationNodeVisitorAdapter
node
- the nodepublic ConfigurationNode getClone()