Package yagdoc :: Module inspector :: Class Inspector
[show private | hide private]
[frames | no frames]

Type Inspector

object --+
         |
        Inspector


Parse inspect GObject inspection output.
Method Summary
  __init__(self)
list of scanner.Tree extract_hierarchy(self, types)
Extract part of the type hierarchy.
  gather_inherited(self, name, get)
  parse(self, text)
Parse inspect output.
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__
Inherited from SRE_Pattern: _properties_header, _section_header

Instance Variable Summary
set sproperty_names: Names of all special property types found.
dict type_funcs: Dictionary mapping get-type function names to their type names.
dict types: Dictionary of Types, indexed by their names.

Class Variable Summary
dict _record_parsers = {'Prerequisites': 'set_prerequsites', ...

Method Details

extract_hierarchy(self, types)

Extract part of the type hierarchy.

The extracted subtree contains all given types, all their parents and all their first-level children.
Parameters:
types - List of type names that form the skeleton of the hierarchy.
           (type=list of str)
Returns:
List of inheritance trees, each formed by scanner.Tree trees. Leaves are also scanner.Tree objects, just with empty item list.
           (type=list of scanner.Tree)

parse(self, text)

Parse inspect output.
Parameters:
text - Lines of text to parse.
           (type=iterable returning lines or string)

Instance Variable Details

sproperty_names

Names of all special property types found.
Type:
set

type_funcs

Dictionary mapping get-type function names to their type names.
Type:
dict

types

Dictionary of Types, indexed by their names.
Type:
dict

Class Variable Details

_record_parsers

Type:
dict
Value:
{'Bindings': 'add_binding',
 'Children': 'set_children',
 'Flags': 'set_flags',
 'Interfaces': 'set_interfaces',
 'Prerequisites': 'set_prerequsites',
 'Properties': 'add_property',
 'Signals': 'add_signal',
 'Types': 'set_type_func'}                                             

Generated by Epydoc 2.1 on Fri Oct 5 00:36:53 2007 http://epydoc.sf.net