Default implementation assumes that the user is interested
in learning about functions and classes defined within the
parse tree used for initialization. This makes implementation
of MethodInfo easy. Other derived classes add behavior to
find other information.
Methods
|
|
__init__
_extractConfigurationValues
_extractInfo
_extractSummary
getCommentKey
getConfigurationValues
getDocString
getDocStringFormat
getSummaryAndFormat
|
|
__init__
|
__init__ (
self,
name,
parent,
filename,
tree,
commentInfo={},
defaultConfigValues={},
)
Initialize the info extractor.
Parameters:
- name
- name of this object
- parent
- parent object (e.g. Module for Class)
- filename
- file which contains the tree
- tree
- parse tree from which to extract information
- commentInfo
- comments extracted from source file where
this object was found
|
|
_extractConfigurationValues
|
_extractConfigurationValues ( self )
Default implementation does nothing.
|
|
_extractInfo
|
_extractInfo ( self, tree )
Pull information out of the parse tree.
|
|
_extractSummary
|
_extractSummary ( self, text )
Extract a summary text from a larger body.
|
|
getCommentKey
|
getCommentKey ( self )
|
|
getConfigurationValues
|
getConfigurationValues ( self )
Return any HappyDoc configuration values related to this object.
|
|
getDocString
|
getDocString ( self )
Return any __doc__ string value found for the object.
|
|
getDocStringFormat
|
getDocStringFormat ( self )
Returns the docstring converter format name for the docstring for this object.
|
|
getSummaryAndFormat
|
getSummaryAndFormat ( self )
Return a summary of the __doc__ string for this object and the docstring converter name for the format of the text.
|