|
Groovy 1.7.9 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.ast.CodeVisitorSupport
org.codehaus.groovy.ast.ClassCodeVisitorSupport
org.codehaus.groovy.transform.powerassert.StatementReplacingVisitorSupport
public abstract class StatementReplacingVisitorSupport extends ClassCodeVisitorSupport
Adds the ability to replace statements.
Method Summary | |
---|---|
Statement
|
replace(Statement stat)
Visits the specified statement. |
protected void
|
replaceAll(List stats)
Visits the statements in the specified mutable list. |
protected void
|
replaceVisitedStatementWith(Statement other)
Replaces the currently visited statement with the specified statement. |
void
|
visitBlockStatement(BlockStatement stat)
|
void
|
visitCaseStatement(CaseStatement stat)
|
void
|
visitCatchStatement(CatchStatement stat)
|
void
|
visitDoWhileLoop(DoWhileStatement stat)
|
void
|
visitForLoop(ForStatement stat)
|
void
|
visitIfElse(IfStatement stat)
|
void
|
visitSwitch(SwitchStatement stat)
|
void
|
visitSynchronizedStatement(SynchronizedStatement stat)
|
void
|
visitTryCatchFinally(TryCatchStatement stat)
|
void
|
visitWhileLoop(WhileStatement stat)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public Statement replace(Statement stat)
@SuppressWarnings("unchecked") protected void replaceAll(List stats)
protected void replaceVisitedStatementWith(Statement other)
@Override public void visitBlockStatement(BlockStatement stat)
@Override public void visitCaseStatement(CaseStatement stat)
@Override public void visitCatchStatement(CatchStatement stat)
@Override public void visitDoWhileLoop(DoWhileStatement stat)
@Override public void visitForLoop(ForStatement stat)
@Override public void visitIfElse(IfStatement stat)
@Override public void visitSwitch(SwitchStatement stat)
@Override public void visitSynchronizedStatement(SynchronizedStatement stat)
@Override public void visitTryCatchFinally(TryCatchStatement stat)
@Override public void visitWhileLoop(WhileStatement stat)
Copyright © 2003-2010 The Codehaus. All rights reserved.