.withModifiers(item.getModifiers()) .withParameters(parameters) .withConstructors(constructors) .withMethods(methods) .withProperties(properties)
.withProperties(properties) .withMethods(nestedMethods) .withConstructors(constructors) .build();
.withConstructors(constructors) .withProperties(properties) .withInnerTypes(nestedClazzes)
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(); } };
.withProperties(properties) .withMethods(nestedMethods) .withConstructors(constructors) .build();
.withAnnotations(annotationRefs) .withProperties(fields) .withConstructors(constructors) .withMethods(getters) .withImplementsList(implementsList)
.withAnnotations() .withModifiers(TypeUtils.modifiersToInt(modifiers)) .withConstructors(constructors) .withMethods(methods) .addToAttributes(BUILDABLE_ENABLED, true)
.withProperties(properties) .withMethods(methods) .withConstructors(constructors) .addToAttributes(TypeDef.ALSO_IMPORT, IMPORTS.apply(type)) .build());
.withProperties() .withMethods() .withConstructors().build(); .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withConstructors(constructors) .addToProperties(builderProperty, functionProperty) .addToMethods(inlineMethod)
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; }
.withModifiers(TypeUtils.modifiersToInt(modifiers)) .withProperties(fields) .withConstructors(constructors) .withMethods(methods) .build());