org.spockframework.compiler
Class SpockTransform

java.lang.Object
  extended by 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

Constructor Summary
SpockTransform()
           
 
Method Summary
 void visit(ASTNode[] nodes, SourceUnit sourceUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpockTransform

public SpockTransform()
Method Detail

visit

public void visit(ASTNode[] nodes,
                  SourceUnit sourceUnit)
Specified by:
visit in interface ASTTransformation


Copyright © 2010. All Rights Reserved.