|
|||||||||
| PREV CLASS NEXT CLASS | 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
Adds the ability to replace statements.
| Constructor Summary | |
|---|---|
StatementReplacingVisitorSupport()
|
|
| Method Summary | ||
|---|---|---|
Statement |
replace(Statement stat)
Visits the specified statement. |
|
protected
|
replaceAll(List<T> 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatementReplacingVisitorSupport()
| Method Detail |
|---|
public Statement replace(Statement stat)
protected <T extends Statement> void replaceAll(List<T> stats)
protected void replaceVisitedStatementWith(Statement other)
public void visitBlockStatement(BlockStatement stat)
visitBlockStatement in interface GroovyCodeVisitorvisitBlockStatement in class ClassCodeVisitorSupportpublic void visitForLoop(ForStatement stat)
visitForLoop in interface GroovyCodeVisitorvisitForLoop in class ClassCodeVisitorSupportpublic void visitWhileLoop(WhileStatement stat)
visitWhileLoop in interface GroovyCodeVisitorvisitWhileLoop in class ClassCodeVisitorSupportpublic void visitDoWhileLoop(DoWhileStatement stat)
visitDoWhileLoop in interface GroovyCodeVisitorvisitDoWhileLoop in class ClassCodeVisitorSupportpublic void visitIfElse(IfStatement stat)
visitIfElse in interface GroovyCodeVisitorvisitIfElse in class ClassCodeVisitorSupportpublic void visitTryCatchFinally(TryCatchStatement stat)
visitTryCatchFinally in interface GroovyCodeVisitorvisitTryCatchFinally in class ClassCodeVisitorSupportpublic void visitSwitch(SwitchStatement stat)
visitSwitch in interface GroovyCodeVisitorvisitSwitch in class ClassCodeVisitorSupportpublic void visitCaseStatement(CaseStatement stat)
visitCaseStatement in interface GroovyCodeVisitorvisitCaseStatement in class ClassCodeVisitorSupportpublic void visitSynchronizedStatement(SynchronizedStatement stat)
visitSynchronizedStatement in interface GroovyCodeVisitorvisitSynchronizedStatement in class ClassCodeVisitorSupportpublic void visitCatchStatement(CatchStatement stat)
visitCatchStatement in interface GroovyCodeVisitorvisitCatchStatement in class ClassCodeVisitorSupport
|
Copyright © 2003-2010 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||