abstract class InvocationsCallback extends NodeTraversal.AbstractPostOrderCallback
call getprop ... string ...and invokes a method defined by subclasses for processing these invocations.
Constructor and Description |
---|
InvocationsCallback() |
Modifier and Type | Method and Description |
---|---|
void |
visit(NodeTraversal t,
Node n,
Node parent)
Visits a node in postorder (after its children have been visited).
|
(package private) abstract void |
visit(NodeTraversal t,
Node callNode,
Node parent,
java.lang.String callName)
Called for each callnode that is a method invocation.
|
shouldTraverse
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).
abstract void visit(NodeTraversal t, Node callNode, Node parent, java.lang.String callName)
callNode
- node of type callparent
- parent of callNodecallName
- name of method invoked by first child of call