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