AbstractDeepBlockRewriter
, ExpressionReplacingVisitorSupport
public 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, visitThrowStatement
visitArgumentlistExpression, 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, visitVariableExpression
public 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.ClassCodeVisitorSupport
public void visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement stat)
visitForLoop
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public void visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement stat)
visitWhileLoop
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public void visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement stat)
visitDoWhileLoop
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public void visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement stat)
visitIfElse
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public void visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement stat)
visitTryCatchFinally
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public void visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement stat)
visitSwitch
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public void visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement stat)
visitCaseStatement
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public void visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement stat)
visitSynchronizedStatement
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public void visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement stat)
visitCatchStatement
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
protected org.codehaus.groovy.control.SourceUnit getSourceUnit()
getSourceUnit
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
Copyright © 2018. All rights reserved