public class JModVisitor extends JVisitor
LVALUE_CONTEXT, UNMODIFIABLE_CONTEXT
Constructor and Description |
---|
JModVisitor() |
Modifier and Type | Method and Description |
---|---|
JNode |
accept(JNode node) |
JNode |
accept(JNode node,
boolean allowRemove) |
<T extends JNode> |
accept(List<T> list) |
<T extends JNode> |
acceptImmutable(List<T> list) |
JExpression |
acceptLvalue(JExpression expr) |
<T extends JNode> |
acceptWithInsertRemove(List<T> list) |
<T extends JNode> |
acceptWithInsertRemoveImmutable(List<T> list) |
protected static void |
checkReplacement(JNode origNode,
JNode newNode) |
boolean |
didChange() |
int |
getNumMods()
Returns the number of times the tree was changed since this visitor was
instantiated.
|
protected void |
madeChanges()
Call this method to indicate that a visitor has made a change to the tree.
|
protected void |
traverse(JNode node,
Context context) |
accept, accept, accept, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, translateException, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public <T extends JNode> List<T> acceptImmutable(List<T> list)
acceptImmutable
in class JVisitor
public JExpression acceptLvalue(JExpression expr)
acceptLvalue
in class JVisitor
public <T extends JNode> void acceptWithInsertRemove(List<T> list)
acceptWithInsertRemove
in class JVisitor
public <T extends JNode> List<T> acceptWithInsertRemoveImmutable(List<T> list)
acceptWithInsertRemoveImmutable
in class JVisitor
public int getNumMods()
protected void madeChanges()
Copyright © 2018. All rights reserved.