use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitSourceDebugExtension.
@Override
public Element visitSourceDebugExtension(SourceDebugExtension_attribute sde, Element p) {
String aname = x.getCpString(sde.attribute_name_index);
Element se = new Element(aname);
se.setAttr("val", sde.getValue());
se.trimToSize();
p.add(se);
return null;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitEnclosingMethod.
@Override
public Element visitEnclosingMethod(EnclosingMethod_attribute em, Element p) {
Element e = new Element(x.getCpString(em.attribute_name_index));
e.setAttr("class", x.getCpString(em.class_index));
e.setAttr("desc", x.getCpString(em.method_index));
e.trimToSize();
p.add(e);
return null;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitRuntimeInvisibleParameterAnnotations.
@Override
public Element visitRuntimeInvisibleParameterAnnotations(RuntimeInvisibleParameterAnnotations_attribute ripa, Element p) {
Element e = new Element(x.getCpString(ripa.attribute_name_index));
for (Annotation[] pa : ripa.parameter_annotations) {
parseAnnotations(pa, e);
}
p.add(e);
return null;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitSignature.
@Override
public Element visitSignature(Signature_attribute s, Element p) {
String aname = x.getCpString(s.attribute_name_index);
String sname = x.getCpString(s.signature_index);
Element se = new Element(aname);
se.add(sname);
se.trimToSize();
p.add(se);
return null;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitClass.
@Override
public Element visitClass(Class_element_value c, Element p) {
Element el = new Element("Class");
el.setAttr("name", x.getCpString(c.class_info_index));
el.trimToSize();
return el;
}
Aggregations