Search in sources :

Example 1 with Opcode

use of com.sun.tools.classfile.Opcode in project jdk8u_jdk by JetBrains.

the class AnnotationsElementVisitor method visitNoOperands.

@Override
public Element visitNoOperands(Instruction i, Void p) {
    Opcode o = i.getOpcode();
    Element e = new Element(i.getMnemonic());
    if (o.opcode > 0xab && o.opcode <= 0xb1) {
        e.setAttr("pc", "" + i.getPC());
    }
    return e;
}
Also used : Element(xmlkit.XMLKit.Element) Opcode(com.sun.tools.classfile.Opcode)

Aggregations

Opcode (com.sun.tools.classfile.Opcode)1 Element (xmlkit.XMLKit.Element)1