src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Imports.ImportNode.html

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8877
548d45c3f571
child 9295
d14096c04126
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Imports.ImportNode</title>
4 <meta charset="UTF-8">
5 <link rel="stylesheet" href="styles.css">
6 </head>
7 <body>
8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Imports.ImportNode</h1>
10
11 <p>
12 Module implementing a class representing an import or import from node.
13 </p>
14 <h3>Global Attributes</h3>
15
16 <table>
17 <tr><td>None</td></tr>
18 </table>
19 <h3>Classes</h3>
20
21 <table>
22
23 <tr>
24 <td><a href="#ImportNode">ImportNode</a></td>
25 <td>Class representing an import or import from node.</td>
26 </tr>
27 <tr>
28 <td><a href="#ImportNodeException">ImportNodeException</a></td>
29 <td>Class representing an exception for an invalid import node.</td>
30 </tr>
31 </table>
32 <h3>Functions</h3>
33
34 <table>
35 <tr><td>None</td></tr>
36 </table>
37 <hr />
38 <hr />
39 <a NAME="ImportNode" ID="ImportNode"></a>
40 <h2>ImportNode</h2>
41
42 <p>
43 Class representing an import or import from node.
44 </p>
45 <h3>Derived from</h3>
46 None
47 <h3>Class Attributes</h3>
48
49 <table>
50 <tr><td>None</td></tr>
51 </table>
52 <h3>Class Methods</h3>
53
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58
59 <table>
60
61 <tr>
62 <td><a href="#ImportNode.__init__">ImportNode</a></td>
63 <td>Constructor</td>
64 </tr>
65 <tr>
66 <td><a href="#ImportNode.__eq__">__eq__</a></td>
67 <td>Special method implementing the equality operator.</td>
68 </tr>
69 <tr>
70 <td><a href="#ImportNode.__lt__">__lt__</a></td>
71 <td>Special method implementing the less than operator.</td>
72 </tr>
73 <tr>
74 <td><a href="#ImportNode.__str__">__str__</a></td>
75 <td>Special method to create a string representation of the instance.</td>
76 </tr>
77 </table>
78 <h3>Static Methods</h3>
79
80 <table>
81 <tr><td>None</td></tr>
82 </table>
83
84 <a NAME="ImportNode.__init__" ID="ImportNode.__init__"></a>
85 <h4>ImportNode (Constructor)</h4>
86 <b>ImportNode</b>(<i>appNames, astNode, checker</i>)
87
88 <p>
89 Constructor
90 </p>
91 <dl>
92
93 <dt><i>appNames</i> (list of str)</dt>
94 <dd>
95 list of application package names
96 </dd>
97 <dt><i>astNode</i> (ast.AST)</dt>
98 <dd>
99 reference to the ast node
100 </dd>
101 <dt><i>checker</i> (ImportsChecker)</dt>
102 <dd>
103 reference to the checker object
104 </dd>
105 </dl>
106 <dl>
107
108 <dt>Raises <b>ImportNodeException</b>:</dt>
109 <dd>
110 raised to indicate an invalid node was
111 given to this class
112 </dd>
113 </dl>
114 <a NAME="ImportNode.__eq__" ID="ImportNode.__eq__"></a>
115 <h4>ImportNode.__eq__</h4>
116 <b>__eq__</b>(<i>other</i>)
117
118 <p>
119 Special method implementing the equality operator.
120 </p>
121 <dl>
122
123 <dt><i>other</i> (ImportNode)</dt>
124 <dd>
125 reference to the object to compare
126 </dd>
127 </dl>
128 <dl>
129 <dt>Return:</dt>
130 <dd>
131 flag indicating equality
132 </dd>
133 </dl>
134 <dl>
135 <dt>Return Type:</dt>
136 <dd>
137 bool
138 </dd>
139 </dl>
140 <a NAME="ImportNode.__lt__" ID="ImportNode.__lt__"></a>
141 <h4>ImportNode.__lt__</h4>
142 <b>__lt__</b>(<i>other</i>)
143
144 <p>
145 Special method implementing the less than operator.
146 </p>
147 <dl>
148
149 <dt><i>other</i> (ImportNode)</dt>
150 <dd>
151 reference to the object to compare
152 </dd>
153 </dl>
154 <dl>
155 <dt>Return:</dt>
156 <dd>
157 flag indicating a less than situation
158 </dd>
159 </dl>
160 <dl>
161 <dt>Return Type:</dt>
162 <dd>
163 bool
164 </dd>
165 </dl>
166 <a NAME="ImportNode.__str__" ID="ImportNode.__str__"></a>
167 <h4>ImportNode.__str__</h4>
168 <b>__str__</b>(<i></i>)
169
170 <p>
171 Special method to create a string representation of the instance.
172 </p>
173 <dl>
174 <dt>Return:</dt>
175 <dd>
176 string representation of the instance
177 </dd>
178 </dl>
179 <dl>
180 <dt>Return Type:</dt>
181 <dd>
182 str
183 </dd>
184 </dl>
185 <dl>
186
187 <dt>Raises <b>ImportNodeException</b>:</dt>
188 <dd>
189 raised to indicate an invalid node was
190 given to this class
191 </dd>
192 </dl>
193 <div align="right"><a href="#top">Up</a></div>
194 <hr />
195 <hr />
196 <a NAME="ImportNodeException" ID="ImportNodeException"></a>
197 <h2>ImportNodeException</h2>
198
199 <p>
200 Class representing an exception for an invalid import node.
201 </p>
202 <h3>Derived from</h3>
203 Exception
204 <h3>Class Attributes</h3>
205
206 <table>
207 <tr><td>None</td></tr>
208 </table>
209 <h3>Class Methods</h3>
210
211 <table>
212 <tr><td>None</td></tr>
213 </table>
214 <h3>Methods</h3>
215
216 <table>
217 <tr><td>None</td></tr>
218 </table>
219 <h3>Static Methods</h3>
220
221 <table>
222 <tr><td>None</td></tr>
223 </table>
224
225 <div align="right"><a href="#top">Up</a></div>
226 <hr />
227 </body></html>

eric ide

mercurial