Java 类org.objectweb.asm.util.attrs.ASMifiable 实例源码

项目:javify    文件:ASMifierAbstractVisitor.java   
/**
 * 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());
}
项目:jvm-stm    文件:ASMifierAbstractVisitor.java   
/**
 * 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());
}
项目:annotation-tools    文件:ASMifierAbstractVisitor.java   
/**
 * 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());
}
项目:JamVM-PH    文件:ASMifierAbstractVisitor.java   
/**
 * 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());
}
项目:classpath    文件:ASMifierAbstractVisitor.java   
/**
 * 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());
}