use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitAnnotation.
@Override
public Element visitAnnotation(Annotation_element_value a, Element p) {
Element el = new Element("Annotation");
Annotation anno = a.annotation_value;
for (Annotation.element_value_pair evp : anno.element_value_pairs) {
Element child = visit(evp.value, el);
if (child != null) {
el.add(child);
}
}
el.trimToSize();
return el;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitInnerClasses.
@Override
public Element visitInnerClasses(InnerClasses_attribute ic, Element p) {
for (Info info : ic.classes) {
Element e = new Element(x.getCpString(ic.attribute_name_index));
e.setAttr("class", x.getCpString(info.inner_class_info_index));
e.setAttr("outer", x.getCpString(info.outer_class_info_index));
e.setAttr("name", x.getCpString(info.inner_name_index));
e.setAttr("flags", x.flagString(info.inner_class_access_flags, "InnerClass"));
e.trimToSize();
p.add(e);
}
return null;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitExceptions.
@Override
public Element visitExceptions(Exceptions_attribute e, Element p) {
Element ee = new Element(x.getCpString(e.attribute_name_index));
for (int idx : e.exception_index_table) {
Element n = new Element("Item");
n.setAttr("class", x.getCpString(idx));
ee.add(n);
}
ee.trimToSize();
p.add(ee);
return null;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visit_chop_frame.
@Override
public Element visit_chop_frame(chop_frame c, Void p) {
Element e = new Element("Chop" + (251 - c.frame_type));
e.setAttr("tag", "" + c.frame_type);
e.setAttr("offset", "" + c.offset_delta);
return e;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitCompilationID.
@Override
public Element visitCompilationID(CompilationID_attribute cid, Element p) {
Element e = new Element(x.getCpString(cid.attribute_name_index), x.getCpString(cid.compilationID_index));
p.add(e);
return null;
}
Aggregations