/** * 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. * * @return returns a string representation of the annotation */ public String toString() { StringBuilder builder = new StringBuilder(); if(type != null) { name(builder); attributes(builder); } return builder.toString(); }
/** * 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. * * @return returns a string representation of the annotation */ public String toString() { StringBuilder builder = new StringBuilder(); if(type != null) { name(builder); attributes(builder); } return builder.toString(); }
/** * 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. * * @return returns a string representation of the annotation */ public String toString() { StringBuilder builder = new StringBuilder(); if(type != null) { name(builder); attributes(builder); } return builder.toString(); }