String () { StringBuilder buffer = new StringBuilder(); for (GrAnnotation annotation : myAnnotations) { buffer.append(annotation.getText()); buffer.append(' '); } for (@GrModifier.GrModifierConstant String modifier : GrModifier.GROOVY_MODIFIERS) { if (hasExplicitModifier(modifier)) { buffer.append(modifier); buffer.append(' '); } } if (buffer.length() > 0) { buffer.delete(buffer.length() - 1, buffer.length()); } return buffer.toString(); }