private static void createTextGroup(String apiName){
        ClassWriter classWriter = generateClass(TEXT_GROUP, JAVA_OBJECT, new String[] {ELEMENT}, "<T::" + elementTypeDesc + "Z::" + elementTypeDesc + ">" + JAVA_OBJECT_DESC + "L" + elementType + "<TT;TZ;>;", ACC_PUBLIC + ACC_ABSTRACT + ACC_INTERFACE, apiName);

        textGroupMethod(classWriter, "text", "visitText");
        textGroupMethod(classWriter, "comment", "visitComment");

        writeClassToFile(TEXT_GROUP, classWriter, apiName);
    }
private static void createTextGroup ( String apiName ) { ClassWriter classWriter = generateClass ( TEXT_GROUP , JAVA_OBJECT , new String [ ] { ELEMENT } , "<T::" + elementTypeDesc + "Z::" + elementTypeDesc + ">" + JAVA_OBJECT_DESC + "L" + elementType + "<TT;TZ;>;" , ACC_PUBLIC + ACC_ABSTRACT + ACC_INTERFACE , apiName ) ; textGroupMethod ( classWriter , "text" , "visitText" ) ; textGroupMethod ( classWriter , "comment" , "visitComment" ) ; writeClassToFile ( TEXT_GROUP , classWriter , apiName ) ; }
Creates the TextGroup interface.
Methods:
<R> T text(R text)
<R> T comment(R comment)
@param apiName The name of the generated fluent interface.