Class ASMContentHandler

    • Constructor Detail

      • ASMContentHandler

        public ASMContentHandler​(ClassVisitor cv)
        Constructs a new ASMContentHandler object.
        Parameters:
        cv - class visitor that will be called to reconstruct the classfile using the XML stream.
    • Method Detail

      • startElement

        public final void startElement​(String ns,
                                       String lName,
                                       String qName,
                                       Attributes list)
                                throws SAXException
        Process notification of the start of an XML element being reached.
        Specified by:
        startElement in interface ContentHandler
        Overrides:
        startElement in class DefaultHandler
        Parameters:
        ns - - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
        lName - - The local name (without prefix), or the empty string if Namespace processing is not being performed.
        qName - - The qualified name (with prefix), or the empty string if qualified names are not available.
        list - - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
        Throws:
        SAXException - if a parsing error is to be reported
      • endElement

        public final void endElement​(String ns,
                                     String lName,
                                     String qName)
                              throws SAXException
        Process notification of the end of an XML element being reached.
        Specified by:
        endElement in interface ContentHandler
        Overrides:
        endElement in class DefaultHandler
        Parameters:
        ns - - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
        lName - - The local name (without prefix), or the empty string if Namespace processing is not being performed.
        qName - - The qualified XML 1.0 name (with prefix), or the empty string if qualified names are not available.
        Throws:
        SAXException - if a parsing error is to be reported