pygccxml.parser.scanner.scanner_t

Package pygccxml :: Package parser :: Module scanner :: Class scanner_t |

# ClassType scanner_t

source code

    xml.sax.handler.ContentHandler --+
                                     |
                                    scanner_t

Known Subclasses:
  - etree_scanner.ietree_scanner_t

Instance Methods
__init__(self, gccxml_file, decl_factory, *args) | source code
read(self) | source code
endDocument(self) Receive notification of the end of a document. | source code
declarations(self) | source code
calldefs(self) | source code
enums(self) | source code
types(self) | source code
files(self) | source code
access(self) | source code
members(self) | source code
startElementNS(self, name, qname, attrs) Signals the start of an element in namespace mode. | source code
endElementNS(self, name, qname) Signals the end of an element in namespace mode. | source code
startElement(self, name, attrs) Signals the start of an element in non-namespace mode. | source code
endElement(self, name) Signals the end of an element in non-namespace mode. | source code
Inherited from `xml.sax.handler.ContentHandler`: `characters`, `endPrefixMapping`, `ignorableWhitespace`, `processingInstruction`, `setDocumentLocator`, `skippedEntity`, `startDocument`, `startPrefixMapping`

Method Details

### __init__(self, gccxml_file, decl_factory, *args) (Constructor) | source code
Overrides: xml.sax.handler.ContentHandler.__init__

### endDocument(self) | source code
Receive notification of the end of a document. The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input. Overrides: xml.sax.handler.ContentHandler.endDocument (inherited documentation)

### startElementNS(self, name, qname, attrs) | source code
Signals the start of an element in namespace mode. The name parameter contains the name of the element type as a (uri, localname) tuple, the qname parameter the raw XML 1.0 name used in the source document, and the attrs parameter holds an instance of the Attributes class containing the attributes of the element. The uri part of the name tuple is None for elements which have no namespace. Overrides: xml.sax.handler.ContentHandler.startElementNS (inherited documentation)

### endElementNS(self, name, qname) | source code
Signals the end of an element in namespace mode. The name parameter contains the name of the element type, just as with the startElementNS event. Overrides: xml.sax.handler.ContentHandler.endElementNS (inherited documentation)

### startElement(self, name, attrs) | source code
Signals the start of an element in non-namespace mode. The name parameter contains the raw XML 1.0 name of the element type as a string and the attrs parameter holds an instance of the Attributes class containing the attributes of the element. Overrides: xml.sax.handler.ContentHandler.startElement (inherited documentation)

### endElement(self, name) | source code
Signals the end of an element in non-namespace mode. The name parameter contains the name of the element type, just as with the startElement event. Overrides: xml.sax.handler.ContentHandler.endElement (inherited documentation)