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