class TransformTestHelper extends Object
This TestHarness exists so that a global transform can be run without using the Jar services mechanism, which requires building a jar. To use this simply create an instance of TransformTestHelper with an ASTTransformation and CompilePhase, then invoke parse(File) or parse(String). This test harness is not exactly the same as executing a global transformation but can greatly aide in debugging and testing a transform. You should still test your global transformation when packaged as a jar service before releasing it.
Constructor and description |
---|
TransformTestHelper
(ASTTransformation transform, CompilePhase phase) Creates the test helper. |
Creates the test helper.
transform
- the transform to run when compiling the file laterphase
- the phase to run the transform inCopyright © 2003-2024 The Apache Software Foundation. All rights reserved.