class AstChangeProxy
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
AstChangeProxy.ChangeListener
Interface used to notify client code about changes done by
AstChangeProxy.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<AstChangeProxy.ChangeListener> |
listeners |
Constructor and Description |
---|
AstChangeProxy() |
Modifier and Type | Method and Description |
---|---|
private void |
notifyOfRemoval(Node node)
Notifies listeners about a removal.
|
(package private) void |
registerListener(AstChangeProxy.ChangeListener listener)
Registers a change listener.
|
(package private) void |
removeChild(Node parent,
Node node)
Removes a node from the parent's child list.
|
(package private) void |
replaceWith(Node parent,
Node node,
java.util.List<Node> replacements)
Replaces a node with the provided list.
|
(package private) void |
replaceWith(Node parent,
Node node,
Node replacement)
Replaces a node from the parent's child list.
|
(package private) void |
unregisterListener(AstChangeProxy.ChangeListener listener)
Unregisters a change listener.
|
private final java.util.List<AstChangeProxy.ChangeListener> listeners
final void registerListener(AstChangeProxy.ChangeListener listener)
final void unregisterListener(AstChangeProxy.ChangeListener listener)
private void notifyOfRemoval(Node node)
final void removeChild(Node parent, Node node)
final void replaceWith(Node parent, Node node, Node replacement)