package asteroid.nodes;

import org.codehaus.groovy.ast.ClassNode;
import org.codehaus.groovy.ast.GenericsType;

/**
 * Builder to create instances of type {@link GenericsType}
 *
 * @since 0.1.0
 */
final public class GenericsTypeBuilder {

    private final GenericsType genericsType;

    private GenericsTypeBuilder(final ClassNode classNode) {
        this.genericsType = new GenericsType(classNode);
    }

    /**
     * @param classNode
     * @return an instance of type {@link GenericsTypeBuilder}
     */
    public static GenericsTypeBuilder generics(final ClassNode classNode) {
        return new GenericsTypeBuilder(classNode);
    }

    /**
     * @return an instance of type {@link GenericsType}
     */
    public GenericsType build() {
        return this.genericsType;
    }
}

@@ -281,16 +281,171 @@
 sType;%0A%0A
+    /**%0A     * Sets the type of the generic type%0A     *%0A     * @param classNode Sets the %7B@link ClassNode%7D of the generic type%0A     * @since 0.1.0%0A     */%0A
     priv
@@ -576,31 +576,126 @@
 %0A     * 
-@param classNod
+Sets the type of the generic type%0A     *%0A     * @param classNode Sets the %7B@link ClassNode%7D of the generic typ
 e%0A     *
@@ -751,16 +751,36 @@
 uilder%7D%0A
+     * @since 0.1.0%0A
      */%0A
@@ -917,24 +917,74 @@
  %7D%0A%0A    /**%0A
+     * Returns the configured generic type%0A     *%0A
      * @retu
@@ -1027,16 +1027,36 @@
 csType%7D%0A
+     * @since 0.1.0%0A
      */%0A

Add javadoc completion to GenericsTypeBuilder