src/eric7/Documentation/Source/eric7.Utilities.ClassBrowsers.ClbrBaseClasses.html

Fri, 27 Oct 2023 14:09:40 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 27 Oct 2023 14:09:40 +0200
branch
eric7
changeset 10259
b51dfacef37f
parent 9236
db53a9efe7ef
child 10479
856476537696
permissions
-rw-r--r--

Regenerated the source documentation with the corrected module parser.

<!DOCTYPE html>
<html><head>
<title>eric7.Utilities.ClassBrowsers.ClbrBaseClasses</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.Utilities.ClassBrowsers.ClbrBaseClasses</h1>

<p>
Module implementing base classes used by the various class browsers.
</p>
<h3>Global Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>

<table>

<tr>
<td><a href="#Attribute">Attribute</a></td>
<td>Class to represent an attribute.</td>
</tr>
<tr>
<td><a href="#Class">Class</a></td>
<td>Class to represent a class.</td>
</tr>
<tr>
<td><a href="#ClbrBase">ClbrBase</a></td>
<td>Class implementing the base of all complex class browser objects.</td>
</tr>
<tr>
<td><a href="#ClbrVisibilityMixinBase">ClbrVisibilityMixinBase</a></td>
<td>Class implementing the base class of all visibility mixins.</td>
</tr>
<tr>
<td><a href="#Coding">Coding</a></td>
<td>Class to represent a source coding.</td>
</tr>
<tr>
<td><a href="#Enum">Enum</a></td>
<td>Class to represent an enum definition.</td>
</tr>
<tr>
<td><a href="#Function">Function</a></td>
<td>Class to represent a function or method.</td>
</tr>
<tr>
<td><a href="#Module">Module</a></td>
<td>Class to represent a module.</td>
</tr>
<tr>
<td><a href="#_ClbrBase">_ClbrBase</a></td>
<td>Class implementing the base of all class browser objects.</td>
</tr>
</table>
<h3>Functions</h3>

<table>
<tr><td>None</td></tr>
</table>
<hr />
<hr />
<a NAME="Attribute" ID="Attribute"></a>
<h2>Attribute</h2>

<p>
    Class to represent an attribute.
</p>
<h3>Derived from</h3>
_ClbrBase
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#Attribute.__init__">Attribute</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#Attribute.addAssignment">addAssignment</a></td>
<td>Public method to add another assignment line number.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="Attribute.__init__" ID="Attribute.__init__"></a>
<h4>Attribute (Constructor)</h4>
<b>Attribute</b>(<i>module, name, file, lineno</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>module</i> (str)</dt>
<dd>
name of the module containing this attribute
</dd>
<dt><i>name</i> (str)</dt>
<dd>
name of this attribute
</dd>
<dt><i>file</i> (str)</dt>
<dd>
filename containing this attribute
</dd>
<dt><i>lineno</i> (int)</dt>
<dd>
line number of the attribute definition
</dd>
</dl>
<a NAME="Attribute.addAssignment" ID="Attribute.addAssignment"></a>
<h4>Attribute.addAssignment</h4>
<b>addAssignment</b>(<i>lineno</i>)

<p>
        Public method to add another assignment line number.
</p>
<dl>

<dt><i>lineno</i> (int)</dt>
<dd>
line number of the additional attribute assignment
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="Class" ID="Class"></a>
<h2>Class</h2>

<p>
    Class to represent a class.
</p>
<h3>Derived from</h3>
ClbrBase
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#Class.__init__">Class</a></td>
<td>Constructor</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="Class.__init__" ID="Class.__init__"></a>
<h4>Class (Constructor)</h4>
<b>Class</b>(<i>module, name, superClasses, file, lineno</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>module</i> (str)</dt>
<dd>
name of the module containing this class
</dd>
<dt><i>name</i> (str)</dt>
<dd>
name of this class
</dd>
<dt><i>superClasses</i> (list of str)</dt>
<dd>
list of class names this class is inherited from
</dd>
<dt><i>file</i> (str)</dt>
<dd>
filename containing this class
</dd>
<dt><i>lineno</i> (int)</dt>
<dd>
line number of the class definition
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="ClbrBase" ID="ClbrBase"></a>
<h2>ClbrBase</h2>

<p>
    Class implementing the base of all complex class browser objects.
</p>
<h3>Derived from</h3>
_ClbrBase
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#ClbrBase.__init__">ClbrBase</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#ClbrBase._addattribute">_addattribute</a></td>
<td>Protected method to add information about attributes.</td>
</tr>
<tr>
<td><a href="#ClbrBase._addclass">_addclass</a></td>
<td>Protected method method to add a nested class to this class.</td>
</tr>
<tr>
<td><a href="#ClbrBase._addglobal">_addglobal</a></td>
<td>Protected method to add information about global variables.</td>
</tr>
<tr>
<td><a href="#ClbrBase._addmethod">_addmethod</a></td>
<td>Protected method to add information about a method.</td>
</tr>
<tr>
<td><a href="#ClbrBase._getattribute">_getattribute</a></td>
<td>Protected method to retrieve an attribute by name.</td>
</tr>
<tr>
<td><a href="#ClbrBase._getglobal">_getglobal</a></td>
<td>Protected method to retrieve a global variable by name.</td>
</tr>
<tr>
<td><a href="#ClbrBase._getmethod">_getmethod</a></td>
<td>Protected method to retrieve a method by name.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="ClbrBase.__init__" ID="ClbrBase.__init__"></a>
<h4>ClbrBase (Constructor)</h4>
<b>ClbrBase</b>(<i>module, name, file, lineno</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>module</i> (str)</dt>
<dd>
name of the module containing this object
</dd>
<dt><i>name</i> (str)</dt>
<dd>
name of this object
</dd>
<dt><i>file</i> (str)</dt>
<dd>
filename containing this object
</dd>
<dt><i>lineno</i> (int)</dt>
<dd>
linenumber of the object definition
</dd>
</dl>
<a NAME="ClbrBase._addattribute" ID="ClbrBase._addattribute"></a>
<h4>ClbrBase._addattribute</h4>
<b>_addattribute</b>(<i>attr</i>)

<p>
        Protected method to add information about attributes.
</p>
<dl>

<dt><i>attr</i> (Attribute)</dt>
<dd>
Attribute object to be added
</dd>
</dl>
<a NAME="ClbrBase._addclass" ID="ClbrBase._addclass"></a>
<h4>ClbrBase._addclass</h4>
<b>_addclass</b>(<i>name, _class</i>)

<p>
        Protected method method to add a nested class to this class.
</p>
<dl>

<dt><i>name</i> (str)</dt>
<dd>
name of the class
</dd>
<dt><i>_class</i> (Class)</dt>
<dd>
Class object to be added
</dd>
</dl>
<a NAME="ClbrBase._addglobal" ID="ClbrBase._addglobal"></a>
<h4>ClbrBase._addglobal</h4>
<b>_addglobal</b>(<i>attr</i>)

<p>
        Protected method to add information about global variables.
</p>
<dl>

<dt><i>attr</i> (Attribute)</dt>
<dd>
Attribute object to be added
</dd>
</dl>
<a NAME="ClbrBase._addmethod" ID="ClbrBase._addmethod"></a>
<h4>ClbrBase._addmethod</h4>
<b>_addmethod</b>(<i>name, function</i>)

<p>
        Protected method to add information about a method.
</p>
<dl>

<dt><i>name</i> (str)</dt>
<dd>
name of method to be added
</dd>
<dt><i>function</i> (Function)</dt>
<dd>
Function object to be added
</dd>
</dl>
<a NAME="ClbrBase._getattribute" ID="ClbrBase._getattribute"></a>
<h4>ClbrBase._getattribute</h4>
<b>_getattribute</b>(<i>name</i>)

<p>
        Protected method to retrieve an attribute by name.
</p>
<dl>

<dt><i>name</i> (str)</dt>
<dd>
name of the attribute
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
the named attribute
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
Attribute or None
</dd>
</dl>
<a NAME="ClbrBase._getglobal" ID="ClbrBase._getglobal"></a>
<h4>ClbrBase._getglobal</h4>
<b>_getglobal</b>(<i>name</i>)

<p>
        Protected method to retrieve a global variable by name.
</p>
<dl>

<dt><i>name</i> (str)</dt>
<dd>
name of the global variable
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
the named global variable
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
Attribute or None
</dd>
</dl>
<a NAME="ClbrBase._getmethod" ID="ClbrBase._getmethod"></a>
<h4>ClbrBase._getmethod</h4>
<b>_getmethod</b>(<i>name</i>)

<p>
        Protected method to retrieve a method by name.
</p>
<dl>

<dt><i>name</i> (str)</dt>
<dd>
name of the method (string)
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
the named method
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
Function or None
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="ClbrVisibilityMixinBase" ID="ClbrVisibilityMixinBase"></a>
<h2>ClbrVisibilityMixinBase</h2>

<p>
    Class implementing the base class of all visibility mixins.
</p>
<h3>Derived from</h3>
None
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#ClbrVisibilityMixinBase.isPrivate">isPrivate</a></td>
<td>Public method to check, if the visibility is Private.</td>
</tr>
<tr>
<td><a href="#ClbrVisibilityMixinBase.isProtected">isProtected</a></td>
<td>Public method to check, if the visibility is Protected.</td>
</tr>
<tr>
<td><a href="#ClbrVisibilityMixinBase.isPublic">isPublic</a></td>
<td>Public method to check, if the visibility is Public.</td>
</tr>
<tr>
<td><a href="#ClbrVisibilityMixinBase.setPrivate">setPrivate</a></td>
<td>Public method to set the visibility to Private.</td>
</tr>
<tr>
<td><a href="#ClbrVisibilityMixinBase.setProtected">setProtected</a></td>
<td>Public method to set the visibility to Protected.</td>
</tr>
<tr>
<td><a href="#ClbrVisibilityMixinBase.setPublic">setPublic</a></td>
<td>Public method to set the visibility to Public.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="ClbrVisibilityMixinBase.isPrivate" ID="ClbrVisibilityMixinBase.isPrivate"></a>
<h4>ClbrVisibilityMixinBase.isPrivate</h4>
<b>isPrivate</b>(<i></i>)

<p>
        Public method to check, if the visibility is Private.
</p>
<dl>
<dt>Return:</dt>
<dd>
flag indicating Private visibility
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="ClbrVisibilityMixinBase.isProtected" ID="ClbrVisibilityMixinBase.isProtected"></a>
<h4>ClbrVisibilityMixinBase.isProtected</h4>
<b>isProtected</b>(<i></i>)

<p>
        Public method to check, if the visibility is Protected.
</p>
<dl>
<dt>Return:</dt>
<dd>
flag indicating Protected visibility
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="ClbrVisibilityMixinBase.isPublic" ID="ClbrVisibilityMixinBase.isPublic"></a>
<h4>ClbrVisibilityMixinBase.isPublic</h4>
<b>isPublic</b>(<i></i>)

<p>
        Public method to check, if the visibility is Public.
</p>
<dl>
<dt>Return:</dt>
<dd>
flag indicating Public visibility
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
bool
</dd>
</dl>
<a NAME="ClbrVisibilityMixinBase.setPrivate" ID="ClbrVisibilityMixinBase.setPrivate"></a>
<h4>ClbrVisibilityMixinBase.setPrivate</h4>
<b>setPrivate</b>(<i></i>)

<p>
        Public method to set the visibility to Private.
</p>
<a NAME="ClbrVisibilityMixinBase.setProtected" ID="ClbrVisibilityMixinBase.setProtected"></a>
<h4>ClbrVisibilityMixinBase.setProtected</h4>
<b>setProtected</b>(<i></i>)

<p>
        Public method to set the visibility to Protected.
</p>
<a NAME="ClbrVisibilityMixinBase.setPublic" ID="ClbrVisibilityMixinBase.setPublic"></a>
<h4>ClbrVisibilityMixinBase.setPublic</h4>
<b>setPublic</b>(<i></i>)

<p>
        Public method to set the visibility to Public.
</p>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="Coding" ID="Coding"></a>
<h2>Coding</h2>

<p>
    Class to represent a source coding.
</p>
<h3>Derived from</h3>
ClbrBase
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#Coding.__init__">Coding</a></td>
<td>Constructor</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="Coding.__init__" ID="Coding.__init__"></a>
<h4>Coding (Constructor)</h4>
<b>Coding</b>(<i>module, file, lineno, coding</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>module</i> (str)</dt>
<dd>
name of the module containing this coding statement
</dd>
<dt><i>file</i> (str)</dt>
<dd>
filename containing this coding statement
</dd>
<dt><i>lineno</i> (int)</dt>
<dd>
line number of the coding definition
</dd>
<dt><i>coding</i> (str)</dt>
<dd>
character coding of the source file
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="Enum" ID="Enum"></a>
<h2>Enum</h2>

<p>
    Class to represent an enum definition.
</p>
<h3>Derived from</h3>
ClbrBase
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#Enum.__init__">Enum</a></td>
<td>Constructor</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="Enum.__init__" ID="Enum.__init__"></a>
<h4>Enum (Constructor)</h4>
<b>Enum</b>(<i>module, name, file, lineno</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>module</i> (str)</dt>
<dd>
name of the module containing this enum
</dd>
<dt><i>name</i> (str)</dt>
<dd>
name of this enum
</dd>
<dt><i>file</i> (str)</dt>
<dd>
filename containing this enum
</dd>
<dt><i>lineno</i> (int)</dt>
<dd>
line number of the enum definition
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="Function" ID="Function"></a>
<h2>Function</h2>

<p>
    Class to represent a function or method.
</p>
<h3>Derived from</h3>
ClbrBase
<h3>Class Attributes</h3>

<table>
<tr><td>Class</td></tr><tr><td>General</td></tr><tr><td>Static</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#Function.__init__">Function</a></td>
<td>Constructor</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="Function.__init__" ID="Function.__init__"></a>
<h4>Function (Constructor)</h4>
<b>Function</b>(<i>module, name, file, lineno, signature="", separator=", ", modifierType=General, annotation="", </i>)

<p>
        Constructor
</p>
<dl>

<dt><i>module</i> (str)</dt>
<dd>
name of the module containing this function
</dd>
<dt><i>name</i> (str)</dt>
<dd>
name of this function
</dd>
<dt><i>file</i> (str)</dt>
<dd>
filename containing this function
</dd>
<dt><i>lineno</i> (int)</dt>
<dd>
line number of the function definition
</dd>
<dt><i>signature</i> (str)</dt>
<dd>
parameter list of the function
</dd>
<dt><i>separator</i> (str)</dt>
<dd>
string separating the parameters of the function
</dd>
<dt><i>modifierType</i> (int)</dt>
<dd>
type of the function
</dd>
<dt><i>annotation</i> (str)</dt>
<dd>
function return annotation
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="Module" ID="Module"></a>
<h2>Module</h2>

<p>
    Class to represent a module.
</p>
<h3>Derived from</h3>
ClbrBase
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#Module.__init__">Module</a></td>
<td>Constructor</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="Module.__init__" ID="Module.__init__"></a>
<h4>Module (Constructor)</h4>
<b>Module</b>(<i>module, name, file, lineno</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>module</i> (str)</dt>
<dd>
name of the module containing this module
</dd>
<dt><i>name</i> (str)</dt>
<dd>
name of this module
</dd>
<dt><i>file</i> (str)</dt>
<dd>
filename containing this module
</dd>
<dt><i>lineno</i> (int)</dt>
<dd>
line number of the module definition
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="_ClbrBase" ID="_ClbrBase"></a>
<h2>_ClbrBase</h2>

<p>
    Class implementing the base of all class browser objects.
</p>
<h3>Derived from</h3>
None
<h3>Class Attributes</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>

<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>

<table>

<tr>
<td><a href="#_ClbrBase.__init__">_ClbrBase</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#_ClbrBase.setEndLine">setEndLine</a></td>
<td>Public method to set the ending line number.</td>
</tr>
</table>
<h3>Static Methods</h3>

<table>
<tr><td>None</td></tr>
</table>

<a NAME="_ClbrBase.__init__" ID="_ClbrBase.__init__"></a>
<h4>_ClbrBase (Constructor)</h4>
<b>_ClbrBase</b>(<i>module, name, file, lineno</i>)

<p>
        Constructor
</p>
<dl>

<dt><i>module</i> (str)</dt>
<dd>
name of the module containing this object
</dd>
<dt><i>name</i> (str)</dt>
<dd>
name of this object
</dd>
<dt><i>file</i> (str)</dt>
<dd>
filename containing this object
</dd>
<dt><i>lineno</i> (int)</dt>
<dd>
linenumber of the object definition
</dd>
</dl>
<a NAME="_ClbrBase.setEndLine" ID="_ClbrBase.setEndLine"></a>
<h4>_ClbrBase.setEndLine</h4>
<b>setEndLine</b>(<i>endLineNo</i>)

<p>
        Public method to set the ending line number.
</p>
<dl>

<dt><i>endLineNo</i> (int)</dt>
<dd>
number of the last line
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial