protected void printClass() { if (typeElement.getTypeParameters().isEmpty()) { iprint("/** */%n"); } else { iprint("/**%n"); for (TypeParameterElement typeParam : typeElement.getTypeParameters()) { iprint(" * @param <%1$s> %1$s%n", typeParam.getSimpleName()); } iprint(" */%n"); } printGenerated(); iprint( "public final class %1$s implements %2$s<%3$s, %4$s> {%n", simpleMetaTypeName, DomainType.class.getName(), TypeMirrorUtil.boxIfPrimitive(domainMeta.getValueType(), env), typeName); print("%n"); indent(); printValidateVersionStaticInitializer(); printFields(); printConstructors(); printMethods(); unindent(); unindent(); iprint("}%n"); }
protected void generate() { iprint( "private static class Wrapper%1$s extends %2$s implements %3$s<%4$s, %5$s> {%n", typeParamDecl, domainMeta.getWrapperType().getTypeName(), DomainWrapper.class.getName(), TypeMirrorUtil.boxIfPrimitive(domainMeta.getValueType(), env), typeName); print("%n"); indent(); printWrapperField(); printWrapperConstructor(); printWrapperDoGetMethod(); pirntWrapperDoSetMethod(); printWrapperGetDomainMethod(); unindent(); iprint("}%n"); }