author | Claus Gittinger <cg@exept.de> |
Mon, 20 Jan 2020 21:02:47 +0100 | |
changeset 19422 | c6ca1c3e0fd7 |
parent 18953 | 1b0540f687a9 |
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 |
||
18830 | 409 |
!Tag methodsFor:'printing & storing'! |
410 |
||
411 |
printOn:aStream |
|
412 |
aStream nextPutAll:self className. |
|
413 |
aStream nextPutAll:'(label='. |
|
414 |
label printOn:aStream. |
|
415 |
aStream nextPutAll:' lineNr='. |
|
416 |
lineNumber printOn:aStream. |
|
417 |
aStream nextPutAll:')'. |
|
418 |
||
419 |
"Created: / 21-06-2019 / 11:59:09 / Claus Gittinger" |
|
420 |
! ! |
|
421 |
||
9890 | 422 |
!Tag methodsFor:'queries'! |
423 |
||
424 |
widthOn:aGC |
|
425 |
||
426 |
width isNil ifTrue:[ |
|
427 |
width := self printString widthOn:aGC |
|
428 |
]. |
|
429 |
^ width |
|
430 |
! ! |
|
431 |
||
432 |
!Tag methodsFor:'tag searching'! |
|
433 |
||
18667 | 434 |
lineNumberIn:someStringCollectionOrFilename |
435 |
"search the tag and return the line nr or 0, if not found. |
|
436 |
search either in the collection of lines or the file's contents. |
|
437 |
This is called with the contents for small files, |
|
438 |
but with the fileName for huge ones" |
|
439 |
||
440 |
|pat lnr atStartOfLine atEndOfLine findFirst| |
|
9890 | 441 |
|
442 |
(lineNumber notNil and:[lineNumber ~~ 0]) ifTrue:[ |
|
443 |
^ lineNumber |
|
444 |
]. |
|
445 |
||
446 |
(pat := self pattern) isNil ifTrue:[ |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
447 |
lineNumber := 1. |
18667 | 448 |
^ lineNumber |
9890 | 449 |
]. |
450 |
||
451 |
(pat endsWith:';"') ifTrue:[ |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
452 |
lnr := Integer readFrom:pat onError:nil. |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
453 |
lnr notNil ifTrue:[ |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
454 |
^ lnr |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
455 |
] |
9890 | 456 |
]. |
457 |
lnr := 0. |
|
458 |
||
459 |
"/ (pat endsWith:'/;"') ifTrue:[ |
|
13804 | 460 |
"/ pat := pat copyButLast:3. |
9890 | 461 |
"/ ]. |
462 |
(pat startsWith:$^) ifTrue:[ |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
463 |
pat := pat copyFrom:2. |
18667 | 464 |
atStartOfLine := true. |
9890 | 465 |
]. |
466 |
(pat endsWith:$$) ifTrue:[ |
|
14581 | 467 |
pat := pat copyButLast. |
18667 | 468 |
atEndOfLine := true. |
9890 | 469 |
]. |
18667 | 470 |
|
471 |
"/ search either in the collection of lines or the file's contents |
|
472 |
findFirst := |
|
473 |
[:comparer | |
|
474 |
someStringCollectionOrFilename isFilename ifTrue:[ |
|
475 |
[:exit | |
|
476 |
|lineNr| |
|
477 |
lineNr := 1. |
|
478 |
someStringCollectionOrFilename readingLinesDo:[:line | |
|
479 |
(comparer value:line) ifTrue:[exit value:lineNr]. |
|
480 |
lineNr := lineNr + 1. |
|
481 |
] |
|
482 |
] valueWithExit |
|
483 |
] ifFalse:[ |
|
484 |
someStringCollectionOrFilename findFirst:comparer |
|
485 |
]. |
|
486 |
]. |
|
487 |
||
488 |
atStartOfLine == true ifTrue:[ |
|
489 |
atEndOfLine == true ifTrue:[ |
|
490 |
lnr := findFirst value:[:line | line = pat]. |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
491 |
] ifFalse:[ |
18667 | 492 |
lnr := findFirst value:[:line | line startsWith:pat]. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
493 |
] |
9890 | 494 |
] ifFalse:[ |
18667 | 495 |
atEndOfLine == true ifTrue:[ |
496 |
lnr := findFirst value:[:line | line endsWith:pat]. |
|
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
497 |
] ifFalse:[ |
18667 | 498 |
lnr := findFirst value:[:line | line includesString:pat]. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
499 |
]. |
9890 | 500 |
]. |
501 |
||
502 |
lnr == 0 ifTrue:[ |
|
18667 | 503 |
lnr := findFirst value:[:line | line includesString:self label]. |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
504 |
lnr == 0 ifTrue:[ |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
505 |
lnr := 1. |
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
506 |
]. |
9890 | 507 |
]. |
508 |
^ lnr |
|
18667 | 509 |
|
510 |
"Modified: / 12-03-2019 / 15:08:32 / Claus Gittinger" |
|
9890 | 511 |
! ! |
512 |
||
513 |
!Tag methodsFor:'testing'! |
|
514 |
||
515 |
isClassTag |
|
516 |
"return true, if this is a java class tag |
|
517 |
" |
|
518 |
^ false |
|
519 |
||
520 |
||
521 |
! |
|
522 |
||
9923 | 523 |
isDocumentationTag |
524 |
"return true, if this is a doc tag |
|
525 |
" |
|
526 |
^ false |
|
527 |
||
528 |
"Created: / 08-05-2011 / 10:06:11 / cg" |
|
529 |
! |
|
530 |
||
9890 | 531 |
isEnumMemberTag |
532 |
^ false |
|
533 |
||
534 |
"Created: / 05-05-2011 / 15:38:56 / cg" |
|
535 |
! |
|
536 |
||
537 |
isEnumTag |
|
538 |
^ false |
|
539 |
||
540 |
"Created: / 05-05-2011 / 15:37:23 / cg" |
|
541 |
! |
|
542 |
||
543 |
isFieldTag |
|
544 |
"return true, if this is a java field tag |
|
545 |
" |
|
546 |
^ false |
|
547 |
||
548 |
||
549 |
! |
|
550 |
||
14432 | 551 |
isFunctionOrMethodTag |
552 |
"return true, if this is a function or a method tag |
|
553 |
" |
|
554 |
^ false |
|
555 |
! |
|
556 |
||
9890 | 557 |
isFunctionTag |
558 |
"return true, if this is a function tag |
|
559 |
" |
|
560 |
^ false |
|
561 |
||
562 |
||
563 |
! |
|
564 |
||
565 |
isInterfaceTag |
|
566 |
"return true, if this is a java interface tag |
|
567 |
" |
|
568 |
^ false |
|
569 |
||
570 |
||
571 |
! |
|
572 |
||
573 |
isLabelTag |
|
574 |
"return true, if this is a label tag |
|
575 |
" |
|
576 |
^ false |
|
577 |
||
578 |
||
579 |
! |
|
580 |
||
581 |
isLispConstantTag |
|
582 |
"return true, if this is a lisp constant tag |
|
583 |
" |
|
584 |
^ false |
|
585 |
||
586 |
||
587 |
! |
|
588 |
||
589 |
isLispEvalTag |
|
590 |
"return true, if this is a lisp eval tag |
|
591 |
" |
|
592 |
^ false |
|
593 |
! |
|
594 |
||
595 |
isLispMacroTag |
|
596 |
"return true, if this is a lisp macro tag |
|
597 |
" |
|
598 |
^ false |
|
599 |
! |
|
600 |
||
601 |
isMacroTag |
|
602 |
"return true, if this is a define macro tag |
|
603 |
" |
|
604 |
^ false |
|
605 |
||
606 |
||
607 |
! |
|
608 |
||
609 |
isMakeTargetTag |
|
610 |
"return true, if this is a make-target tag |
|
611 |
" |
|
612 |
^ false |
|
613 |
||
614 |
||
615 |
! |
|
616 |
||
617 |
isMemberTag |
|
618 |
"return true, if this is a struct/union member tag |
|
619 |
" |
|
620 |
^ false |
|
621 |
||
622 |
||
623 |
! |
|
624 |
||
625 |
isMethodTag |
|
626 |
"return true, if this is a java method tag |
|
627 |
" |
|
628 |
^ false |
|
629 |
||
630 |
||
631 |
! |
|
632 |
||
633 |
isPackageTag |
|
634 |
"return true, if this is a java package tag |
|
635 |
" |
|
636 |
^ false |
|
637 |
||
638 |
||
639 |
! |
|
640 |
||
641 |
isPrologClause |
|
642 |
"return true, if this is a prolog clause tag |
|
643 |
" |
|
644 |
^ false |
|
645 |
! |
|
646 |
||
647 |
isStructOrUnionTag |
|
648 |
"return true, if this is a union tag |
|
649 |
" |
|
650 |
^ false |
|
651 |
||
652 |
"Created: / 05-05-2011 / 15:07:33 / cg" |
|
653 |
! |
|
654 |
||
655 |
isStructTag |
|
15770 | 656 |
"return true, if this is a struct tag" |
657 |
||
9890 | 658 |
^ false |
15770 | 659 |
! |
9890 | 660 |
|
15770 | 661 |
isTypeTag |
662 |
"return true, if this is any type tag (typedef, struct, union, enum, ...)" |
|
9890 | 663 |
|
15770 | 664 |
^ false |
9890 | 665 |
! |
666 |
||
667 |
isTypedefTag |
|
15770 | 668 |
"return true, if this is a typedef tag" |
669 |
||
9890 | 670 |
^ false |
671 |
! |
|
672 |
||
673 |
isUnionTag |
|
674 |
"return true, if this is a union tag |
|
675 |
" |
|
676 |
^ false |
|
677 |
||
678 |
"Created: / 05-05-2011 / 15:07:29 / cg" |
|
679 |
! |
|
680 |
||
681 |
isVariableTag |
|
682 |
"return true, if this is a variable tag |
|
683 |
" |
|
684 |
^ false |
|
685 |
||
686 |
||
687 |
! ! |
|
688 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
689 |
!Tag::TElement class methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
690 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
691 |
typeIdentifier |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
692 |
^ 'e' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
693 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
694 |
"Created: / 20-04-2011 / 18:52:31 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
695 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
696 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
697 |
!Tag::TElement class methodsFor:'documentation'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
698 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
699 |
documentation |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
700 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
701 |
an element (as in HTML) |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
702 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
703 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
704 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
705 |
!Tag::TElement methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
706 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
707 |
typeIdentifierInList |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
708 |
^ 'e' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
709 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
710 |
"Created: / 20-04-2011 / 18:53:49 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
711 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
712 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
713 |
typeString |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
714 |
^ 'element' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
715 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
716 |
"Created: / 20-04-2011 / 18:53:29 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
717 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
718 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
719 |
!Tag::TElement methodsFor:'testing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
720 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
721 |
isElementTag |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
722 |
"return true, if this is an element tag |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
723 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
724 |
^ true |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
725 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
726 |
"Created: / 20-04-2011 / 18:53:16 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
727 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
728 |
|
13772 | 729 |
!Tag::TCaseLabel class methodsFor:'accessing'! |
730 |
||
731 |
typeIdentifier |
|
732 |
^ 'L' |
|
733 |
! ! |
|
734 |
||
735 |
!Tag::TCaseLabel methodsFor:'accessing'! |
|
736 |
||
737 |
typeString |
|
738 |
^ 'case label' |
|
739 |
! ! |
|
740 |
||
741 |
!Tag::TCaseLabel methodsFor:'testing'! |
|
742 |
||
743 |
isCaseLabelTag |
|
744 |
"return true, if this is a case label tag |
|
745 |
" |
|
746 |
^ true |
|
747 |
! |
|
748 |
||
749 |
isLabelTag |
|
750 |
"return true, if this is a label tag |
|
751 |
" |
|
752 |
^ true |
|
753 |
||
754 |
||
755 |
! ! |
|
756 |
||
9890 | 757 |
!Tag::TClass class methodsFor:'accessing'! |
758 |
||
759 |
typeIdentifier |
|
760 |
^ 'C' |
|
761 |
||
762 |
"Modified: / 05-05-2011 / 15:40:47 / cg" |
|
763 |
! ! |
|
764 |
||
765 |
!Tag::TClass class methodsFor:'documentation'! |
|
766 |
||
767 |
documentation |
|
768 |
" |
|
769 |
a class-like object |
|
770 |
" |
|
771 |
! ! |
|
772 |
||
773 |
!Tag::TClass methodsFor:'accessing'! |
|
774 |
||
775 |
typeIdentifierInList |
|
776 |
^ 'C' |
|
777 |
||
778 |
! |
|
779 |
||
780 |
typeString |
|
781 |
^ 'class' |
|
782 |
||
783 |
! ! |
|
784 |
||
785 |
!Tag::TClass methodsFor:'testing'! |
|
786 |
||
787 |
isClassTag |
|
788 |
"return true, if this is a class tag |
|
789 |
" |
|
790 |
^ true |
|
791 |
||
792 |
||
15770 | 793 |
! |
794 |
||
795 |
isTypeTag |
|
796 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
797 |
||
798 |
^ true |
|
9890 | 799 |
! ! |
800 |
||
9923 | 801 |
!Tag::TDocumentation class methodsFor:'accessing'! |
802 |
||
803 |
typeIdentifier |
|
804 |
^ 'D' |
|
805 |
||
806 |
"Modified: / 08-05-2011 / 10:06:26 / cg" |
|
807 |
! ! |
|
808 |
||
809 |
!Tag::TDocumentation class methodsFor:'documentation'! |
|
810 |
||
811 |
documentation |
|
812 |
" |
|
813 |
this is a synthetic element, used to mark special |
|
814 |
documentation found in some languages: |
|
815 |
lisp: lines starting with ';;;' |
|
816 |
java (could detect @xxx javadoc or similar in the future) |
|
817 |
" |
|
818 |
! ! |
|
819 |
||
820 |
!Tag::TDocumentation methodsFor:'accessing'! |
|
821 |
||
822 |
typeString |
|
823 |
^ 'documentation' |
|
824 |
||
825 |
"Modified: / 08-05-2011 / 10:05:52 / cg" |
|
826 |
! ! |
|
827 |
||
828 |
!Tag::TDocumentation methodsFor:'testing'! |
|
829 |
||
830 |
isDocumentationTag |
|
831 |
"return true, if this is a doc tag |
|
832 |
" |
|
833 |
^ true |
|
834 |
||
835 |
"Created: / 08-05-2011 / 10:06:03 / cg" |
|
836 |
! ! |
|
837 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
838 |
!Tag::TAnchorElement class methodsFor:'accessing'! |
9890 | 839 |
|
840 |
typeIdentifier |
|
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
841 |
^ 'a' |
9890 | 842 |
|
843 |
"Created: / 20-04-2011 / 18:52:31 / cg" |
|
844 |
! ! |
|
845 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
846 |
!Tag::TAnchorElement class methodsFor:'documentation'! |
9890 | 847 |
|
848 |
documentation |
|
849 |
" |
|
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
850 |
an anchor element (in HTML) |
9890 | 851 |
" |
852 |
! ! |
|
853 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
854 |
!Tag::TAnchorElement methodsFor:'accessing'! |
9890 | 855 |
|
856 |
typeIdentifierInList |
|
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
857 |
^ 'a' |
9890 | 858 |
|
859 |
"Created: / 20-04-2011 / 18:53:49 / cg" |
|
860 |
! |
|
861 |
||
862 |
typeString |
|
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
863 |
^ 'anchor element' |
9890 | 864 |
|
865 |
"Created: / 20-04-2011 / 18:53:29 / cg" |
|
866 |
! ! |
|
867 |
||
868 |
!Tag::TEnum class methodsFor:'accessing'! |
|
869 |
||
870 |
typeIdentifier |
|
871 |
^ 'E' |
|
872 |
||
873 |
"Modified: / 05-05-2011 / 15:40:54 / cg" |
|
874 |
! ! |
|
875 |
||
876 |
!Tag::TEnum methodsFor:'accessing'! |
|
877 |
||
878 |
typeString |
|
879 |
^ 'enum' |
|
880 |
||
881 |
"Modified: / 05-05-2011 / 15:37:03 / cg" |
|
882 |
! ! |
|
883 |
||
884 |
!Tag::TEnum methodsFor:'testing'! |
|
885 |
||
886 |
isEnumTag |
|
887 |
^ true |
|
888 |
||
889 |
"Created: / 05-05-2011 / 15:37:15 / cg" |
|
15770 | 890 |
! |
891 |
||
892 |
isTypeTag |
|
893 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
894 |
||
895 |
^ true |
|
9890 | 896 |
! ! |
897 |
||
898 |
!Tag::TEnumMember class methodsFor:'accessing'! |
|
899 |
||
900 |
typeIdentifier |
|
901 |
^ 'e' |
|
902 |
||
903 |
"Modified: / 05-05-2011 / 15:40:57 / cg" |
|
904 |
! ! |
|
905 |
||
906 |
!Tag::TEnumMember methodsFor:'accessing'! |
|
907 |
||
908 |
typeString |
|
909 |
^ 'enum member' |
|
910 |
||
911 |
"Modified: / 05-05-2011 / 15:39:05 / cg" |
|
912 |
! ! |
|
913 |
||
914 |
!Tag::TEnumMember methodsFor:'testing'! |
|
915 |
||
916 |
isEnumMemberTag |
|
917 |
^ true |
|
918 |
||
919 |
"Created: / 05-05-2011 / 15:38:49 / cg" |
|
920 |
! ! |
|
921 |
||
922 |
!Tag::TField class methodsFor:'accessing'! |
|
923 |
||
924 |
typeIdentifier |
|
925 |
^ 'f' |
|
926 |
||
927 |
||
928 |
! ! |
|
929 |
||
930 |
!Tag::TField methodsFor:'accessing'! |
|
931 |
||
932 |
typeString |
|
933 |
^ 'field' |
|
934 |
||
935 |
! ! |
|
936 |
||
937 |
!Tag::TField methodsFor:'testing'! |
|
938 |
||
939 |
isFieldTag |
|
940 |
"return true, if this is a java field tag |
|
941 |
" |
|
942 |
^ true |
|
943 |
||
944 |
||
945 |
! ! |
|
946 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
947 |
!Tag::TFormElement class methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
948 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
949 |
typeIdentifier |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
950 |
^ 'f' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
951 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
952 |
"Created: / 20-04-2011 / 18:52:31 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
953 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
954 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
955 |
!Tag::TFormElement class methodsFor:'documentation'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
956 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
957 |
documentation |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
958 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
959 |
a form element (in HTML) |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
960 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
961 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
962 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
963 |
!Tag::TFormElement methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
964 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
965 |
typeIdentifierInList |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
966 |
^ 'f' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
967 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
968 |
"Created: / 20-04-2011 / 18:53:49 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
969 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
970 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
971 |
typeString |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
972 |
^ 'form element' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
973 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
974 |
"Created: / 20-04-2011 / 18:53:29 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
975 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
976 |
|
9890 | 977 |
!Tag::TFunction class methodsFor:'accessing'! |
978 |
||
979 |
typeIdentifier |
|
980 |
^ 'F' |
|
981 |
||
982 |
"Modified: / 05-05-2011 / 15:41:04 / cg" |
|
983 |
! ! |
|
984 |
||
985 |
!Tag::TFunction methodsFor:'accessing'! |
|
986 |
||
987 |
typeIdentifierInList |
|
988 |
^ 'F' |
|
989 |
||
990 |
||
991 |
! |
|
992 |
||
993 |
typeString |
|
994 |
^ 'function' |
|
995 |
||
996 |
||
997 |
! ! |
|
998 |
||
999 |
!Tag::TFunction methodsFor:'testing'! |
|
1000 |
||
14432 | 1001 |
isFunctionOrMethodTag |
1002 |
"return true, if this is a function or method tag |
|
1003 |
" |
|
1004 |
^ true |
|
1005 |
! |
|
1006 |
||
9890 | 1007 |
isFunctionTag |
1008 |
"return true, if this is a function tag |
|
1009 |
" |
|
1010 |
^ true |
|
1011 |
||
1012 |
||
1013 |
! ! |
|
1014 |
||
11803
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1015 |
!Tag::THeaderElement class methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1016 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1017 |
typeIdentifier |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1018 |
^ 'h' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1019 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1020 |
"Created: / 20-04-2011 / 18:52:31 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1021 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1022 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1023 |
!Tag::THeaderElement class methodsFor:'documentation'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1024 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1025 |
documentation |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1026 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1027 |
a header element (in HTML) |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1028 |
" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1029 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1030 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1031 |
!Tag::THeaderElement methodsFor:'accessing'! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1032 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1033 |
typeIdentifierInList |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1034 |
^ 'h' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1035 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1036 |
"Created: / 20-04-2011 / 18:53:49 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1037 |
! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1038 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1039 |
typeString |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1040 |
^ 'header element' |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1041 |
|
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1042 |
"Created: / 20-04-2011 / 18:53:29 / cg" |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1043 |
! ! |
3025c4948991
better html tags (h-elements)
Claus Gittinger <cg@exept.de>
parents:
11438
diff
changeset
|
1044 |
|
9890 | 1045 |
!Tag::TInterface class methodsFor:'accessing'! |
1046 |
||
1047 |
typeIdentifier |
|
1048 |
^ 'I' |
|
1049 |
||
1050 |
"Modified: / 05-05-2011 / 15:41:08 / cg" |
|
1051 |
! ! |
|
1052 |
||
1053 |
!Tag::TInterface methodsFor:'accessing'! |
|
1054 |
||
1055 |
typeString |
|
1056 |
^ 'interface' |
|
1057 |
||
1058 |
||
1059 |
! ! |
|
1060 |
||
1061 |
!Tag::TInterface methodsFor:'testing'! |
|
1062 |
||
1063 |
isInterfaceTag |
|
1064 |
"return true, if this is a java interface tag |
|
1065 |
" |
|
1066 |
^ true |
|
1067 |
||
1068 |
||
15770 | 1069 |
! |
1070 |
||
1071 |
isTypeTag |
|
1072 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
1073 |
||
1074 |
^ true |
|
9890 | 1075 |
! ! |
1076 |
||
1077 |
!Tag::TLabel class methodsFor:'accessing'! |
|
1078 |
||
1079 |
typeIdentifier |
|
1080 |
^ 'l' |
|
1081 |
||
1082 |
||
1083 |
! ! |
|
1084 |
||
1085 |
!Tag::TLabel methodsFor:'accessing'! |
|
1086 |
||
1087 |
typeString |
|
1088 |
^ 'label' |
|
1089 |
||
1090 |
||
1091 |
! ! |
|
1092 |
||
1093 |
!Tag::TLabel methodsFor:'testing'! |
|
1094 |
||
1095 |
isLabelTag |
|
1096 |
"return true, if this is a label tag |
|
1097 |
" |
|
1098 |
^ true |
|
1099 |
||
1100 |
||
1101 |
! ! |
|
1102 |
||
1103 |
!Tag::TLispConstant class methodsFor:'accessing'! |
|
1104 |
||
1105 |
typeIdentifier |
|
1106 |
^ 'c' |
|
1107 |
||
1108 |
||
1109 |
! ! |
|
1110 |
||
1111 |
!Tag::TLispConstant methodsFor:'accessing'! |
|
1112 |
||
1113 |
typeString |
|
1114 |
^ 'const' |
|
1115 |
||
1116 |
||
1117 |
! ! |
|
1118 |
||
1119 |
!Tag::TLispConstant methodsFor:'testing'! |
|
1120 |
||
1121 |
isLispConstantTag |
|
1122 |
"return true, if this is a lisp constant tag |
|
1123 |
" |
|
1124 |
^ true |
|
1125 |
||
1126 |
||
1127 |
! ! |
|
1128 |
||
1129 |
!Tag::TLispEval class methodsFor:'accessing'! |
|
1130 |
||
1131 |
typeIdentifier |
|
1132 |
^ 'E' |
|
1133 |
||
1134 |
||
1135 |
! ! |
|
1136 |
||
1137 |
!Tag::TLispEval methodsFor:'accessing'! |
|
1138 |
||
1139 |
typeString |
|
1140 |
^ 'eval' |
|
1141 |
||
1142 |
||
1143 |
! ! |
|
1144 |
||
1145 |
!Tag::TLispEval methodsFor:'testing'! |
|
1146 |
||
1147 |
isLispEvalTag |
|
1148 |
"return true, if this is a lisp eval tag |
|
1149 |
" |
|
1150 |
^ true |
|
1151 |
||
1152 |
||
1153 |
! ! |
|
1154 |
||
1155 |
!Tag::TLispMacro class methodsFor:'accessing'! |
|
1156 |
||
1157 |
typeIdentifier |
|
1158 |
^ 'm' |
|
1159 |
||
1160 |
||
1161 |
! ! |
|
1162 |
||
1163 |
!Tag::TLispMacro methodsFor:'accessing'! |
|
1164 |
||
1165 |
typeString |
|
1166 |
^ 'macro' |
|
1167 |
||
1168 |
||
1169 |
! ! |
|
1170 |
||
1171 |
!Tag::TLispMacro methodsFor:'testing'! |
|
1172 |
||
1173 |
isLispMacroTag |
|
1174 |
"return true, if this is a define macro tag |
|
1175 |
" |
|
1176 |
^ true |
|
1177 |
||
1178 |
||
1179 |
! ! |
|
1180 |
||
1181 |
!Tag::TMacro class methodsFor:'accessing'! |
|
1182 |
||
1183 |
typeIdentifier |
|
1184 |
^ 'd' |
|
1185 |
||
1186 |
||
1187 |
! ! |
|
1188 |
||
1189 |
!Tag::TMacro methodsFor:'accessing'! |
|
1190 |
||
1191 |
typeString |
|
1192 |
^ 'macro' |
|
1193 |
||
1194 |
||
1195 |
! ! |
|
1196 |
||
1197 |
!Tag::TMacro methodsFor:'testing'! |
|
1198 |
||
1199 |
isMacroTag |
|
14432 | 1200 |
"return true, if this is a define macro / macro tag |
9890 | 1201 |
" |
1202 |
^ true |
|
1203 |
! ! |
|
1204 |
||
1205 |
!Tag::TMakeRule class methodsFor:'accessing'! |
|
1206 |
||
1207 |
typeIdentifier |
|
1208 |
^ 'R' |
|
1209 |
! ! |
|
1210 |
||
1211 |
!Tag::TMakeRule methodsFor:'accessing'! |
|
1212 |
||
1213 |
typeString |
|
1214 |
^ 'rule' |
|
1215 |
! ! |
|
1216 |
||
1217 |
!Tag::TMakeRule methodsFor:'testing'! |
|
1218 |
||
1219 |
isMakeTargetTag |
|
1220 |
"return true, if this is a make-target tag |
|
1221 |
" |
|
1222 |
^ true |
|
1223 |
||
1224 |
||
1225 |
! ! |
|
1226 |
||
1227 |
!Tag::TMakeTarget class methodsFor:'accessing'! |
|
1228 |
||
1229 |
typeIdentifier |
|
1230 |
^ 'T' |
|
1231 |
||
1232 |
||
1233 |
! ! |
|
1234 |
||
1235 |
!Tag::TMakeTarget methodsFor:'accessing'! |
|
1236 |
||
1237 |
typeString |
|
1238 |
^ 'target' |
|
1239 |
||
1240 |
||
1241 |
! ! |
|
1242 |
||
1243 |
!Tag::TMakeTarget methodsFor:'testing'! |
|
1244 |
||
1245 |
isMakeTargetTag |
|
1246 |
"return true, if this is a make-target tag |
|
1247 |
" |
|
1248 |
^ true |
|
1249 |
||
1250 |
||
1251 |
! ! |
|
1252 |
||
1253 |
!Tag::TMember class methodsFor:'accessing'! |
|
1254 |
||
1255 |
typeIdentifier |
|
1256 |
^ 'm' |
|
1257 |
||
1258 |
||
1259 |
! ! |
|
1260 |
||
1261 |
!Tag::TMember methodsFor:'accessing'! |
|
1262 |
||
1263 |
typeString |
|
1264 |
^ 'struct/union member' |
|
1265 |
||
1266 |
||
1267 |
! ! |
|
1268 |
||
1269 |
!Tag::TMember methodsFor:'testing'! |
|
1270 |
||
1271 |
isMemberTag |
|
1272 |
"return true, if this is a struct/union member tag |
|
1273 |
" |
|
1274 |
^ true |
|
1275 |
||
1276 |
||
1277 |
! ! |
|
1278 |
||
1279 |
!Tag::TMethod class methodsFor:'accessing'! |
|
1280 |
||
1281 |
typeIdentifier |
|
1282 |
^ 'M' |
|
1283 |
||
1284 |
"Modified: / 05-05-2011 / 15:41:29 / cg" |
|
1285 |
! ! |
|
1286 |
||
1287 |
!Tag::TMethod methodsFor:'accessing'! |
|
1288 |
||
13449 | 1289 |
isMeta |
1290 |
^ isMeta |
|
1291 |
! |
|
1292 |
||
1293 |
isMeta:aBoolean |
|
1294 |
isMeta := aBoolean. |
|
1295 |
! |
|
1296 |
||
9890 | 1297 |
typeIdentifierInList |
13449 | 1298 |
^ isMeta ifTrue:['M'] ifFalse:['m'] |
9890 | 1299 |
! |
1300 |
||
1301 |
typeString |
|
1302 |
^ 'method' |
|
1303 |
||
1304 |
! ! |
|
1305 |
||
1306 |
!Tag::TMethod methodsFor:'testing'! |
|
1307 |
||
14432 | 1308 |
isFunctionOrMethodTag |
1309 |
"return true, if this is a function or method tag |
|
9890 | 1310 |
" |
1311 |
^ true |
|
14432 | 1312 |
! |
9890 | 1313 |
|
14432 | 1314 |
isMethodTag |
1315 |
"return true, if this is a method tag |
|
1316 |
" |
|
1317 |
^ true |
|
9890 | 1318 |
! ! |
1319 |
||
1320 |
!Tag::TPackage class methodsFor:'accessing'! |
|
1321 |
||
1322 |
typeIdentifier |
|
1323 |
^ 'P' |
|
1324 |
||
1325 |
"Modified: / 05-05-2011 / 15:41:35 / cg" |
|
1326 |
! ! |
|
1327 |
||
1328 |
!Tag::TPackage methodsFor:'accessing'! |
|
1329 |
||
1330 |
typeString |
|
1331 |
^ 'package' |
|
1332 |
||
1333 |
||
1334 |
! ! |
|
1335 |
||
1336 |
!Tag::TPackage methodsFor:'testing'! |
|
1337 |
||
1338 |
isPackageTag |
|
1339 |
"return true, if this is a java package tag |
|
1340 |
" |
|
1341 |
^ true |
|
1342 |
||
1343 |
||
1344 |
! ! |
|
1345 |
||
1346 |
!Tag::TPrologClause class methodsFor:'accessing'! |
|
1347 |
||
1348 |
typeIdentifier |
|
1349 |
^ 'C' |
|
1350 |
||
1351 |
||
1352 |
! ! |
|
1353 |
||
1354 |
!Tag::TPrologClause methodsFor:'accessing'! |
|
1355 |
||
1356 |
typeString |
|
1357 |
^ 'clause' |
|
1358 |
||
1359 |
||
1360 |
! ! |
|
1361 |
||
1362 |
!Tag::TPrologClause methodsFor:'testing'! |
|
1363 |
||
1364 |
isPrologClause |
|
1365 |
"return true, if this is a prolog clause tag |
|
1366 |
" |
|
1367 |
^ true |
|
1368 |
||
1369 |
||
1370 |
! ! |
|
1371 |
||
1372 |
!Tag::TStruct class methodsFor:'accessing'! |
|
1373 |
||
1374 |
typeIdentifier |
|
1375 |
^ 'S' |
|
1376 |
||
1377 |
"Modified: / 05-05-2011 / 15:41:42 / cg" |
|
1378 |
! ! |
|
1379 |
||
1380 |
!Tag::TStruct methodsFor:'accessing'! |
|
1381 |
||
1382 |
typeString |
|
1383 |
^ 'struct' |
|
1384 |
||
1385 |
||
1386 |
! ! |
|
1387 |
||
1388 |
!Tag::TStruct methodsFor:'testing'! |
|
1389 |
||
1390 |
isStructOrUnionTag |
|
1391 |
^ true |
|
1392 |
||
1393 |
"Created: / 05-05-2011 / 15:07:51 / cg" |
|
1394 |
! |
|
1395 |
||
1396 |
isStructTag |
|
1397 |
"return true, if this is a struct tag |
|
1398 |
" |
|
1399 |
^ true |
|
1400 |
||
1401 |
||
15770 | 1402 |
! |
1403 |
||
1404 |
isTypeTag |
|
1405 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
1406 |
||
1407 |
^ true |
|
9890 | 1408 |
! ! |
1409 |
||
1410 |
!Tag::TTypedef class methodsFor:'accessing'! |
|
1411 |
||
1412 |
typeIdentifier |
|
1413 |
^ 'T' |
|
1414 |
||
1415 |
"Modified: / 05-05-2011 / 15:41:46 / cg" |
|
1416 |
! ! |
|
1417 |
||
1418 |
!Tag::TTypedef methodsFor:'accessing'! |
|
1419 |
||
1420 |
typeString |
|
1421 |
^ 'typedef' |
|
1422 |
||
1423 |
||
1424 |
! ! |
|
1425 |
||
1426 |
!Tag::TTypedef methodsFor:'testing'! |
|
1427 |
||
15770 | 1428 |
isTypeTag |
1429 |
"return true, if this is any type tag (typedef, struct, union, enum, ...)" |
|
1430 |
||
1431 |
^ true |
|
1432 |
! |
|
1433 |
||
9890 | 1434 |
isTypedefTag |
15770 | 1435 |
"return true, if this is a typedef tag" |
1436 |
||
9890 | 1437 |
^ true |
1438 |
! ! |
|
1439 |
||
1440 |
!Tag::TUnion class methodsFor:'accessing'! |
|
1441 |
||
1442 |
typeIdentifier |
|
1443 |
^ 'U' |
|
1444 |
||
1445 |
"Modified: / 05-05-2011 / 15:41:50 / cg" |
|
1446 |
! ! |
|
1447 |
||
1448 |
!Tag::TUnion methodsFor:'accessing'! |
|
1449 |
||
1450 |
typeString |
|
1451 |
^ 'union' |
|
1452 |
||
1453 |
"Modified: / 05-05-2011 / 15:07:12 / cg" |
|
1454 |
! ! |
|
1455 |
||
1456 |
!Tag::TUnion methodsFor:'testing'! |
|
1457 |
||
1458 |
isStructOrUnionTag |
|
1459 |
^ true |
|
1460 |
||
1461 |
"Created: / 05-05-2011 / 15:07:41 / cg" |
|
1462 |
! |
|
1463 |
||
15770 | 1464 |
isTypeTag |
1465 |
"return true, if this is any type tag (union, struct, typedef, enum)" |
|
1466 |
||
1467 |
^ true |
|
1468 |
! |
|
1469 |
||
9890 | 1470 |
isUnionTag |
1471 |
"return true, if this is a union tag |
|
1472 |
" |
|
1473 |
^ true |
|
1474 |
||
1475 |
"Created: / 05-05-2011 / 15:07:00 / cg" |
|
1476 |
! ! |
|
1477 |
||
1478 |
!Tag::TVariable class methodsFor:'accessing'! |
|
1479 |
||
1480 |
typeIdentifier |
|
1481 |
^ 'v' |
|
1482 |
||
1483 |
||
1484 |
! ! |
|
1485 |
||
1486 |
!Tag::TVariable methodsFor:'accessing'! |
|
1487 |
||
1488 |
typeString |
|
1489 |
^ 'variable' |
|
1490 |
||
1491 |
||
1492 |
! ! |
|
1493 |
||
1494 |
!Tag::TVariable methodsFor:'testing'! |
|
1495 |
||
1496 |
isVariableTag |
|
1497 |
"return true, if this is a variable tag |
|
1498 |
" |
|
1499 |
^ true |
|
1500 |
||
1501 |
||
1502 |
! ! |
|
1503 |
||
1504 |
!Tag class methodsFor:'documentation'! |
|
1505 |
||
14440 | 1506 |
version |
15770 | 1507 |
^ '$Header$' |
14440 | 1508 |
! |
1509 |
||
9890 | 1510 |
version_CVS |
15770 | 1511 |
^ '$Header$' |
10052 | 1512 |
! |
1513 |
||
1514 |
version_SVN |
|
15770 | 1515 |
^ '$Id$' |
9890 | 1516 |
! ! |
12709
b6a7b058e665
Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents:
11803
diff
changeset
|
1517 |