use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitUtf8.
@Override
public String visitUtf8(CONSTANT_Utf8_info cnstnt, Integer p) {
String value = slist.get(p);
if (value == null) {
value = cnstnt.value;
slist.set(p, value);
xpool.add(new Element("CONSTANT_Utf8", new String[] { "id", p.toString() }, value));
}
return value;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitEnum.
@Override
public Element visitEnum(Enum_element_value e, Element p) {
Element el = new Element("Enum");
el.setAttr("name", x.getCpString(e.const_name_index));
el.setAttr("type", x.getCpString(e.type_name_index));
el.trimToSize();
return el;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visit_full_frame.
@Override
public Element visit_full_frame(full_frame fl_frm, Void p) {
Element e = new Element("FullFrame");
e.setAttr("tag", "" + fl_frm.frame_type);
e.addAll(getVerificationTypeInfo("Local", fl_frm.locals));
e.trimToSize();
return e;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitRuntimeVisibleAnnotations.
@Override
public Element visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute rva, Element p) {
Element e = new Element(x.getCpString(rva.attribute_name_index));
parseAnnotations(rva.annotations, e);
e.trimToSize();
p.add(e);
return null;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method parseAnnotation.
private void parseAnnotation(Annotation anno, Element p) {
Element ea = new Element("Annotation");
ea.setAttr("name", "" + x.getCpString(anno.type_index));
for (Annotation.element_value_pair evp : anno.element_value_pairs) {
Element evpe = new Element("Element");
evpe.setAttr("tag", "" + evp.value.tag);
evpe.setAttr("value", x.getCpString(evp.element_name_index));
Element child = aev.visit(evp.value, evpe);
if (child != null) {
evpe.add(child);
}
ea.add(evpe);
}
ea.trimToSize();
p.add(ea);
}
Aggregations