public String toString(){
  StringBuilder builder=new StringBuilder();
  if (type != null) {
    name(builder);
    attributes(builder);
  }
  return builder.toString();
}

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 .
