Search in sources :

Example 1 with MethodParameters_attribute

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

the class AnnotationsElementVisitor method visitMethodParameters.

@Override
public Element visitMethodParameters(MethodParameters_attribute mp, Element p) {
    String name = x.getCpString(mp.attribute_name_index);
    for (MethodParameters_attribute.Entry e : mp.method_parameter_table) {
        Element l = new Element(name);
        l.setAttr("name", x.getCpString(e.name_index));
        l.setAttr("flag", "" + e.flags);
        l.trimToSize();
        p.add(l);
    }
    // already added to parent
    return null;
}
Also used : Element(xmlkit.XMLKit.Element) MethodParameters_attribute(com.sun.tools.classfile.MethodParameters_attribute)

Aggregations

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