JavaGenerationParameters params = getJavaGenerationParameters(); String qualifiedClassName = TypeGenerator.qualifiedClassName(params, type); String className = TypeGenerator.className(type); String sepArgs = buildOptionalSeparatorArguments(type); String formalSeps = buildFormalSeparatorArguments(type); String actualSeps = buildActualSeparatorArgumentList(type, false); String elementTypeName = TypeGenerator.qualifiedClassName(params, type.getElementType());
JavaGenerationParameters params = getJavaGenerationParameters(); String qualifiedClassName = TypeGenerator.qualifiedClassName(params, type); String className = TypeGenerator.className(type); String formalSeps = buildFormalSeparatorArguments(type); String actualSeps = buildActualSeparatorArgumentList(type, false); String elementTypeName = TypeGenerator.qualifiedClassName(params, type.getElementType());
    private void genAppendSeparatedLists(SeparatedListType type, String methodName) {        JavaGenerationParameters params = getJavaGenerationParameters();        String qualifiedClassName = TypeGenerator.qualifiedClassName(params, type);        String className = TypeGenerator.className(type);        String sepArgs = buildOptionalSeparatorArguments(type);        String formalSeps = buildFormalSeparatorArguments(type);        String actualSeps = buildActualSeparatorArgumentList(type, false);        String elementTypeName =            TypeGenerator.qualifiedClassName(params, type.getElementType());        if (formalSeps.length() > 0) {            formalSeps += ", ";            actualSeps += ", ";        }        println(            "  public "                + qualifiedClassName                + " append"                + className                + "("                + qualifiedClassName                + " list, "                + formalSeps                + elementTypeName                + " elem) {");        println("    return concat(list, " + actualSeps + methodName + "(elem));");        println("  }");    }