public class SpecRewriter extends AbstractSpecVisitor implements IRewriteResources
| Constructor and Description |
|---|
SpecRewriter(AstNodeCache nodeCache,
SourceLookup lookup,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
org.codehaus.groovy.ast.expr.VariableExpression |
captureOldValue(org.codehaus.groovy.ast.expr.Expression oldValue) |
void |
defineValueRecorder(java.util.List<org.codehaus.groovy.ast.stmt.Statement> stats) |
AstNodeCache |
getAstNodeCache() |
Block |
getCurrentBlock() |
Method |
getCurrentMethod() |
Spec |
getCurrentSpec() |
ErrorReporter |
getErrorReporter() |
org.codehaus.groovy.ast.expr.VariableExpression |
getMockControllerRef() |
java.lang.String |
getSourceText(org.codehaus.groovy.ast.ASTNode node) |
void |
visitAnyBlock(Block block) |
void |
visitCleanupBlock(CleanupBlock block) |
void |
visitExpectBlock(ExpectBlock block) |
void |
visitField(Field field) |
void |
visitMethod(Method method) |
void |
visitMethodAgain(Method method) |
void |
visitSpec(Spec spec) |
void |
visitSpecAgain(Spec spec) |
void |
visitThenBlock(ThenBlock block) |
visitAnonymousBlock, visitSetupBlock, visitWhenBlock, visitWhereBlockpublic SpecRewriter(AstNodeCache nodeCache, SourceLookup lookup, ErrorReporter errorReporter)
public void visitSpec(Spec spec)
visitSpec in interface ISpecVisitorvisitSpec in class AbstractSpecVisitorpublic void visitSpecAgain(Spec spec) throws java.lang.Exception
visitSpecAgain in interface ISpecVisitorvisitSpecAgain in class AbstractSpecVisitorjava.lang.Exceptionpublic void visitField(Field field)
visitField in interface ISpecVisitorvisitField in class AbstractSpecVisitorpublic void visitMethod(Method method)
visitMethod in interface ISpecVisitorvisitMethod in class AbstractSpecVisitorpublic void visitMethodAgain(Method method)
visitMethodAgain in interface ISpecVisitorvisitMethodAgain in class AbstractSpecVisitorpublic void visitAnyBlock(Block block)
visitAnyBlock in interface ISpecVisitorvisitAnyBlock in class AbstractSpecVisitorpublic void visitExpectBlock(ExpectBlock block)
visitExpectBlock in interface ISpecVisitorvisitExpectBlock in class AbstractSpecVisitorpublic void visitThenBlock(ThenBlock block)
visitThenBlock in interface ISpecVisitorvisitThenBlock in class AbstractSpecVisitorpublic void visitCleanupBlock(CleanupBlock block)
visitCleanupBlock in interface ISpecVisitorvisitCleanupBlock in class AbstractSpecVisitorpublic Spec getCurrentSpec()
getCurrentSpec in interface IRewriteResourcespublic Method getCurrentMethod()
getCurrentMethod in interface IRewriteResourcespublic Block getCurrentBlock()
getCurrentBlock in interface IRewriteResourcespublic void defineValueRecorder(java.util.List<org.codehaus.groovy.ast.stmt.Statement> stats)
defineValueRecorder in interface IRewriteResourcespublic org.codehaus.groovy.ast.expr.VariableExpression captureOldValue(org.codehaus.groovy.ast.expr.Expression oldValue)
captureOldValue in interface IRewriteResourcespublic org.codehaus.groovy.ast.expr.VariableExpression getMockControllerRef()
getMockControllerRef in interface IRewriteResourcespublic AstNodeCache getAstNodeCache()
getAstNodeCache in interface IRewriteResourcespublic java.lang.String getSourceText(org.codehaus.groovy.ast.ASTNode node)
getSourceText in interface IRewriteResourcespublic ErrorReporter getErrorReporter()
getErrorReporter in interface IRewriteResourcesCopyright © 2013. All rights reserved