public class WatcherInfoBase extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WatcherInfoBase.WatcherType |
Modifier and Type | Field and Description |
---|---|
protected List<BindingInfo> |
bindingInfoList
all of the bindings that wish to listen to this watcher
|
protected Map<Object,WatcherInfoBase> |
children |
protected int |
index
Id of the watcher (index in the _watchers array)
|
boolean |
isRoot
Is this watcher at top of the watcher chain?
|
protected WatcherInfoBase.WatcherType |
type |
Constructor and Description |
---|
WatcherInfoBase(Collection<ICompilerProblem> problems,
IASNode sourceNode,
List<String> eventNames) |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(BindingInfo bindingInfo) |
int |
assignIndex(int i) |
protected String |
dump(String leadingSpace)
For debug only!
|
List<BindingInfo> |
getBindings()
get a list of the BindingInfo objects that correspond to the Binding objects that will
be associated with the Watcher
|
Set<Map.Entry<Object,WatcherInfoBase>> |
getChildren() |
List<String> |
getEventNames() |
int |
getIndex() |
protected Map<Object,WatcherInfoBase> |
getOrCreateChildren() |
WatcherInfoBase.WatcherType |
getType() |
String |
toString()
For debug only!
|
protected List<BindingInfo> bindingInfoList
protected int index
protected WatcherInfoBase.WatcherType type
protected Map<Object,WatcherInfoBase> children
public boolean isRoot
public WatcherInfoBase(Collection<ICompilerProblem> problems, IASNode sourceNode, List<String> eventNames)
problems
- - problems may be returned here in some casessourceNode
- - the tree node that the watcher will be watchingeventNames
- - the events that are fired when the watched item changespublic WatcherInfoBase.WatcherType getType()
public void addBinding(BindingInfo bindingInfo)
public int assignIndex(int i)
i
- is the index to be assigned to "this"public int getIndex()
public List<BindingInfo> getBindings()
public Set<Map.Entry<Object,WatcherInfoBase>> getChildren()
protected Map<Object,WatcherInfoBase> getOrCreateChildren()
Copyright © 2016 The Apache Software Foundation. All rights reserved.