/** * This is used to build a string from the annotation. The string * produces adheres to the typical string representation of a * normal annotation. This ensures that an exceptions that are * thrown with a string representation of the annotation are * identical to those thrown with a normal annotation. * * @param builder this is the builder used to compose the text */ private void attributes(StringBuilder builder) { Method[] list = type.getDeclaredMethods(); for(int i = 0; i < list.length; i++) { String attribute = list[i].getName(); Object value = value(list[i]); if(i > 0) { builder.append(','); builder.append(' '); } builder.append(attribute); builder.append('='); builder.append(value); } builder.append(')'); }
/** * This is used to build a string from the annotation. The string * produces adheres to the typical string representation of a * normal annotation. This ensures that an exceptions that are * thrown with a string representation of the annotation are * identical to those thrown with a normal annotation. * * @param builder this is the builder used to compose the text */ private void attributes(StringBuilder builder) { Method[] list = type.getDeclaredMethods(); for(int i = 0; i < list.length; i++) { String attribute = list[i].getName(); Object value = value(list[i]); if(i > 0) { builder.append(','); builder.append(' '); } builder.append(attribute); builder.append('='); builder.append(value); } builder.append(')'); }
/** * This is used to build a string from the annotation. The string * produces adheres to the typical string representation of a * normal annotation. This ensures that an exceptions that are * thrown with a string representation of the annotation are * identical to those thrown with a normal annotation. * * @param builder this is the builder used to compose the text */ private void attributes(StringBuilder builder) { Method[] list = type.getDeclaredMethods(); for(int i = 0; i < list.length; i++) { String attribute = list[i].getName(); Object value = value(list[i]); if(i > 0) { builder.append(','); builder.append(' '); } builder.append(attribute); builder.append('='); builder.append(value); } builder.append(')'); }