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