/** * Prints the ASM code that generates the given attribute. * * @param attr an attribute. */ public void visitAttribute(final Attribute attr) { buf.setLength(0); if (attr instanceof ASMifiable) { buf.append("{\n"); buf.append("// ATTRIBUTE\n"); ((ASMifiable) attr).asmify(buf, "attr", labelNames); buf.append(name).append(".visitAttribute(attr);\n"); buf.append("}\n"); } else { buf.append("// WARNING! skipped a non standard attribute of type \""); buf.append(attr.type).append("\"\n"); } text.add(buf.toString()); }