.withComments(comments) .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withName(getterName) .withComments() .withName(builderName) .build()); .withComments() .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments() .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments() .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments() .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC))
.withComments(comments) .withAnnotations(annotations) .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments() .withName("build" + property.getNameCapitalized()) .build()); .withComments() .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments() .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments() .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments() .withAnnotations() .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments() .withAnnotations(annotations) .withModifiers(TypeUtils.modifiersToInt(Modifier.PUBLIC)) .withComments()
public MethodBuilder(Method instance,Boolean validationEnabled){ this.fluent = this; this.withComments(instance.getComments()); this.withAnnotations(instance.getAnnotations()); this.withParameters(instance.getParameters()); this.withName(instance.getName()); this.withReturnType(instance.getReturnType()); this.withArguments(instance.getArguments()); this.withVarArgPreferred(instance.isVarArgPreferred()); this.withExceptions(instance.getExceptions()); this.withBlock(instance.getBlock()); this.withModifiers(instance.getModifiers()); this.withAttributes(instance.getAttributes()); this.validationEnabled = validationEnabled; }