Code example for AttributesImpl

Methods: addAttribute

0
 
        addElement("source", att);
    } 
 
    public void visitOuterClass(String owner, String name, String desc) {
        AttributesImpl att = new AttributesImpl();
        att.addAttribute("", "owner", "owner", "", owner);
        if (name != null)
            att.addAttribute("", "name", "name", "", name);
        if (desc != null)
            att.addAttribute("", "desc", "desc", "", desc);
 
        addElement("outerclass", att);
    } 
 
    public final void visitAttribute(Attribute attr) {
        // TODO Auto-generated SAXClassAdapter.visitAttribute 
    } 
 
    public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        return new SAXAnnotationAdapter(getContentHandler(),