.withConstructors(constructors) .withMethods(methods) .withProperties(properties) .withExtendsList(extendsList) .withImplementsList(implementsList)
.withImplementsList(interfaces) .withExtendsList(superClass) .withProperties(fields) .withMethods(methods) .build();
.withProperties(properties) .withMethods(nestedMethods) .withConstructors(constructors)
.withAnnotations() .withConstructors(constructors) .withProperties(properties) .withInnerTypes(nestedClazzes) .withMethods(methods)
public TypeDef apply(TypeDef item) { List<TypeParamDef> parameters = new ArrayList<TypeParamDef>(); for (TypeParamDef generic : item.getParameters()) { parameters.add(generic); } return new TypeDefBuilder(item) .withKind(Kind.CLASS) .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withName("Editable" + item.getName()) .withParameters(parameters) .withExtendsList(item.toInternalReference()) .withImplementsList(BuilderContextManager.getContext().getEditableInterface().toReference(SHALLOW_BUILDER.apply(item).toInternalReference())) .withInnerTypes() .withProperties() .withMethods() .withConstructors() .build(); } };
.withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withProperties(properties) .withMethods(nestedMethods) .withConstructors(constructors)
.withName(pojoName) .withAnnotations(annotationRefs) .withProperties(fields) .withConstructors(constructors) .withMethods(getters)
.withExtendsList(extendsList) .withImplementsList(implementsList) .withProperties(properties) .withMethods(methods) .withConstructors(constructors)
public TypeDefBuilder(TypeDef instance,Boolean validationEnabled){ this.fluent = this; this.withKind(instance.getKind()); this.withPackageName(instance.getPackageName()); this.withName(instance.getName()); this.withComments(instance.getComments()); this.withAnnotations(instance.getAnnotations()); this.withExtendsList(instance.getExtendsList()); this.withImplementsList(instance.getImplementsList()); this.withParameters(instance.getParameters()); this.withProperties(instance.getProperties()); this.withConstructors(instance.getConstructors()); this.withMethods(instance.getMethods()); this.withOuterType(instance.getOuterType()); this.withInnerTypes(instance.getInnerTypes()); this.withModifiers(instance.getModifiers()); this.withAttributes(instance.getAttributes()); this.validationEnabled = validationEnabled; }
.withName(inlineableName) .withImplementsList(inlineTypeRef) .withProperties() .withMethods() .withConstructors().build();
.withAnnotations() .withModifiers(TypeUtils.modifiersToInt(modifiers)) .withProperties(fields) .withConstructors(constructors) .withMethods(methods)