Sat, 14 Oct 2017 19:31:11 +0200
Added support for the extraction of source code documentation.
<!DOCTYPE html> <html><head> <title>Plugin_Refactoring_Rope.RefactoringRope.CodeAssistClient</title> <meta charset="UTF-8"> <style> body { background: #EDECE6; margin: 0em 1em 10em 1em; color: black; } h1 { color: white; background: #85774A; } h2 { color: white; background: #85774A; } h3 { color: white; background: #9D936E; } h4 { color: white; background: #9D936E; } a { color: #BA6D36; } </style> </head> <body><a NAME="top" ID="top"></a> <h1>Plugin_Refactoring_Rope.RefactoringRope.CodeAssistClient</h1> <p> Module implementing the code assist client interface to rope. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#CodeAssistClient">CodeAssistClient</a></td> <td>Class implementing the code assist client interface to rope.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /><hr /> <a NAME="CodeAssistClient" ID="CodeAssistClient"></a> <h2>CodeAssistClient</h2> <p> Class implementing the code assist client interface to rope. </p> <h3>Derived from</h3> JsonClient <h3>Class Attributes</h3> <table> <tr><td>PictureIDs</td></tr><tr><td>client</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#CodeAssistClient.__init__">CodeAssistClient</a></td> <td>Constructor</td> </tr><tr> <td><a href="#CodeAssistClient.__closeProject">__closeProject</a></td> <td>Private slot to validate the project.</td> </tr><tr> <td><a href="#CodeAssistClient.__configChanged">__configChanged</a></td> <td>Private method to handle a change of the configuration file.</td> </tr><tr> <td><a href="#CodeAssistClient.__getCallTips">__getCallTips</a></td> <td>Private method to calculate possible calltips.</td> </tr><tr> <td><a href="#CodeAssistClient.__getCompletions">__getCompletions</a></td> <td>Private method to calculate possible completions.</td> </tr><tr> <td><a href="#CodeAssistClient.__getConfig">__getConfig</a></td> <td>Private method to send some configuration data to the server.</td> </tr><tr> <td><a href="#CodeAssistClient.__getDocumentation">__getDocumentation</a></td> <td>Private method to get some source code documentation.</td> </tr><tr> <td><a href="#CodeAssistClient.__handleRopeError">__handleRopeError</a></td> <td>Private method to process a rope error.</td> </tr><tr> <td><a href="#CodeAssistClient.__processDocumentation">__processDocumentation</a></td> <td>Private method to process the call-tips and documentation.</td> </tr><tr> <td><a href="#CodeAssistClient.__reportChanged">__reportChanged</a></td> <td>Private method to register some changed sources.</td> </tr><tr> <td><a href="#CodeAssistClient.handleCall">handleCall</a></td> <td>Public method to handle a method call from the server.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="CodeAssistClient.__init__" ID="CodeAssistClient.__init__"></a> <h4>CodeAssistClient (Constructor)</h4> <b>CodeAssistClient</b>(<i>host, port, idString, projectPath</i>) <p> Constructor </p><dl> <dt><i>host</i> (str)</dt> <dd> ip address the background service is listening </dd><dt><i>port</i> (int)</dt> <dd> port of the background service </dd><dt><i>idString</i> (str)</dt> <dd> assigned client id to be sent back to the server in order to identify the connection </dd><dt><i>projectPath</i> (str)</dt> <dd> path to the project </dd> </dl><a NAME="CodeAssistClient.__closeProject" ID="CodeAssistClient.__closeProject"></a> <h4>CodeAssistClient.__closeProject</h4> <b>__closeProject</b>(<i>params</i>) <p> Private slot to validate the project. </p><dl> <dt><i>params</i> (dict)</dt> <dd> dictionary containing the method parameters sent by the server </dd> </dl><a NAME="CodeAssistClient.__configChanged" ID="CodeAssistClient.__configChanged"></a> <h4>CodeAssistClient.__configChanged</h4> <b>__configChanged</b>(<i>params</i>) <p> Private method to handle a change of the configuration file. </p><dl> <dt><i>params</i> (dict)</dt> <dd> dictionary containing the method parameters sent by the server </dd> </dl><a NAME="CodeAssistClient.__getCallTips" ID="CodeAssistClient.__getCallTips"></a> <h4>CodeAssistClient.__getCallTips</h4> <b>__getCallTips</b>(<i>params</i>) <p> Private method to calculate possible calltips. </p><dl> <dt><i>params</i> (dict)</dt> <dd> dictionary containing the method parameters </dd> </dl><a NAME="CodeAssistClient.__getCompletions" ID="CodeAssistClient.__getCompletions"></a> <h4>CodeAssistClient.__getCompletions</h4> <b>__getCompletions</b>(<i>params</i>) <p> Private method to calculate possible completions. </p><dl> <dt><i>params</i> (dict)</dt> <dd> dictionary containing the method parameters </dd> </dl><a NAME="CodeAssistClient.__getConfig" ID="CodeAssistClient.__getConfig"></a> <h4>CodeAssistClient.__getConfig</h4> <b>__getConfig</b>(<i>params</i>) <p> Private method to send some configuration data to the server. </p><dl> <dt><i>params</i> (dict)</dt> <dd> dictionary containing the method parameters sent by the server </dd> </dl><a NAME="CodeAssistClient.__getDocumentation" ID="CodeAssistClient.__getDocumentation"></a> <h4>CodeAssistClient.__getDocumentation</h4> <b>__getDocumentation</b>(<i>params</i>) <p> Private method to get some source code documentation. </p><dl> <dt><i>params</i> (dict)</dt> <dd> dictionary containing the method parameters </dd> </dl><a NAME="CodeAssistClient.__handleRopeError" ID="CodeAssistClient.__handleRopeError"></a> <h4>CodeAssistClient.__handleRopeError</h4> <b>__handleRopeError</b>(<i>err</i>) <p> Private method to process a rope error. </p><dl> <dt><i>err</i> (Exception)</dt> <dd> rope exception object </dd> </dl><dl> <dt>Returns:</dt> <dd> dictionary containing the error information </dd> </dl><dl> <dt>Return Type:</dt> <dd> dict </dd> </dl><a NAME="CodeAssistClient.__processDocumentation" ID="CodeAssistClient.__processDocumentation"></a> <h4>CodeAssistClient.__processDocumentation</h4> <b>__processDocumentation</b>(<i>cts, documentation</i>) <p> Private method to process the call-tips and documentation. </p><dl> <dt><i>cts</i> (str)</dt> <dd> call-tips </dd><dt><i>documentation</i> (str)</dt> <dd> extracted source code documentation </dd> </dl><dl> <dt>Returns:</dt> <dd> dictionary containing document information </dd> </dl><dl> <dt>Return Type:</dt> <dd> dictionary with keys "name", "argspec", "module" and "docstring" </dd> </dl><a NAME="CodeAssistClient.__reportChanged" ID="CodeAssistClient.__reportChanged"></a> <h4>CodeAssistClient.__reportChanged</h4> <b>__reportChanged</b>(<i>params</i>) <p> Private method to register some changed sources. </p><dl> <dt><i>params</i> (dict)</dt> <dd> dictionary containing the method parameters sent by the server </dd> </dl><a NAME="CodeAssistClient.handleCall" ID="CodeAssistClient.handleCall"></a> <h4>CodeAssistClient.handleCall</h4> <b>handleCall</b>(<i>method, params</i>) <p> Public method to handle a method call from the server. </p><dl> <dt><i>method</i> (str)</dt> <dd> requested method name </dd><dt><i>params</i> (dict)</dt> <dd> dictionary with method specific parameters </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>