use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitRuntimeVisibleParameterAnnotations.
@Override
public Element visitRuntimeVisibleParameterAnnotations(RuntimeVisibleParameterAnnotations_attribute rvpa, Element p) {
Element e = new Element(x.getCpString(rvpa.attribute_name_index));
for (Annotation[] pa : rvpa.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 attachTo.
private void attachTo(Element x, Object aval0) {
if (aval0 == null) {
return;
}
if (!(aval0 instanceof Element)) {
x.add(aval0);
return;
}
Element aval = (Element) aval0;
if (!aval.isAnonymous()) {
x.add(aval);
return;
}
for (int imax = aval.attrSize(), i = 0; i < imax; i++) {
//%%
attachAttrTo(x, aval.getAttrName(i), aval.getAttr(i));
}
x.addAll(aval);
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitRuntimeInvisibleTypeAnnotations.
@Override
public Element visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute rita, Element p) {
Element e = new Element(x.getCpString(rita.attribute_name_index));
for (TypeAnnotation pa : rita.annotations) {
parseTypeAnnotations(pa, e);
}
e.sort();
p.add(e);
return null;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitPrimitive.
@Override
public Element visitPrimitive(Primitive_element_value e, Element p) {
Element el = new Element("String");
el.setAttr("val", x.getCpString(e.const_value_index));
el.trimToSize();
return el;
}
use of xmlkit.XMLKit.Element in project jdk8u_jdk by JetBrains.
the class AnnotationsElementVisitor method visitDefault.
@Override
public Element visitDefault(DefaultAttribute da, Element p) {
Element e = new Element(x.getCpString(da.attribute_name_index));
StringBuilder sb = new StringBuilder();
for (byte x : da.info) {
sb.append("0x").append(Integer.toHexString(x)).append(" ");
}
e.setAttr("bytes", sb.toString().trim());
e.trimToSize();
p.add(e);
return null;
}
Aggregations