类 ASMContentHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.beetl.ow2.asm.xml.ASMContentHandler
所有已实现的接口:
Opcodes, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class ASMContentHandler extends DefaultHandler implements Opcodes
A ContentHandler that transforms XML document into Java class file. This class can be feeded by any kind of SAX 2.0 event producers, e.g. XML parser, XSLT or XPath engines, or custom code.
作者:
Eugene Kuleshov
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • ASMContentHandler

      public ASMContentHandler(ClassVisitor cv)
      Constructs a new ASMContentHandler object.
      参数:
      cv - class visitor that will be called to reconstruct the classfile using the XML stream.
  • 方法详细资料

    • 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.
      指定者:
      startElement 在接口中 ContentHandler
      覆盖:
      startElement 在类中 DefaultHandler
      参数:
      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 className (without prefix), or the empty string if Namespace processing is not being performed.
      qName - - The qualified className (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.
      抛出:
      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.
      指定者:
      endElement 在接口中 ContentHandler
      覆盖:
      endElement 在类中 DefaultHandler
      参数:
      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 className (without prefix), or the empty string if Namespace processing is not being performed.
      qName - - The qualified XML 1.0 className (with prefix), or the empty string if qualified names are not available.
      抛出:
      SAXException - if a parsing error is to be reported