Groovy 2.2.1

org.codehaus.groovy.tools.ast
[Groovy] Class TransformTestHelper

java.lang.Object
  org.codehaus.groovy.tools.ast.TransformTestHelper

class TransformTestHelper
extends Object

Constructor Summary
TransformTestHelper(ASTTransformation transform, CompilePhase phase)

Creates the test helper.

 
Method Summary
Class parse(File input)

Compiles the File into a Class applying the transform specified in the constructor.

Class parse(String input)

Compiles the String into a Class applying the transform specified in the constructor.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

TransformTestHelper

TransformTestHelper(ASTTransformation transform, CompilePhase phase)
Creates the test helper.
Parameters:
transform - the transform to run when compiling the file later
phase - the phase to run the transform in


 
Method Detail

parse

Class parse(File input)
Compiles the File into a Class applying the transform specified in the constructor.
input:
input must be a groovy source file


parse

Class parse(String input)
Compiles the String into a Class applying the transform specified in the constructor.
input:
input must be a valid groovy source string


 

Copyright © 2003-2013 The Codehaus. All rights reserved.