1145 @return flag indicating a symbolic link |
1145 @return flag indicating a symbolic link |
1146 @rtype bool |
1146 @rtype bool |
1147 """ |
1147 """ |
1148 return self.symlink |
1148 return self.symlink |
1149 |
1149 |
|
1150 def lineno(self): |
|
1151 """ |
|
1152 Public method to return the line number of the item. |
|
1153 |
|
1154 @return line number defining the object |
|
1155 @rtype int |
|
1156 """ |
|
1157 return 0 # just a placeholder implementation |
|
1158 |
|
1159 def colOffset(self): |
|
1160 """ |
|
1161 Public method to return the column offset of the item definition. |
|
1162 |
|
1163 @return column offset defining the object |
|
1164 @rtype int |
|
1165 """ |
|
1166 return 0 # default value |
|
1167 |
1150 |
1168 |
1151 class BrowserSimpleDirectoryItem(BrowserItem): |
1169 class BrowserSimpleDirectoryItem(BrowserItem): |
1152 """ |
1170 """ |
1153 Class implementing the data structure for browser simple directory items. |
1171 Class implementing the data structure for browser simple directory items. |
1154 """ |
1172 """ |
1785 @return tuple with start end end line number |
1803 @return tuple with start end end line number |
1786 @rtype tuple of (int, int) |
1804 @rtype tuple of (int, int) |
1787 """ |
1805 """ |
1788 return (self._classObject.lineno, self._classObject.endlineno) |
1806 return (self._classObject.lineno, self._classObject.endlineno) |
1789 |
1807 |
|
1808 def colOffset(self): |
|
1809 """ |
|
1810 Public method to return the column offset of the item definition. |
|
1811 |
|
1812 @return column offset defining the object |
|
1813 @rtype int |
|
1814 """ |
|
1815 return self._classObject.coloffset |
|
1816 |
1790 def lessThan(self, other, column, order): |
1817 def lessThan(self, other, column, order): |
1791 """ |
1818 """ |
1792 Public method to check, if the item is less than the other one. |
1819 Public method to check, if the item is less than the other one. |
1793 |
1820 |
1794 @param other reference to item to compare against |
1821 @param other reference to item to compare against |
1916 @return tuple with start end end line number |
1943 @return tuple with start end end line number |
1917 @rtype tuple of (int, int) |
1944 @rtype tuple of (int, int) |
1918 """ |
1945 """ |
1919 return (self._functionObject.lineno, self._functionObject.endlineno) |
1946 return (self._functionObject.lineno, self._functionObject.endlineno) |
1920 |
1947 |
|
1948 def colOffset(self): |
|
1949 """ |
|
1950 Public method to return the column offset of the item definition. |
|
1951 |
|
1952 @return column offset defining the object |
|
1953 @rtype int |
|
1954 """ |
|
1955 return self._functionObject.coloffset |
|
1956 |
1921 def lessThan(self, other, column, order): |
1957 def lessThan(self, other, column, order): |
1922 """ |
1958 """ |
1923 Public method to check, if the item is less than the other one. |
1959 Public method to check, if the item is less than the other one. |
1924 |
1960 |
1925 @param other reference to item to compare against |
1961 @param other reference to item to compare against |
2108 @return line number the object is assigned to |
2144 @return line number the object is assigned to |
2109 @rtype list of int |
2145 @rtype list of int |
2110 """ |
2146 """ |
2111 return self._attributeObject.linenos[:] |
2147 return self._attributeObject.linenos[:] |
2112 |
2148 |
|
2149 def colOffset(self): |
|
2150 """ |
|
2151 Public method to return the column offset of the item definition. |
|
2152 |
|
2153 @return column offset defining the object |
|
2154 @rtype int |
|
2155 """ |
|
2156 return self._attributeObject.coloffset |
|
2157 |
2113 def lessThan(self, other, column, order): |
2158 def lessThan(self, other, column, order): |
2114 """ |
2159 """ |
2115 Public method to check, if the item is less than the other one. |
2160 Public method to check, if the item is less than the other one. |
2116 |
2161 |
2117 @param other reference to item to compare against |
2162 @param other reference to item to compare against |