Documentation/Source/eric5.Utilities.ModuleParser.html

changeset 1358
c1622c708cd9
parent 1302
95538c8d07c1
child 2367
78f6c8193d37
equal deleted inserted replaced
1357:68fb0a7677ff 1358:c1622c708cd9
33 for the file.</li> 33 for the file.</li>
34 </ul> 34 </ul>
35 </p> 35 </p>
36 <h3>Global Attributes</h3> 36 <h3>Global Attributes</h3>
37 <table> 37 <table>
38 <tr><td>PTL_SOURCE</td></tr><tr><td>RB_SOURCE</td></tr><tr><td>SUPPORTED_TYPES</td></tr><tr><td>TABWIDTH</td></tr><tr><td>__all__</td></tr><tr><td>_commentsub</td></tr><tr><td>_hashsub</td></tr><tr><td>_modules</td></tr><tr><td>_py_getnext</td></tr><tr><td>_rb_getnext</td></tr> 38 <tr><td>PARSEABLE_TYPES</td></tr><tr><td>PTL_SOURCE</td></tr><tr><td>RB_SOURCE</td></tr><tr><td>SUPPORTED_TYPES</td></tr><tr><td>TABWIDTH</td></tr><tr><td>TYPE_MAPPING</td></tr><tr><td>__all__</td></tr><tr><td>_commentsub</td></tr><tr><td>_hashsub</td></tr><tr><td>_modules</td></tr><tr><td>_py_getnext</td></tr><tr><td>_rb_getnext</td></tr>
39 </table> 39 </table>
40 <h3>Classes</h3> 40 <h3>Classes</h3>
41 <table> 41 <table>
42 <tr> 42 <tr>
43 <td><a href="#Attribute">Attribute</a></td> 43 <td><a href="#Attribute">Attribute</a></td>
65 <td><a href="#_indent">_indent</a></td> 65 <td><a href="#_indent">_indent</a></td>
66 <td>Protected function to determine the indent width of a whitespace string.</td> 66 <td>Protected function to determine the indent width of a whitespace string.</td>
67 </tr><tr> 67 </tr><tr>
68 <td><a href="#find_module">find_module</a></td> 68 <td><a href="#find_module">find_module</a></td>
69 <td>Module function to extend the Python module finding mechanism.</td> 69 <td>Module function to extend the Python module finding mechanism.</td>
70 </tr><tr>
71 <td><a href="#getTypeFromTypeName">getTypeFromTypeName</a></td>
72 <td>Module function to determine the module type given the module type name.</td>
70 </tr><tr> 73 </tr><tr>
71 <td><a href="#readModule">readModule</a></td> 74 <td><a href="#readModule">readModule</a></td>
72 <td>Function to read a module file and parse it.</td> 75 <td>Function to read a module file and parse it.</td>
73 </tr><tr> 76 </tr><tr>
74 <td><a href="#resetParsedModule">resetParsedModule</a></td> 77 <td><a href="#resetParsedModule">resetParsedModule</a></td>
856 The file or module wasn't found. 859 The file or module wasn't found.
857 </dd> 860 </dd>
858 </dl> 861 </dl>
859 <div align="right"><a href="#top">Up</a></div> 862 <div align="right"><a href="#top">Up</a></div>
860 <hr /><hr /> 863 <hr /><hr />
864 <a NAME="getTypeFromTypeName" ID="getTypeFromTypeName"></a>
865 <h2>getTypeFromTypeName</h2>
866 <b>getTypeFromTypeName</b>(<i>name</i>)
867 <p>
868 Module function to determine the module type given the module type name.
869 </p><dl>
870 <dt><i>name</i></dt>
871 <dd>
872 module type name (string)
873 </dd>
874 </dl><dl>
875 <dt>Returns:</dt>
876 <dd>
877 module type or -1 for failure (integer)
878 </dd>
879 </dl>
880 <div align="right"><a href="#top">Up</a></div>
881 <hr /><hr />
861 <a NAME="readModule" ID="readModule"></a> 882 <a NAME="readModule" ID="readModule"></a>
862 <h2>readModule</h2> 883 <h2>readModule</h2>
863 <b>readModule</b>(<i>module, path=[], inpackage=False, basename="", extensions=None, caching=True</i>) 884 <b>readModule</b>(<i>module, path=[], inpackage=False, basename="", extensions=None, caching=True</i>)
864 <p> 885 <p>
865 Function to read a module file and parse it. 886 Function to read a module file and parse it.

eric ide

mercurial