org.spockframework.compiler
Class SpockTransform
java.lang.Object
org.spockframework.compiler.SpockTransform
- All Implemented Interfaces:
- ASTTransformation
public class SpockTransform
- extends Object
- implements ASTTransformation
AST transformation for rewriting Spock specifications. Runs after phase
SEMANTIC_ANALYSIS, which means that the AST is semantically accurate
and already decorated with reflection information. On the flip side,
because types and variables have already been resolved,
program elements like import statements and variable definitions
can no longer be manipulated at will.
- Author:
- Peter Niederwieser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpockTransform
public SpockTransform()
visit
public void visit(ASTNode[] nodes,
SourceUnit sourceUnit)
- Specified by:
visit
in interface ASTTransformation
Copyright © 2010. All Rights Reserved.