author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 19 Jul 2017 09:42:32 +0200 | |
branch | jv |
changeset 17619 | edb119820fcb |
parent 15950 | 23be8cf85415 |
permissions | -rw-r--r-- |
9890 | 1 |
" |
2 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libtool' }" |
|
13 |
||
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
Object subclass:#Tag |
|
17 |
instanceVariableNames:'width label pattern lineNumber fileName className' |
|
18 |
classVariableNames:'' |
|
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-Tools-File-Tags' |
|
21 |
! |
|
22 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
23 |
Tag subclass:#TElement |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
24 |
instanceVariableNames:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
25 |
classVariableNames:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
26 |
poolDictionaries:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
27 |
privateIn:Tag |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
28 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
29 |
|
13772 | 30 |
Tag subclass:#TCaseLabel |
31 |
instanceVariableNames:'' |
|
32 |
classVariableNames:'' |
|
33 |
poolDictionaries:'' |
|
34 |
privateIn:Tag |
|
35 |
! |
|
36 |
||
9890 | 37 |
Tag subclass:#TClass |
38 |
instanceVariableNames:'' |
|
39 |
classVariableNames:'' |
|
40 |
poolDictionaries:'' |
|
41 |
privateIn:Tag |
|
42 |
! |
|
43 |
||
9923 | 44 |
Tag subclass:#TDocumentation |
45 |
instanceVariableNames:'' |
|
46 |
classVariableNames:'' |
|
47 |
poolDictionaries:'' |
|
48 |
privateIn:Tag |
|
49 |
! |
|
50 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
51 |
Tag::TElement subclass:#TAnchorElement |
9890 | 52 |
instanceVariableNames:'' |
53 |
classVariableNames:'' |
|
54 |
poolDictionaries:'' |
|
55 |
privateIn:Tag |
|
56 |
! |
|
57 |
||
58 |
Tag subclass:#TEnum |
|
59 |
instanceVariableNames:'' |
|
60 |
classVariableNames:'' |
|
61 |
poolDictionaries:'' |
|
62 |
privateIn:Tag |
|
63 |
! |
|
64 |
||
65 |
Tag subclass:#TEnumMember |
|
66 |
instanceVariableNames:'' |
|
67 |
classVariableNames:'' |
|
68 |
poolDictionaries:'' |
|
69 |
privateIn:Tag |
|
70 |
! |
|
71 |
||
72 |
Tag subclass:#TField |
|
73 |
instanceVariableNames:'' |
|
74 |
classVariableNames:'' |
|
75 |
poolDictionaries:'' |
|
76 |
privateIn:Tag |
|
77 |
! |
|
78 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
79 |
Tag::TElement subclass:#TFormElement |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
80 |
instanceVariableNames:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
81 |
classVariableNames:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
82 |
poolDictionaries:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
83 |
privateIn:Tag |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
84 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
85 |
|
9890 | 86 |
Tag subclass:#TFunction |
87 |
instanceVariableNames:'' |
|
88 |
classVariableNames:'' |
|
89 |
poolDictionaries:'' |
|
90 |
privateIn:Tag |
|
91 |
! |
|
92 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
93 |
Tag::TElement subclass:#THeaderElement |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
94 |
instanceVariableNames:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
95 |
classVariableNames:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
96 |
poolDictionaries:'' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
97 |
privateIn:Tag |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
98 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
99 |
|
9890 | 100 |
Tag subclass:#TInterface |
101 |
instanceVariableNames:'' |
|
102 |
classVariableNames:'' |
|
103 |
poolDictionaries:'' |
|
104 |
privateIn:Tag |
|
105 |
! |
|
106 |
||
107 |
Tag subclass:#TLabel |
|
108 |
instanceVariableNames:'' |
|
109 |
classVariableNames:'' |
|
110 |
poolDictionaries:'' |
|
111 |
privateIn:Tag |
|
112 |
! |
|
113 |
||
114 |
Tag subclass:#TLispConstant |
|
115 |
instanceVariableNames:'' |
|
116 |
classVariableNames:'' |
|
117 |
poolDictionaries:'' |
|
118 |
privateIn:Tag |
|
119 |
! |
|
120 |
||
121 |
Tag subclass:#TLispEval |
|
122 |
instanceVariableNames:'' |
|
123 |
classVariableNames:'' |
|
124 |
poolDictionaries:'' |
|
125 |
privateIn:Tag |
|
126 |
! |
|
127 |
||
128 |
Tag subclass:#TLispMacro |
|
129 |
instanceVariableNames:'' |
|
130 |
classVariableNames:'' |
|
131 |
poolDictionaries:'' |
|
132 |
privateIn:Tag |
|
133 |
! |
|
134 |
||
135 |
Tag subclass:#TMacro |
|
136 |
instanceVariableNames:'' |
|
137 |
classVariableNames:'' |
|
138 |
poolDictionaries:'' |
|
139 |
privateIn:Tag |
|
140 |
! |
|
141 |
||
142 |
Tag subclass:#TMakeRule |
|
143 |
instanceVariableNames:'' |
|
144 |
classVariableNames:'' |
|
145 |
poolDictionaries:'' |
|
146 |
privateIn:Tag |
|
147 |
! |
|
148 |
||
149 |
Tag subclass:#TMakeTarget |
|
150 |
instanceVariableNames:'' |
|
151 |
classVariableNames:'' |
|
152 |
poolDictionaries:'' |
|
153 |
privateIn:Tag |
|
154 |
! |
|
155 |
||
156 |
Tag subclass:#TMember |
|
157 |
instanceVariableNames:'' |
|
158 |
classVariableNames:'' |
|
159 |
poolDictionaries:'' |
|
160 |
privateIn:Tag |
|
161 |
! |
|
162 |
||
163 |
Tag subclass:#TMethod |
|
13449 | 164 |
instanceVariableNames:'isMeta' |
9890 | 165 |
classVariableNames:'' |
166 |
poolDictionaries:'' |
|
167 |
privateIn:Tag |
|
168 |
! |
|
169 |
||
170 |
Tag subclass:#TPackage |
|
171 |
instanceVariableNames:'' |
|
172 |
classVariableNames:'' |
|
173 |
poolDictionaries:'' |
|
174 |
privateIn:Tag |
|
175 |
! |
|
176 |
||
177 |
Tag subclass:#TPrologClause |
|
178 |
instanceVariableNames:'' |
|
179 |
classVariableNames:'' |
|
180 |
poolDictionaries:'' |
|
181 |
privateIn:Tag |
|
182 |
! |
|
183 |
||
184 |
Tag subclass:#TStruct |
|
185 |
instanceVariableNames:'' |
|
186 |
classVariableNames:'' |
|
187 |
poolDictionaries:'' |
|
188 |
privateIn:Tag |
|
189 |
! |
|
190 |
||
191 |
Tag subclass:#TTypedef |
|
192 |
instanceVariableNames:'' |
|
193 |
classVariableNames:'' |
|
194 |
poolDictionaries:'' |
|
195 |
privateIn:Tag |
|
196 |
! |
|
197 |
||
198 |
Tag subclass:#TUnion |
|
199 |
instanceVariableNames:'' |
|
200 |
classVariableNames:'' |
|
201 |
poolDictionaries:'' |
|
202 |
privateIn:Tag |
|
203 |
! |
|
204 |
||
205 |
Tag subclass:#TVariable |
|
206 |
instanceVariableNames:'' |
|
207 |
classVariableNames:'' |
|
208 |
poolDictionaries:'' |
|
209 |
privateIn:Tag |
|
210 |
! |
|
211 |
||
212 |
!Tag class methodsFor:'documentation'! |
|
213 |
||
214 |
copyright |
|
215 |
" |
|
216 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
217 |
All Rights Reserved |
|
218 |
||
219 |
This software is furnished under a license and may be used |
|
220 |
only in accordance with the terms of that license and with the |
|
221 |
inclusion of the above copyright notice. This software may not |
|
222 |
be provided or otherwise made available to, or used by, any |
|
223 |
other person. No title to or ownership of the software is |
|
224 |
hereby transferred. |
|
225 |
||
226 |
||
227 |
" |
|
10052 | 228 |
! |
229 |
||
230 |
documentation |
|
231 |
" |
|
10053 | 232 |
keeps the info for a single tag (for the fileBrowser, for example); |
10052 | 233 |
either read from an external tool (ctags) or generated internally |
234 |
" |
|
9890 | 235 |
! ! |
236 |
||
237 |
!Tag class methodsFor:'instance creation'! |
|
238 |
||
239 |
label:aLabel pattern:aPattern |
|
240 |
^ self label:aLabel pattern:aPattern type:nil lineNumber:nil className:nil |
|
241 |
||
242 |
! |
|
243 |
||
244 |
label:aLabel pattern:aPattern type:tagTypeString |
|
245 |
||
246 |
^ self label:aLabel pattern:aPattern type:tagTypeString lineNumber:nil className:nil |
|
247 |
! |
|
248 |
||
249 |
label:aLabel pattern:aPattern type:tagTypeString lineNumber:aLineNumer |
|
250 |
||
251 |
^ self label:aLabel pattern:aPattern type:tagTypeString lineNumber:aLineNumer className:nil |
|
252 |
! |
|
253 |
||
254 |
label:aLabel pattern:aPattern type:tagTypeString lineNumber:aLineNumer className:cName |
|
255 |
|tid cls tag| |
|
256 |
||
257 |
((self == Tag) and:[tagTypeString size == 1]) ifTrue:[ |
|
258 |
tid := tagTypeString asString. |
|
259 |
cls := self subclasses detect:[:aClass| aClass typeIdentifier = tid ] |
|
260 |
ifNone:self. |
|
261 |
] ifFalse:[ |
|
262 |
cls := self |
|
263 |
]. |
|
264 |
tag := cls new. |
|
265 |
tag label:aLabel pattern:aPattern lineNumber:aLineNumer className:cName. |
|
266 |
^ tag |
|
267 |
||
268 |
"Modified: / 05-05-2011 / 15:42:45 / cg" |
|
269 |
! ! |
|
270 |
||
271 |
!Tag class methodsFor:'accessing'! |
|
272 |
||
273 |
typeIdentifier |
|
274 |
^ nil |
|
275 |
||
276 |
||
277 |
! ! |
|
278 |
||
279 |
!Tag methodsFor:'accessing'! |
|
280 |
||
281 |
fileName |
|
282 |
"returns the fileName (project tags only) |
|
283 |
" |
|
284 |
^ fileName |
|
285 |
||
286 |
||
287 |
! |
|
288 |
||
289 |
fileName:aFilename |
|
290 |
"set the fileName (project tags only) |
|
291 |
" |
|
292 |
fileName := aFilename |
|
293 |
||
294 |
! |
|
295 |
||
296 |
label |
|
297 |
^ label |
|
298 |
||
299 |
! |
|
300 |
||
301 |
lineNumber |
|
302 |
"returns the lineNumber computed at beginning |
|
303 |
" |
|
304 |
^ lineNumber ? 0 |
|
305 |
||
306 |
! |
|
307 |
||
308 |
lineNumber:aNumber |
|
309 |
"set the lineNumber computed at beginning |
|
310 |
" |
|
311 |
lineNumber := aNumber. |
|
312 |
||
313 |
! |
|
314 |
||
315 |
pattern |
|
316 |
"returns the pattern string, used to detect the line into a |
|
317 |
contents |
|
318 |
" |
|
319 |
^ pattern |
|
320 |
||
321 |
! |
|
322 |
||
323 |
typeIdentifierInList |
|
324 |
^ self class typeIdentifier |
|
325 |
! |
|
326 |
||
327 |
typeString |
|
328 |
^ '???' |
|
329 |
! ! |
|
330 |
||
331 |
!Tag methodsFor:'instance creation'! |
|
332 |
||
333 |
label:aLabel pattern:aPattern lineNumber:aLineNumer className:cName |
|
334 |
||
335 |
label := aLabel. |
|
336 |
pattern := aPattern. |
|
337 |
lineNumber := aLineNumer. |
|
338 |
||
339 |
cName size > 1 ifTrue:[ |
|
340 |
cName first isLetter ifFalse:[ |
|
341 |
className := cName copyFrom:2 |
|
342 |
] ifTrue:[ |
|
343 |
className := cName |
|
344 |
] |
|
345 |
] |
|
346 |
||
347 |
! ! |
|
348 |
||
349 |
!Tag methodsFor:'list interface'! |
|
350 |
||
351 |
explainString |
|
352 |
|s t| |
|
353 |
||
354 |
s := label , ' is a ' , self typeString. |
|
355 |
fileName notNil ifTrue:[ |
|
356 |
s := s , ' in ', fileName pathName. |
|
357 |
]. |
|
358 |
^ s |
|
359 |
||
360 |
||
361 |
! |
|
362 |
||
363 |
printString |
|
364 |
"returns the label used in a list |
|
365 |
" |
|
366 |
|l type| |
|
367 |
||
368 |
l := label. |
|
369 |
className notNil ifTrue:[ |
|
370 |
l := className , '::' , l |
|
371 |
]. |
|
372 |
"/ |
|
373 |
"/ type := self class typeIdentifier. |
|
374 |
"/ |
|
375 |
"/ type notNil ifTrue:[ |
|
376 |
"/ ^ type, ' ' , l |
|
377 |
"/ ]. |
|
378 |
^ l |
|
379 |
! |
|
380 |
||
381 |
printStringWithoutClass |
|
382 |
"returns a short label (used in a list when all labels are for the same class) |
|
383 |
" |
|
384 |
|l type| |
|
385 |
||
386 |
l := label. |
|
387 |
className notNil ifTrue:[ |
|
388 |
l := '::' , l |
|
389 |
]. |
|
390 |
"/ |
|
391 |
"/ type := self class typeIdentifier. |
|
392 |
"/ |
|
393 |
"/ type notNil ifTrue:[ |
|
394 |
"/ ^ type, ' ' , l |
|
395 |
"/ ]. |
|
396 |
^ l |
|
14440 | 397 |
! |
398 |
||
399 |
shortInfoString |
|
400 |
|s| |
|
401 |
||
402 |
s := self typeString. |
|
403 |
fileName notNil ifTrue:[ |
|
14441 | 404 |
s := s , ' in ', fileName baseName "pathName". |
14440 | 405 |
]. |
406 |
^ s |
|
9890 | 407 |
! ! |
408 |
||
409 |
!Tag methodsFor:'queries'! |
|
410 |
||
411 |
widthOn:aGC |
|
412 |
||
413 |
width isNil ifTrue:[ |
|
414 |
width := self printString widthOn:aGC |
|
415 |
]. |
|
416 |
^ width |
|
417 |
! ! |
|
418 |
||
419 |
!Tag methodsFor:'tag searching'! |
|
420 |
||
421 |
lineNumberIn:someText |
|
422 |
|pat lnr atStart atEnd| |
|
423 |
||
424 |
(lineNumber notNil and:[lineNumber ~~ 0]) ifTrue:[ |
|
425 |
^ lineNumber |
|
426 |
]. |
|
427 |
||
428 |
(pat := self pattern) isNil ifTrue:[ |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
429 |
lineNumber := 1. |
9890 | 430 |
^ lineNumber |
431 |
]. |
|
432 |
||
433 |
(pat endsWith:';"') ifTrue:[ |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
434 |
lnr := Integer readFrom:pat onError:nil. |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
435 |
lnr notNil ifTrue:[ |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
436 |
^ lnr |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
437 |
] |
9890 | 438 |
]. |
439 |
lnr := 0. |
|
440 |
||
441 |
"/ (pat endsWith:'/;"') ifTrue:[ |
|
13804 | 442 |
"/ pat := pat copyButLast:3. |
9890 | 443 |
"/ ]. |
444 |
(pat startsWith:$^) ifTrue:[ |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
445 |
pat := pat copyFrom:2. |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
446 |
atStart := true. |
9890 | 447 |
]. |
448 |
(pat endsWith:$$) ifTrue:[ |
|
14581 | 449 |
pat := pat copyButLast. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
450 |
atEnd := true. |
9890 | 451 |
]. |
452 |
atStart == true ifTrue:[ |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
453 |
atEnd == true ifTrue:[ |
14581 | 454 |
lnr := someText findFirst:[:line | line = pat]. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
455 |
] ifFalse:[ |
14581 | 456 |
lnr := someText findFirst:[:line | line startsWith:pat]. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
457 |
] |
9890 | 458 |
] ifFalse:[ |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
459 |
atEnd == true ifTrue:[ |
14581 | 460 |
lnr := someText findFirst:[:line | line endsWith:pat]. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
461 |
] ifFalse:[ |
14581 | 462 |
lnr := someText findFirst:[:line | line includesString:pat]. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
463 |
]. |
9890 | 464 |
]. |
465 |
||
466 |
lnr == 0 ifTrue:[ |
|
14581 | 467 |
lnr := someText findFirst:[:line | line includesString:self label]. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
468 |
lnr == 0 ifTrue:[ |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
469 |
lnr := 1. |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
470 |
]. |
9890 | 471 |
]. |
472 |
^ lnr |
|
473 |
! ! |
|
474 |
||
475 |
!Tag methodsFor:'testing'! |
|
476 |
||
477 |
isClassTag |
|
478 |
"return true, if this is a java class tag |
|
479 |
" |
|
480 |
^ false |
|
481 |
||
482 |
||
483 |
! |
|
484 |
||
9923 | 485 |
isDocumentationTag |
486 |
"return true, if this is a doc tag |
|
487 |
" |
|
488 |
^ false |
|
489 |
||
490 |
"Created: / 08-05-2011 / 10:06:11 / cg" |
|
491 |
! |
|
492 |
||
9890 | 493 |
isEnumMemberTag |
494 |
^ false |
|
495 |
||
496 |
"Created: / 05-05-2011 / 15:38:56 / cg" |
|
497 |
! |
|
498 |
||
499 |
isEnumTag |
|
500 |
^ false |
|
501 |
||
502 |
"Created: / 05-05-2011 / 15:37:23 / cg" |
|
503 |
! |
|
504 |
||
505 |
isFieldTag |
|
506 |
"return true, if this is a java field tag |
|
507 |
" |
|
508 |
^ false |
|
509 |
||
510 |
||
511 |
! |
|
512 |
||
14432 | 513 |
isFunctionOrMethodTag |
514 |
"return true, if this is a function or a method tag |
|
515 |
" |
|
516 |
^ false |
|
517 |
! |
|
518 |
||
9890 | 519 |
isFunctionTag |
520 |
"return true, if this is a function tag |
|
521 |
" |
|
522 |
^ false |
|
523 |
||
524 |
||
525 |
! |
|
526 |
||
527 |
isInterfaceTag |
|
528 |
"return true, if this is a java interface tag |
|
529 |
" |
|
530 |
^ false |
|
531 |
||
532 |
||
533 |
! |
|
534 |
||
535 |
isLabelTag |
|
536 |
"return true, if this is a label tag |
|
537 |
" |
|
538 |
^ false |
|
539 |
||
540 |
||
541 |
! |
|
542 |
||
543 |
isLispConstantTag |
|
544 |
"return true, if this is a lisp constant tag |
|
545 |
" |
|
546 |
^ false |
|
547 |
||
548 |
||
549 |
! |
|
550 |
||
551 |
isLispEvalTag |
|
552 |
"return true, if this is a lisp eval tag |
|
553 |
" |
|
554 |
^ false |
|
555 |
! |
|
556 |
||
557 |
isLispMacroTag |
|
558 |
"return true, if this is a lisp macro tag |
|
559 |
" |
|
560 |
^ false |
|
561 |
! |
|
562 |
||
563 |
isMacroTag |
|
564 |
"return true, if this is a define macro tag |
|
565 |
" |
|
566 |
^ false |
|
567 |
||
568 |
||
569 |
! |
|
570 |
||
571 |
isMakeTargetTag |
|
572 |
"return true, if this is a make-target tag |
|
573 |
" |
|
574 |
^ false |
|
575 |
||
576 |
||
577 |
! |
|
578 |
||
579 |
isMemberTag |
|
580 |
"return true, if this is a struct/union member tag |
|
581 |
" |
|
582 |
^ false |
|
583 |
||
584 |
||
585 |
! |
|
586 |
||
587 |
isMethodTag |
|
588 |
"return true, if this is a java method tag |
|
589 |
" |
|
590 |
^ false |
|
591 |
||
592 |
||
593 |
! |
|
594 |
||
595 |
isPackageTag |
|
596 |
"return true, if this is a java package tag |
|
597 |
" |
|
598 |
^ false |
|
599 |
||
600 |
||
601 |
! |
|
602 |
||
603 |
isPrologClause |
|
604 |
"return true, if this is a prolog clause tag |
|
605 |
" |
|
606 |
^ false |
|
607 |
! |
|
608 |
||
609 |
isStructOrUnionTag |
|
610 |
"return true, if this is a union tag |
|
611 |
" |
|
612 |
^ false |
|
613 |
||
614 |
"Created: / 05-05-2011 / 15:07:33 / cg" |
|
615 |
! |
|
616 |
||
617 |
isStructTag |
|
15770 | 618 |
"return true, if this is a struct tag" |
619 |
||
9890 | 620 |
^ false |
15770 | 621 |
! |
9890 | 622 |
|
15770 | 623 |
isTypeTag |
624 |
"return true, if this is any type tag (typedef, struct, union, enum, ...)" |
|
9890 | 625 |
|
15770 | 626 |
^ false |
9890 | 627 |
! |
628 |
||
629 |
isTypedefTag |
|
15770 | 630 |
"return true, if this is a typedef tag" |
631 |
||
9890 | 632 |
^ false |
633 |
! |
|
634 |
||
635 |
isUnionTag |
|
636 |
"return true, if this is a union tag |
|
637 |
" |
|
638 |
^ false |
|
639 |
||
640 |
"Created: / 05-05-2011 / 15:07:29 / cg" |
|
641 |
! |
|
642 |
||
643 |
isVariableTag |
|
644 |
"return true, if this is a variable tag |
|
645 |
" |
|
646 |
^ false |
|
647 |
||
648 |
||
649 |
! ! |
|
650 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
651 |
!Tag::TElement class methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
652 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
653 |
typeIdentifier |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
654 |
^ 'e' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
655 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
656 |
"Created: / 20-04-2011 / 18:52:31 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
657 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
658 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
659 |
!Tag::TElement class methodsFor:'documentation'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
660 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
661 |
documentation |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
662 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
663 |
an element (as in HTML) |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
664 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
665 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
666 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
667 |
!Tag::TElement methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
668 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
669 |
typeIdentifierInList |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
670 |
^ 'e' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
671 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
672 |
"Created: / 20-04-2011 / 18:53:49 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
673 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
674 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
675 |
typeString |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
676 |
^ 'element' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
677 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
678 |
"Created: / 20-04-2011 / 18:53:29 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
679 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
680 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
681 |
!Tag::TElement methodsFor:'testing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
682 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
683 |
isElementTag |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
684 |
"return true, if this is an element tag |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
685 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
686 |
^ true |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
687 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
688 |
"Created: / 20-04-2011 / 18:53:16 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
689 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
690 |
|
13772 | 691 |
!Tag::TCaseLabel class methodsFor:'accessing'! |
692 |
||
693 |
typeIdentifier |
|
694 |
^ 'L' |
|
695 |
! ! |
|
696 |
||
697 |
!Tag::TCaseLabel methodsFor:'accessing'! |
|
698 |
||
699 |
typeString |
|
700 |
^ 'case label' |
|
701 |
! ! |
|
702 |
||
703 |
!Tag::TCaseLabel methodsFor:'testing'! |
|
704 |
||
705 |
isCaseLabelTag |
|
706 |
"return true, if this is a case label tag |
|
707 |
" |
|
708 |
^ true |
|
709 |
! |
|
710 |
||
711 |
isLabelTag |
|
712 |
"return true, if this is a label tag |
|
713 |
" |
|
714 |
^ true |
|
715 |
||
716 |
||
717 |
! ! |
|
718 |
||
9890 | 719 |
!Tag::TClass class methodsFor:'accessing'! |
720 |
||
721 |
typeIdentifier |
|
722 |
^ 'C' |
|
723 |
||
724 |
"Modified: / 05-05-2011 / 15:40:47 / cg" |
|
725 |
! ! |
|
726 |
||
727 |
!Tag::TClass class methodsFor:'documentation'! |
|
728 |
||
729 |
documentation |
|
730 |
" |
|
731 |
a class-like object |
|
732 |
" |
|
733 |
! ! |
|
734 |
||
735 |
!Tag::TClass methodsFor:'accessing'! |
|
736 |
||
737 |
typeIdentifierInList |
|
738 |
^ 'C' |
|
739 |
||
740 |
! |
|
741 |
||
742 |
typeString |
|
743 |
^ 'class' |
|
744 |
||
745 |
! ! |
|
746 |
||
747 |
!Tag::TClass methodsFor:'testing'! |
|
748 |
||
749 |
isClassTag |
|
750 |
"return true, if this is a class tag |
|
751 |
" |
|
752 |
^ true |
|
753 |
||
754 |
||
15770 | 755 |
! |
756 |
||
757 |
isTypeTag |
|
758 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
759 |
||
760 |
^ true |
|
9890 | 761 |
! ! |
762 |
||
9923 | 763 |
!Tag::TDocumentation class methodsFor:'accessing'! |
764 |
||
765 |
typeIdentifier |
|
766 |
^ 'D' |
|
767 |
||
768 |
"Modified: / 08-05-2011 / 10:06:26 / cg" |
|
769 |
! ! |
|
770 |
||
771 |
!Tag::TDocumentation class methodsFor:'documentation'! |
|
772 |
||
773 |
documentation |
|
774 |
" |
|
775 |
this is a synthetic element, used to mark special |
|
776 |
documentation found in some languages: |
|
777 |
lisp: lines starting with ';;;' |
|
778 |
java (could detect @xxx javadoc or similar in the future) |
|
779 |
" |
|
780 |
! ! |
|
781 |
||
782 |
!Tag::TDocumentation methodsFor:'accessing'! |
|
783 |
||
784 |
typeString |
|
785 |
^ 'documentation' |
|
786 |
||
787 |
"Modified: / 08-05-2011 / 10:05:52 / cg" |
|
788 |
! ! |
|
789 |
||
790 |
!Tag::TDocumentation methodsFor:'testing'! |
|
791 |
||
792 |
isDocumentationTag |
|
793 |
"return true, if this is a doc tag |
|
794 |
" |
|
795 |
^ true |
|
796 |
||
797 |
"Created: / 08-05-2011 / 10:06:03 / cg" |
|
798 |
! ! |
|
799 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
800 |
!Tag::TAnchorElement class methodsFor:'accessing'! |
9890 | 801 |
|
802 |
typeIdentifier |
|
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
803 |
^ 'a' |
9890 | 804 |
|
805 |
"Created: / 20-04-2011 / 18:52:31 / cg" |
|
806 |
! ! |
|
807 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
808 |
!Tag::TAnchorElement class methodsFor:'documentation'! |
9890 | 809 |
|
810 |
documentation |
|
811 |
" |
|
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
812 |
an anchor element (in HTML) |
9890 | 813 |
" |
814 |
! ! |
|
815 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
816 |
!Tag::TAnchorElement methodsFor:'accessing'! |
9890 | 817 |
|
818 |
typeIdentifierInList |
|
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
819 |
^ 'a' |
9890 | 820 |
|
821 |
"Created: / 20-04-2011 / 18:53:49 / cg" |
|
822 |
! |
|
823 |
||
824 |
typeString |
|
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
825 |
^ 'anchor element' |
9890 | 826 |
|
827 |
"Created: / 20-04-2011 / 18:53:29 / cg" |
|
828 |
! ! |
|
829 |
||
830 |
!Tag::TEnum class methodsFor:'accessing'! |
|
831 |
||
832 |
typeIdentifier |
|
833 |
^ 'E' |
|
834 |
||
835 |
"Modified: / 05-05-2011 / 15:40:54 / cg" |
|
836 |
! ! |
|
837 |
||
838 |
!Tag::TEnum methodsFor:'accessing'! |
|
839 |
||
840 |
typeString |
|
841 |
^ 'enum' |
|
842 |
||
843 |
"Modified: / 05-05-2011 / 15:37:03 / cg" |
|
844 |
! ! |
|
845 |
||
846 |
!Tag::TEnum methodsFor:'testing'! |
|
847 |
||
848 |
isEnumTag |
|
849 |
^ true |
|
850 |
||
851 |
"Created: / 05-05-2011 / 15:37:15 / cg" |
|
15770 | 852 |
! |
853 |
||
854 |
isTypeTag |
|
855 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
856 |
||
857 |
^ true |
|
9890 | 858 |
! ! |
859 |
||
860 |
!Tag::TEnumMember class methodsFor:'accessing'! |
|
861 |
||
862 |
typeIdentifier |
|
863 |
^ 'e' |
|
864 |
||
865 |
"Modified: / 05-05-2011 / 15:40:57 / cg" |
|
866 |
! ! |
|
867 |
||
868 |
!Tag::TEnumMember methodsFor:'accessing'! |
|
869 |
||
870 |
typeString |
|
871 |
^ 'enum member' |
|
872 |
||
873 |
"Modified: / 05-05-2011 / 15:39:05 / cg" |
|
874 |
! ! |
|
875 |
||
876 |
!Tag::TEnumMember methodsFor:'testing'! |
|
877 |
||
878 |
isEnumMemberTag |
|
879 |
^ true |
|
880 |
||
881 |
"Created: / 05-05-2011 / 15:38:49 / cg" |
|
882 |
! ! |
|
883 |
||
884 |
!Tag::TField class methodsFor:'accessing'! |
|
885 |
||
886 |
typeIdentifier |
|
887 |
^ 'f' |
|
888 |
||
889 |
||
890 |
! ! |
|
891 |
||
892 |
!Tag::TField methodsFor:'accessing'! |
|
893 |
||
894 |
typeString |
|
895 |
^ 'field' |
|
896 |
||
897 |
! ! |
|
898 |
||
899 |
!Tag::TField methodsFor:'testing'! |
|
900 |
||
901 |
isFieldTag |
|
902 |
"return true, if this is a java field tag |
|
903 |
" |
|
904 |
^ true |
|
905 |
||
906 |
||
907 |
! ! |
|
908 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
909 |
!Tag::TFormElement class methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
910 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
911 |
typeIdentifier |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
912 |
^ 'f' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
913 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
914 |
"Created: / 20-04-2011 / 18:52:31 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
915 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
916 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
917 |
!Tag::TFormElement class methodsFor:'documentation'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
918 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
919 |
documentation |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
920 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
921 |
a form element (in HTML) |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
922 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
923 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
924 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
925 |
!Tag::TFormElement methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
926 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
927 |
typeIdentifierInList |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
928 |
^ 'f' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
929 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
930 |
"Created: / 20-04-2011 / 18:53:49 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
931 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
932 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
933 |
typeString |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
934 |
^ 'form element' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
935 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
936 |
"Created: / 20-04-2011 / 18:53:29 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
937 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
938 |
|
9890 | 939 |
!Tag::TFunction class methodsFor:'accessing'! |
940 |
||
941 |
typeIdentifier |
|
942 |
^ 'F' |
|
943 |
||
944 |
"Modified: / 05-05-2011 / 15:41:04 / cg" |
|
945 |
! ! |
|
946 |
||
947 |
!Tag::TFunction methodsFor:'accessing'! |
|
948 |
||
949 |
typeIdentifierInList |
|
950 |
^ 'F' |
|
951 |
||
952 |
||
953 |
! |
|
954 |
||
955 |
typeString |
|
956 |
^ 'function' |
|
957 |
||
958 |
||
959 |
! ! |
|
960 |
||
961 |
!Tag::TFunction methodsFor:'testing'! |
|
962 |
||
14432 | 963 |
isFunctionOrMethodTag |
964 |
"return true, if this is a function or method tag |
|
965 |
" |
|
966 |
^ true |
|
967 |
! |
|
968 |
||
9890 | 969 |
isFunctionTag |
970 |
"return true, if this is a function tag |
|
971 |
" |
|
972 |
^ true |
|
973 |
||
974 |
||
975 |
! ! |
|
976 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
977 |
!Tag::THeaderElement class methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
978 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
979 |
typeIdentifier |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
980 |
^ 'h' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
981 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
982 |
"Created: / 20-04-2011 / 18:52:31 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
983 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
984 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
985 |
!Tag::THeaderElement class methodsFor:'documentation'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
986 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
987 |
documentation |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
988 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
989 |
a header element (in HTML) |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
990 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
991 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
992 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
993 |
!Tag::THeaderElement methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
994 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
995 |
typeIdentifierInList |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
996 |
^ 'h' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
997 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
998 |
"Created: / 20-04-2011 / 18:53:49 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
999 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1000 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1001 |
typeString |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1002 |
^ 'header element' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1003 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1004 |
"Created: / 20-04-2011 / 18:53:29 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1005 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1006 |
|
9890 | 1007 |
!Tag::TInterface class methodsFor:'accessing'! |
1008 |
||
1009 |
typeIdentifier |
|
1010 |
^ 'I' |
|
1011 |
||
1012 |
"Modified: / 05-05-2011 / 15:41:08 / cg" |
|
1013 |
! ! |
|
1014 |
||
1015 |
!Tag::TInterface methodsFor:'accessing'! |
|
1016 |
||
1017 |
typeString |
|
1018 |
^ 'interface' |
|
1019 |
||
1020 |
||
1021 |
! ! |
|
1022 |
||
1023 |
!Tag::TInterface methodsFor:'testing'! |
|
1024 |
||
1025 |
isInterfaceTag |
|
1026 |
"return true, if this is a java interface tag |
|
1027 |
" |
|
1028 |
^ true |
|
1029 |
||
1030 |
||
15770 | 1031 |
! |
1032 |
||
1033 |
isTypeTag |
|
1034 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
1035 |
||
1036 |
^ true |
|
9890 | 1037 |
! ! |
1038 |
||
1039 |
!Tag::TLabel class methodsFor:'accessing'! |
|
1040 |
||
1041 |
typeIdentifier |
|
1042 |
^ 'l' |
|
1043 |
||
1044 |
||
1045 |
! ! |
|
1046 |
||
1047 |
!Tag::TLabel methodsFor:'accessing'! |
|
1048 |
||
1049 |
typeString |
|
1050 |
^ 'label' |
|
1051 |
||
1052 |
||
1053 |
! ! |
|
1054 |
||
1055 |
!Tag::TLabel methodsFor:'testing'! |
|
1056 |
||
1057 |
isLabelTag |
|
1058 |
"return true, if this is a label tag |
|
1059 |
" |
|
1060 |
^ true |
|
1061 |
||
1062 |
||
1063 |
! ! |
|
1064 |
||
1065 |
!Tag::TLispConstant class methodsFor:'accessing'! |
|
1066 |
||
1067 |
typeIdentifier |
|
1068 |
^ 'c' |
|
1069 |
||
1070 |
||
1071 |
! ! |
|
1072 |
||
1073 |
!Tag::TLispConstant methodsFor:'accessing'! |
|
1074 |
||
1075 |
typeString |
|
1076 |
^ 'const' |
|
1077 |
||
1078 |
||
1079 |
! ! |
|
1080 |
||
1081 |
!Tag::TLispConstant methodsFor:'testing'! |
|
1082 |
||
1083 |
isLispConstantTag |
|
1084 |
"return true, if this is a lisp constant tag |
|
1085 |
" |
|
1086 |
^ true |
|
1087 |
||
1088 |
||
1089 |
! ! |
|
1090 |
||
1091 |
!Tag::TLispEval class methodsFor:'accessing'! |
|
1092 |
||
1093 |
typeIdentifier |
|
1094 |
^ 'E' |
|
1095 |
||
1096 |
||
1097 |
! ! |
|
1098 |
||
1099 |
!Tag::TLispEval methodsFor:'accessing'! |
|
1100 |
||
1101 |
printString |
|
1102 |
^ "'eval '," super printString |
|
1103 |
! |
|
1104 |
||
1105 |
typeString |
|
1106 |
^ 'eval' |
|
1107 |
||
1108 |
||
1109 |
! ! |
|
1110 |
||
1111 |
!Tag::TLispEval methodsFor:'testing'! |
|
1112 |
||
1113 |
isLispEvalTag |
|
1114 |
"return true, if this is a lisp eval tag |
|
1115 |
" |
|
1116 |
^ true |
|
1117 |
||
1118 |
||
1119 |
! ! |
|
1120 |
||
1121 |
!Tag::TLispMacro class methodsFor:'accessing'! |
|
1122 |
||
1123 |
typeIdentifier |
|
1124 |
^ 'm' |
|
1125 |
||
1126 |
||
1127 |
! ! |
|
1128 |
||
1129 |
!Tag::TLispMacro methodsFor:'accessing'! |
|
1130 |
||
1131 |
typeString |
|
1132 |
^ 'macro' |
|
1133 |
||
1134 |
||
1135 |
! ! |
|
1136 |
||
1137 |
!Tag::TLispMacro methodsFor:'testing'! |
|
1138 |
||
1139 |
isLispMacroTag |
|
1140 |
"return true, if this is a define macro tag |
|
1141 |
" |
|
1142 |
^ true |
|
1143 |
||
1144 |
||
1145 |
! ! |
|
1146 |
||
1147 |
!Tag::TMacro class methodsFor:'accessing'! |
|
1148 |
||
1149 |
typeIdentifier |
|
1150 |
^ 'd' |
|
1151 |
||
1152 |
||
1153 |
! ! |
|
1154 |
||
1155 |
!Tag::TMacro methodsFor:'accessing'! |
|
1156 |
||
1157 |
typeString |
|
1158 |
^ 'macro' |
|
1159 |
||
1160 |
||
1161 |
! ! |
|
1162 |
||
1163 |
!Tag::TMacro methodsFor:'testing'! |
|
1164 |
||
1165 |
isMacroTag |
|
14432 | 1166 |
"return true, if this is a define macro / macro tag |
9890 | 1167 |
" |
1168 |
^ true |
|
1169 |
! ! |
|
1170 |
||
1171 |
!Tag::TMakeRule class methodsFor:'accessing'! |
|
1172 |
||
1173 |
typeIdentifier |
|
1174 |
^ 'R' |
|
1175 |
! ! |
|
1176 |
||
1177 |
!Tag::TMakeRule methodsFor:'accessing'! |
|
1178 |
||
1179 |
typeString |
|
1180 |
^ 'rule' |
|
1181 |
! ! |
|
1182 |
||
1183 |
!Tag::TMakeRule methodsFor:'testing'! |
|
1184 |
||
1185 |
isMakeTargetTag |
|
1186 |
"return true, if this is a make-target tag |
|
1187 |
" |
|
1188 |
^ true |
|
1189 |
||
1190 |
||
1191 |
! ! |
|
1192 |
||
1193 |
!Tag::TMakeTarget class methodsFor:'accessing'! |
|
1194 |
||
1195 |
typeIdentifier |
|
1196 |
^ 'T' |
|
1197 |
||
1198 |
||
1199 |
! ! |
|
1200 |
||
1201 |
!Tag::TMakeTarget methodsFor:'accessing'! |
|
1202 |
||
1203 |
typeString |
|
1204 |
^ 'target' |
|
1205 |
||
1206 |
||
1207 |
! ! |
|
1208 |
||
1209 |
!Tag::TMakeTarget methodsFor:'testing'! |
|
1210 |
||
1211 |
isMakeTargetTag |
|
1212 |
"return true, if this is a make-target tag |
|
1213 |
" |
|
1214 |
^ true |
|
1215 |
||
1216 |
||
1217 |
! ! |
|
1218 |
||
1219 |
!Tag::TMember class methodsFor:'accessing'! |
|
1220 |
||
1221 |
typeIdentifier |
|
1222 |
^ 'm' |
|
1223 |
||
1224 |
||
1225 |
! ! |
|
1226 |
||
1227 |
!Tag::TMember methodsFor:'accessing'! |
|
1228 |
||
1229 |
typeString |
|
1230 |
^ 'struct/union member' |
|
1231 |
||
1232 |
||
1233 |
! ! |
|
1234 |
||
1235 |
!Tag::TMember methodsFor:'testing'! |
|
1236 |
||
1237 |
isMemberTag |
|
1238 |
"return true, if this is a struct/union member tag |
|
1239 |
" |
|
1240 |
^ true |
|
1241 |
||
1242 |
||
1243 |
! ! |
|
1244 |
||
1245 |
!Tag::TMethod class methodsFor:'accessing'! |
|
1246 |
||
1247 |
typeIdentifier |
|
1248 |
^ 'M' |
|
1249 |
||
1250 |
"Modified: / 05-05-2011 / 15:41:29 / cg" |
|
1251 |
! ! |
|
1252 |
||
1253 |
!Tag::TMethod methodsFor:'accessing'! |
|
1254 |
||
13449 | 1255 |
isMeta |
1256 |
^ isMeta |
|
1257 |
! |
|
1258 |
||
1259 |
isMeta:aBoolean |
|
1260 |
isMeta := aBoolean. |
|
1261 |
! |
|
1262 |
||
9890 | 1263 |
typeIdentifierInList |
13449 | 1264 |
^ isMeta ifTrue:['M'] ifFalse:['m'] |
9890 | 1265 |
! |
1266 |
||
1267 |
typeString |
|
1268 |
^ 'method' |
|
1269 |
||
1270 |
! ! |
|
1271 |
||
1272 |
!Tag::TMethod methodsFor:'testing'! |
|
1273 |
||
14432 | 1274 |
isFunctionOrMethodTag |
1275 |
"return true, if this is a function or method tag |
|
9890 | 1276 |
" |
1277 |
^ true |
|
14432 | 1278 |
! |
9890 | 1279 |
|
14432 | 1280 |
isMethodTag |
1281 |
"return true, if this is a method tag |
|
1282 |
" |
|
1283 |
^ true |
|
9890 | 1284 |
! ! |
1285 |
||
1286 |
!Tag::TPackage class methodsFor:'accessing'! |
|
1287 |
||
1288 |
typeIdentifier |
|
1289 |
^ 'P' |
|
1290 |
||
1291 |
"Modified: / 05-05-2011 / 15:41:35 / cg" |
|
1292 |
! ! |
|
1293 |
||
1294 |
!Tag::TPackage methodsFor:'accessing'! |
|
1295 |
||
1296 |
typeString |
|
1297 |
^ 'package' |
|
1298 |
||
1299 |
||
1300 |
! ! |
|
1301 |
||
1302 |
!Tag::TPackage methodsFor:'testing'! |
|
1303 |
||
1304 |
isPackageTag |
|
1305 |
"return true, if this is a java package tag |
|
1306 |
" |
|
1307 |
^ true |
|
1308 |
||
1309 |
||
1310 |
! ! |
|
1311 |
||
1312 |
!Tag::TPrologClause class methodsFor:'accessing'! |
|
1313 |
||
1314 |
typeIdentifier |
|
1315 |
^ 'C' |
|
1316 |
||
1317 |
||
1318 |
! ! |
|
1319 |
||
1320 |
!Tag::TPrologClause methodsFor:'accessing'! |
|
1321 |
||
1322 |
typeString |
|
1323 |
^ 'clause' |
|
1324 |
||
1325 |
||
1326 |
! ! |
|
1327 |
||
1328 |
!Tag::TPrologClause methodsFor:'testing'! |
|
1329 |
||
1330 |
isPrologClause |
|
1331 |
"return true, if this is a prolog clause tag |
|
1332 |
" |
|
1333 |
^ true |
|
1334 |
||
1335 |
||
1336 |
! ! |
|
1337 |
||
1338 |
!Tag::TStruct class methodsFor:'accessing'! |
|
1339 |
||
1340 |
typeIdentifier |
|
1341 |
^ 'S' |
|
1342 |
||
1343 |
"Modified: / 05-05-2011 / 15:41:42 / cg" |
|
1344 |
! ! |
|
1345 |
||
1346 |
!Tag::TStruct methodsFor:'accessing'! |
|
1347 |
||
1348 |
typeString |
|
1349 |
^ 'struct' |
|
1350 |
||
1351 |
||
1352 |
! ! |
|
1353 |
||
1354 |
!Tag::TStruct methodsFor:'testing'! |
|
1355 |
||
1356 |
isStructOrUnionTag |
|
1357 |
^ true |
|
1358 |
||
1359 |
"Created: / 05-05-2011 / 15:07:51 / cg" |
|
1360 |
! |
|
1361 |
||
1362 |
isStructTag |
|
1363 |
"return true, if this is a struct tag |
|
1364 |
" |
|
1365 |
^ true |
|
1366 |
||
1367 |
||
15770 | 1368 |
! |
1369 |
||
1370 |
isTypeTag |
|
1371 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
1372 |
||
1373 |
^ true |
|
9890 | 1374 |
! ! |
1375 |
||
1376 |
!Tag::TTypedef class methodsFor:'accessing'! |
|
1377 |
||
1378 |
typeIdentifier |
|
1379 |
^ 'T' |
|
1380 |
||
1381 |
"Modified: / 05-05-2011 / 15:41:46 / cg" |
|
1382 |
! ! |
|
1383 |
||
1384 |
!Tag::TTypedef methodsFor:'accessing'! |
|
1385 |
||
1386 |
typeString |
|
1387 |
^ 'typedef' |
|
1388 |
||
1389 |
||
1390 |
! ! |
|
1391 |
||
1392 |
!Tag::TTypedef methodsFor:'testing'! |
|
1393 |
||
15770 | 1394 |
isTypeTag |
1395 |
"return true, if this is any type tag (typedef, struct, union, enum, ...)" |
|
1396 |
||
1397 |
^ true |
|
1398 |
! |
|
1399 |
||
9890 | 1400 |
isTypedefTag |
15770 | 1401 |
"return true, if this is a typedef tag" |
1402 |
||
9890 | 1403 |
^ true |
1404 |
! ! |
|
1405 |
||
1406 |
!Tag::TUnion class methodsFor:'accessing'! |
|
1407 |
||
1408 |
typeIdentifier |
|
1409 |
^ 'U' |
|
1410 |
||
1411 |
"Modified: / 05-05-2011 / 15:41:50 / cg" |
|
1412 |
! ! |
|
1413 |
||
1414 |
!Tag::TUnion methodsFor:'accessing'! |
|
1415 |
||
1416 |
typeString |
|
1417 |
^ 'union' |
|
1418 |
||
1419 |
"Modified: / 05-05-2011 / 15:07:12 / cg" |
|
1420 |
! ! |
|
1421 |
||
1422 |
!Tag::TUnion methodsFor:'testing'! |
|
1423 |
||
1424 |
isStructOrUnionTag |
|
1425 |
^ true |
|
1426 |
||
1427 |
"Created: / 05-05-2011 / 15:07:41 / cg" |
|
1428 |
! |
|
1429 |
||
15770 | 1430 |
isTypeTag |
1431 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
1432 |
||
1433 |
^ true |
|
1434 |
! |
|
1435 |
||
9890 | 1436 |
isUnionTag |
1437 |
"return true, if this is a union tag |
|
1438 |
" |
|
1439 |
^ true |
|
1440 |
||
1441 |
"Created: / 05-05-2011 / 15:07:00 / cg" |
|
1442 |
! ! |
|
1443 |
||
1444 |
!Tag::TVariable class methodsFor:'accessing'! |
|
1445 |
||
1446 |
typeIdentifier |
|
1447 |
^ 'v' |
|
1448 |
||
1449 |
||
1450 |
! ! |
|
1451 |
||
1452 |
!Tag::TVariable methodsFor:'accessing'! |
|
1453 |
||
1454 |
typeString |
|
1455 |
^ 'variable' |
|
1456 |
||
1457 |
||
1458 |
! ! |
|
1459 |
||
1460 |
!Tag::TVariable methodsFor:'testing'! |
|
1461 |
||
1462 |
isVariableTag |
|
1463 |
"return true, if this is a variable tag |
|
1464 |
" |
|
1465 |
^ true |
|
1466 |
||
1467 |
||
1468 |
! ! |
|
1469 |
||
1470 |
!Tag class methodsFor:'documentation'! |
|
1471 |
||
14440 | 1472 |
version |
15770 | 1473 |
^ '$Header$' |
14440 | 1474 |
! |
1475 |
||
9890 | 1476 |
version_CVS |
15770 | 1477 |
^ '$Header$' |
10052 | 1478 |
! |
1479 |
||
15950 | 1480 |
version_HG |
1481 |
||
1482 |
^ '$Changeset: <not expanded> $' |
|
1483 |
! |
|
1484 |
||
10052 | 1485 |
version_SVN |
15770 | 1486 |
^ '$Id$' |
9890 | 1487 |
! ! |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
1488 |