/** * Obtains the "toString" method for this type, if available. * <p> * If the user provided a non-default name for "toString", that method will * be returned. * * @return the "toString" method declared on this type or that will be * introduced (or null if undeclared and not introduced) */ private MethodMetadataBuilder getToStringMethod() { if (StringUtils.isBlank(annotationValues.getToStringMethod())) { return null; } // Compute the relevant toString method name final JavaSymbolName methodName = new JavaSymbolName(annotationValues.getToStringMethod()); // See if the type itself declared the method if (governorHasMethod(methodName)) { return null; } return generateToStringMethod(getId(), governorTypeDetails.getType(), annotationValues, fields); }
ensureGovernorHasMethod(ToStringMetadata.generateToStringMethod(identifier, target, toStringAnnotationValues, toStringFields));
/** * Obtains the "toString" method for this type, if available. * <p> * If the user provided a non-default name for "toString", that method will * be returned. * * @return the "toString" method declared on this type or that will be * introduced (or null if undeclared and not introduced) */ private MethodMetadataBuilder getToStringMethod() { if (StringUtils.isBlank(annotationValues.getToStringMethod())) { return null; } // Compute the relevant toString method name final JavaSymbolName methodName = new JavaSymbolName(annotationValues.getToStringMethod()); // See if the type itself declared the method if (governorHasMethod(methodName)) { return null; } return generateToStringMethod(getId(), governorTypeDetails.getType(), annotationValues, fields); }
ensureGovernorHasMethod(ToStringMetadata.generateToStringMethod(identifier, target, toStringAnnotationValues, toStringFields));