Search in sources :

Example 1 with CharacterRangeTable_attribute

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

the class AnnotationsElementVisitor method visitCharacterRangeTable.

@Override
public Element visitCharacterRangeTable(CharacterRangeTable_attribute crt, Element p) {
    Element e = new Element(x.getCpString(crt.attribute_name_index));
    for (CharacterRangeTable_attribute.Entry ce : crt.character_range_table) {
        e.setAttr("start_pc", "" + ce.start_pc);
        e.setAttr("end_pc", "" + ce.end_pc);
        e.setAttr("range_start", "" + ce.character_range_start);
        e.setAttr("range_end", "" + ce.character_range_end);
        e.setAttr("flags", x.flagString(ce.flags, "Method"));
    }
    e.trimToSize();
    p.add(e);
    return null;
}
Also used : CharacterRangeTable_attribute(com.sun.tools.classfile.CharacterRangeTable_attribute) Element(xmlkit.XMLKit.Element)

Aggregations

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