public void visitAttribute(final Attribute attr) { buf.setLength(0); buf.append("// ATTRIBUTE ").append(attr.type).append('\n'); if (attr instanceof ASMifiable) { if (labelNames == null) { labelNames = new HashMap<Label, String>(); } buf.append("{\n"); ((ASMifiable) attr).asmify(buf, "attr", labelNames); buf.append(name).append(".visitAttribute(attr);\n"); buf.append("}\n"); } text.add(buf.toString()); }
/** * Visit a class, field or method attribute. * * @param attribute an attribute. */ public void visitAttribute(final Attribute attribute) { stringBuilder.setLength(0); stringBuilder.append("// ATTRIBUTE ").append(attribute.type).append('\n'); if (attribute instanceof ASMifiable) { if (labelNames == null) { labelNames = new HashMap<Label, String>(); } stringBuilder.append("{\n"); StringBuffer stringBuffer = new StringBuffer(); ((ASMifiable) attribute).asmify(stringBuffer, "attribute", labelNames); stringBuilder.append(stringBuffer.toString()); stringBuilder.append(name).append(".visitAttribute(attribute);\n"); stringBuilder.append("}\n"); } text.add(stringBuilder.toString()); }
/** * Visit a class, field or method attribute. * * @param attribute an attribute. */ public void visitAttribute(final Attribute attribute) { stringBuilder.setLength(0); stringBuilder.append("// ATTRIBUTE ").append(attribute.type).append('\n'); if (attribute instanceof ASMifiable) { if (labelNames == null) { labelNames = new HashMap<Label, String>(); } stringBuilder.append("{\n"); StringBuffer stringBuffer = new StringBuffer(); ((ASMifiable) attribute).asmify(stringBuffer, "attribute", labelNames); stringBuilder.append(stringBuffer.toString()); stringBuilder.append(name).append(".visitAttribute(attribute);\n"); stringBuilder.append("}\n"); } text.add(stringBuilder.toString()); }