package asteroid.utils;

import org.codehaus.groovy.ast.MethodNode;
import org.codehaus.groovy.ast.stmt.BlockStatement;

public class NodeUtils {

    public BlockStatement getCodeBlock(final MethodNode methodNode) {
        return (BlockStatement) methodNode.getCode();
    }
}

@@ -18,16 +18,56 @@
 utils;%0A%0A
+import org.codehaus.groovy.ast.ASTNode;%0A
 import o
@@ -158,33 +158,514 @@
 t;%0A%0A
-public class NodeUtils %7B%0A
+/**%0A * General utility methods to deal with %7B@link ASTNode%7D instances%0A *%0A * @since 0.1.4%0A * @see asteroid.Utils%0A */%0Apublic class NodeUtils %7B%0A%0A    /**%0A     * Utility method to make your transformation code more compile%0A     * static compliant when getting a method node code block. Many%0A     * times you may want to deal with it as if it were a %7B@link%0A     * BlockStatement%7D.%0A     *%0A     * @param methodNode the method we want the code from%0A     * @return the method code as a %7B@link BlockStatement%7D%0A     */
 %0A   

Add javadoc to NodeUtils