public abstract class AbstractConfigurationNode<P extends ParseContext<P>> extends java.lang.Object implements ConfigurationNode<P>
ConfigurationNode functionality.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractConfigurationNode.ChainingConfigurationHandle<P extends ParseContext<P>,Q extends ParseContext<Q>>
This ConfigurationHandle survives the replacement of this
ConfigurationNode which is what happens in order to save changes.
|
| Constructor and Description |
|---|
AbstractConfigurationNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeListener(ConfigurationNodeListener<P> listener)
Add a listener to listen to configuration changes.
|
ConfigurationNode<P>[] |
children() |
int |
indexOf(ConfigurationNode<?> child)
Get the index of a child RuntimeNode.
|
int |
insertChild(ConfigurationNode<P> child)
Insert a child in the parse Tree.
|
void |
removeChild(int index)
Remove a child.
|
void |
removeNodeListener(ConfigurationNodeListener<P> listener)
Remove a listener.
|
void |
setInsertPosition(int insertAt)
Set the position for the next inserted node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddText, getContextparsepublic void addNodeListener(ConfigurationNodeListener<P> listener)
ConfigurationNodeaddNodeListener in interface ConfigurationNode<P extends ParseContext<P>>listener - A listener.public void setInsertPosition(int insertAt)
ConfigurationNodesetInsertPosition in interface ConfigurationNode<P extends ParseContext<P>>insertAt - The position.public void removeNodeListener(ConfigurationNodeListener<P> listener)
ConfigurationNoderemoveNodeListener in interface ConfigurationNode<P extends ParseContext<P>>listener - A listener.public int insertChild(ConfigurationNode<P> child)
ConfigurationNodeinsertChild in interface ConfigurationNode<P extends ParseContext<P>>child - The child. Must not be null.public void removeChild(int index)
ConfigurationNoderemoveChild in interface ConfigurationNode<P extends ParseContext<P>>index - The index at which to remove the child.public int indexOf(ConfigurationNode<?> child)
ConfigurationNodeindexOf in interface ConfigurationNode<P extends ParseContext<P>>child - The child node whose index is to be determined.public ConfigurationNode<P>[] children()