private class ExtractPrototypeMemberDeclarations.GatherExtractionInfo extends NodeTraversal.AbstractShallowCallback
Modifier and Type | Field and Description |
---|---|
private java.util.List<ExtractPrototypeMemberDeclarations.ExtractionInstance> |
instances |
private int |
totalDelta |
Modifier | Constructor and Description |
---|---|
private |
GatherExtractionInfo() |
Modifier and Type | Method and Description |
---|---|
private boolean |
shouldExtract() |
void |
visit(NodeTraversal t,
Node n,
Node parent)
Visits a node in postorder (after its children have been visited).
|
shouldTraverse
private java.util.List<ExtractPrototypeMemberDeclarations.ExtractionInstance> instances
private int totalDelta
public void visit(NodeTraversal t, Node n, Node parent)
NodeTraversal.Callback
Visits 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).
private boolean shouldExtract()