AstObserver

interface AstObserver(source)

An Observer for an AST element (either a Node or a NodeList).

Inheritors

Types

Link copied to clipboard
Type of change occurring on a List

Functions

Link copied to clipboard
abstract fun listChange(observedNode: NodeList<out Any>, type: AstObserver.ListChangeType, index: Int, nodeAddedOrRemoved: Node)
A list is changed
Link copied to clipboard
abstract fun listReplacement(observedNode: NodeList<out Any>, index: Int, oldNode: Node, newNode: Node)
Link copied to clipboard
abstract fun parentChange(observedNode: Node, previousParent: Node, newParent: Node)
The parent of a node is changed
Link copied to clipboard
abstract fun propertyChange(observedNode: Node, property: ObservableProperty, oldValue: Any, newValue: Any)
The value of a property is changed