AbstractDeepBlockRewriter, ExpressionReplacingVisitorSupportpublic abstract class StatementReplacingVisitorSupport
extends org.codehaus.groovy.ast.ClassCodeVisitorSupport
| Constructor | Description |
|---|---|
StatementReplacingVisitorSupport() |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.codehaus.groovy.control.SourceUnit |
getSourceUnit() |
|
org.codehaus.groovy.ast.stmt.Statement |
replace(org.codehaus.groovy.ast.stmt.Statement stat) |
Visits the specified statement.
|
protected <T extends org.codehaus.groovy.ast.stmt.Statement> |
replaceAll(java.util.List<T> stats) |
Visits the statements in the specified mutable list.
|
protected void |
replaceVisitedStatementWith(org.codehaus.groovy.ast.stmt.Statement other) |
Replaces the currently visited statement with the specified statement.
|
void |
visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement stat) |
|
void |
visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement stat) |
|
void |
visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement stat) |
|
void |
visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement stat) |
|
void |
visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement stat) |
|
void |
visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement stat) |
|
void |
visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement stat) |
|
void |
visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement stat) |
|
void |
visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement stat) |
|
void |
visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement stat) |
addError, visitAnnotations, visitAssertStatement, visitBreakStatement, visitClass, visitClassCodeContainer, visitConstructor, visitConstructorOrMethod, visitContinueStatement, visitDeclarationExpression, visitExpressionStatement, visitField, visitImports, visitMethod, visitObjectInitializerStatements, visitPackage, visitProperty, visitReturnStatement, visitStatement, visitThrowStatementvisitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpressionpublic org.codehaus.groovy.ast.stmt.Statement replace(org.codehaus.groovy.ast.stmt.Statement stat)
protected <T extends org.codehaus.groovy.ast.stmt.Statement> void replaceAll(java.util.List<T> stats)
protected void replaceVisitedStatementWith(org.codehaus.groovy.ast.stmt.Statement other)
public void visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement stat)
visitBlockStatement in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement stat)
visitForLoop in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement stat)
visitWhileLoop in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement stat)
visitDoWhileLoop in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement stat)
visitIfElse in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement stat)
visitTryCatchFinally in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement stat)
visitSwitch in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement stat)
visitCaseStatement in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement stat)
visitSynchronizedStatement in class org.codehaus.groovy.ast.ClassCodeVisitorSupportpublic void visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement stat)
visitCatchStatement in class org.codehaus.groovy.ast.ClassCodeVisitorSupportprotected org.codehaus.groovy.control.SourceUnit getSourceUnit()
getSourceUnit in class org.codehaus.groovy.ast.ClassCodeVisitorSupportCopyright © 2018. All rights reserved