Class SpockTransform

  • All Implemented Interfaces:
    org.codehaus.groovy.transform.ASTTransformation

    public class SpockTransform
    extends java.lang.Object
    implements org.codehaus.groovy.transform.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

      Constructors 
      Constructor Description
      SpockTransform()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visit​(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.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​(org.codehaus.groovy.ast.ASTNode[] nodes,
                          org.codehaus.groovy.control.SourceUnit sourceUnit)
        Specified by:
        visit in interface org.codehaus.groovy.transform.ASTTransformation