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