--- a/eric6/Documentation/Source/eric6.Graphics.ClassItem.html Sun May 02 15:09:14 2021 +0200 +++ b/eric6/Documentation/Source/eric6.Graphics.ClassItem.html Sun May 02 15:09:29 2021 +0200 @@ -292,15 +292,23 @@ <td>Constructor</td> </tr> <tr> -<td><a href="#ClassModel.addAttribute">addAttribute</a></td> -<td>Public method to add an attribute to the class model.</td> +<td><a href="#ClassModel.addClassAttribute">addClassAttribute</a></td> +<td>Public method to add a class attribute to the class model.</td> +</tr> +<tr> +<td><a href="#ClassModel.addInstanceAttribute">addInstanceAttribute</a></td> +<td>Public method to add an instance attribute to the class model.</td> </tr> <tr> <td><a href="#ClassModel.addMethod">addMethod</a></td> <td>Public method to add a method to the class model.</td> </tr> <tr> -<td><a href="#ClassModel.getAttributes">getAttributes</a></td> +<td><a href="#ClassModel.getClassAttributes">getClassAttributes</a></td> +<td>Public method to retrieve the global attributes of the class.</td> +</tr> +<tr> +<td><a href="#ClassModel.getInstanceAttributes">getInstanceAttributes</a></td> <td>Public method to retrieve the attributes of the class.</td> </tr> <tr> @@ -316,40 +324,56 @@ <a NAME="ClassModel.__init__" ID="ClassModel.__init__"></a> <h4>ClassModel (Constructor)</h4> -<b>ClassModel</b>(<i>name, methods=None, attributes=None</i>) +<b>ClassModel</b>(<i>name, methods=None, instanceAttributes=None, classAttributes=None</i>) <p> Constructor </p> <dl> -<dt><i>name</i></dt> +<dt><i>name</i> (str)</dt> <dd> -the class name (string) +the class name </dd> -<dt><i>methods</i></dt> +<dt><i>methods</i> (list of str)</dt> <dd> list of method names of the class - (list of strings) </dd> -<dt><i>attributes</i></dt> +<dt><i>instanceAttributes</i> (list of str)</dt> <dd> -list of attribute names of the class - (list of strings) +list of instance attribute names of the class +</dd> +<dt><i>classAttributes</i> (list of str)</dt> +<dd> +list of class attribute names of the class </dd> </dl> -<a NAME="ClassModel.addAttribute" ID="ClassModel.addAttribute"></a> -<h4>ClassModel.addAttribute</h4> -<b>addAttribute</b>(<i>attribute</i>) +<a NAME="ClassModel.addClassAttribute" ID="ClassModel.addClassAttribute"></a> +<h4>ClassModel.addClassAttribute</h4> +<b>addClassAttribute</b>(<i>attribute</i>) <p> - Public method to add an attribute to the class model. + Public method to add a class attribute to the class model. </p> <dl> -<dt><i>attribute</i></dt> +<dt><i>attribute</i> (str)</dt> <dd> -attribute name to be added (string) +class attribute name to be added +</dd> +</dl> +<a NAME="ClassModel.addInstanceAttribute" ID="ClassModel.addInstanceAttribute"></a> +<h4>ClassModel.addInstanceAttribute</h4> +<b>addInstanceAttribute</b>(<i>attribute</i>) + +<p> + Public method to add an instance attribute to the class model. +</p> +<dl> + +<dt><i>attribute</i> (str)</dt> +<dd> +instance attribute name to be added </dd> </dl> <a NAME="ClassModel.addMethod" ID="ClassModel.addMethod"></a> @@ -361,14 +385,33 @@ </p> <dl> -<dt><i>method</i></dt> +<dt><i>method</i> (str)</dt> <dd> -method name to be added (string) +method name to be added </dd> </dl> -<a NAME="ClassModel.getAttributes" ID="ClassModel.getAttributes"></a> -<h4>ClassModel.getAttributes</h4> -<b>getAttributes</b>(<i></i>) +<a NAME="ClassModel.getClassAttributes" ID="ClassModel.getClassAttributes"></a> +<h4>ClassModel.getClassAttributes</h4> +<b>getClassAttributes</b>(<i></i>) + +<p> + Public method to retrieve the global attributes of the class. +</p> +<dl> +<dt>Return:</dt> +<dd> +list of class attributes +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +list of str +</dd> +</dl> +<a NAME="ClassModel.getInstanceAttributes" ID="ClassModel.getInstanceAttributes"></a> +<h4>ClassModel.getInstanceAttributes</h4> +<b>getInstanceAttributes</b>(<i></i>) <p> Public method to retrieve the attributes of the class. @@ -376,7 +419,13 @@ <dl> <dt>Return:</dt> <dd> -list of class attributes (list of strings) +list of instance attributes +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +list of str </dd> </dl> <a NAME="ClassModel.getMethods" ID="ClassModel.getMethods"></a> @@ -389,7 +438,13 @@ <dl> <dt>Return:</dt> <dd> -list of class methods (list of strings) +list of class methods +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +list of str </dd> </dl> <div align="right"><a href="#top">Up</a></div>