private class CheckEventfulObjectDisposal.ComputeEventizeTraversal extends NodeTraversal.AbstractPostOrderCallback implements NodeTraversal.ScopedCallback
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.Stack<java.lang.Boolean> |
isConstructorStack |
(package private) java.util.Stack<java.lang.Boolean> |
isDisposalStack |
| Constructor and Description |
|---|
ComputeEventizeTraversal() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addEventize(JSType thisType,
JSType thatType) |
private void |
addEventizeClass(java.lang.String className,
JSType thatType) |
private boolean |
collectorFilterType(JSType type) |
void |
enterScope(NodeTraversal t)
Called immediately after entering a new scope.
|
void |
exitScope(NodeTraversal t)
Called immediately before exiting a scope.
|
private java.lang.Boolean |
inConstructorScope() |
private java.lang.Boolean |
inDisposalScope() |
private void |
isGoogEventsUnlisten(Node n) |
void |
visit(NodeTraversal t,
Node n,
Node parent)
Visits a node in postorder (after its children have been visited).
|
private void |
visitCall(NodeTraversal t,
Node n) |
shouldTraverseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldTraversejava.util.Stack<java.lang.Boolean> isConstructorStack
java.util.Stack<java.lang.Boolean> isDisposalStack
private java.lang.Boolean inConstructorScope()
private java.lang.Boolean inDisposalScope()
private boolean collectorFilterType(JSType type)
private void addEventizeClass(java.lang.String className,
JSType thatType)
public void enterScope(NodeTraversal t)
NodeTraversal.ScopedCallbackenterScope in interface NodeTraversal.ScopedCallbackpublic void exitScope(NodeTraversal t)
NodeTraversal.ScopedCallbackexitScope in interface NodeTraversal.ScopedCallbackprivate void isGoogEventsUnlisten(Node n)
private void visitCall(NodeTraversal t, Node n)
public void visit(NodeTraversal t, Node n, Node parent)
NodeTraversal.CallbackVisits a node in postorder (after its children have been visited).
A node is visited only if all its parents should be traversed
(NodeTraversal.Callback.shouldTraverse(NodeTraversal, Node, Node)).
Implementations can have side effects (e.g. modifying the parse tree).
visit in interface NodeTraversal.Callback