2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 License); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
19 Contains some contributions under the Thrift Software License.
20 Please see doc/old-thrift-license.txt in the Thrift distribution for
24 SystemOrganization addCategory: #Thrift!
25 SystemOrganization addCategory: #'Thrift-Protocol'!
26 SystemOrganization addCategory: #'Thrift-Transport'!
28 Error subclass: #TError
29 instanceVariableNames: 'code'
30 classVariableNames: ''
34 !TError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:28'!
35 signalWithCode: anInteger
36 self new code: anInteger; signal! !
38 !TError methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:28'!
42 !TError methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:28'!
46 TError subclass: #TProtocolError
47 instanceVariableNames: ''
48 classVariableNames: ''
50 category: 'Thrift-Protocol'!
52 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:39'!
56 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:39'!
60 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:39'!
64 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:40'!
68 !TProtocolError class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:40'!
72 TError subclass: #TTransportError
73 instanceVariableNames: ''
74 classVariableNames: ''
76 category: 'Thrift-Transport'!
78 TTransportError subclass: #TTransportClosedError
79 instanceVariableNames: ''
80 classVariableNames: ''
82 category: 'Thrift-Transport'!
84 Object subclass: #TClient
85 instanceVariableNames: 'iprot oprot seqid remoteSeqid'
86 classVariableNames: ''
90 !TClient class methodsFor: 'as yet unclassified' stamp: 'pc 11/7/2007 06:00'!
91 binaryOnHost: aString port: anInteger
93 sock := TSocket new host: aString; port: anInteger; open; yourself.
95 inProtocol: (TBinaryProtocol new transport: sock);
98 !TClient methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 23:03'!
101 oprot ifNil: [oprot := aProtocol]! !
103 !TClient methodsFor: 'as yet unclassified' stamp: 'pc 10/26/2007 04:28'!
107 ifNotNil: [seqid := seqid + 1]! !
109 !TClient methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 22:51'!
110 outProtocol: aProtocol
111 oprot := aProtocol! !
113 !TClient methodsFor: 'as yet unclassified' stamp: 'pc 10/28/2007 15:32'!
114 validateRemoteMessage: aMsg
116 ifNil: [remoteSeqid := aMsg seqid]
118 [(remoteSeqid + 1) = aMsg seqid ifFalse:
119 [TProtocolError signal: 'Bad seqid: ', aMsg seqid asString,
120 '; wanted: ', remoteSeqid asString].
121 remoteSeqid := aMsg seqid]! !
123 Object subclass: #TField
124 instanceVariableNames: 'name type id'
125 classVariableNames: ''
127 category: 'Thrift-Protocol'!
129 !TField methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:05'!
133 !TField methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:44'!
137 !TField methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:04'!
139 ^ name ifNil: ['']! !
141 !TField methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:44'!
145 !TField methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:05'!
147 ^ type ifNil: [TType stop]! !
149 !TField methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:44'!
153 Object subclass: #TMessage
154 instanceVariableNames: 'name seqid type'
155 classVariableNames: ''
157 category: 'Thrift-Protocol'!
159 TMessage subclass: #TCallMessage
160 instanceVariableNames: ''
161 classVariableNames: ''
163 category: 'Thrift-Protocol'!
165 !TCallMessage methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 22:53'!
169 !TMessage methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:05'!
171 ^ name ifNil: ['']! !
173 !TMessage methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:35'!
177 !TMessage methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:05'!
179 ^ seqid ifNil: [0]! !
181 !TMessage methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:35'!
183 seqid := anInteger! !
185 !TMessage methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:06'!
189 !TMessage methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:35'!
193 Object subclass: #TProtocol
194 instanceVariableNames: 'transport'
195 classVariableNames: ''
197 category: 'Thrift-Protocol'!
199 TProtocol subclass: #TBinaryProtocol
200 instanceVariableNames: ''
201 classVariableNames: ''
203 category: 'Thrift-Protocol'!
205 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 11/1/2007 04:24'!
206 intFromByteArray: buf
208 vals := Array new: buf size.
209 1 to: buf size do: [:n | vals at: n put: ((buf at: n) bitShift: (buf size - n) * 8)].
212 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 18:46'!
214 ^ self readByte isZero not! !
216 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/25/2007 00:02'!
218 ^ (self transport read: 1) first! !
220 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/28/2007 16:24'!
224 ^ val basicAt: 1 put: (self readRawInt: 4);
225 basicAt: 2 put: (self readRawInt: 4);
228 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 20:02'!
231 field := TField new type: self readByte.
233 ^ field type = TType stop
235 ifFalse: [field id: self readI16; yourself]! !
237 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:15'!
241 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:20'!
245 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:20'!
249 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 11/1/2007 02:35'!
252 buf := transport read: size.
253 val := self intFromByteArray: buf.
255 ifTrue: [self unsignedInt: val size: size]
258 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:57'!
261 elemType: self readByte;
262 size: self readI32! !
264 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:58'!
267 keyType: self readByte;
268 valueType: self readByte;
269 size: self readI32! !
271 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 11/1/2007 04:22'!
274 version := self readI32.
276 (version bitAnd: self versionMask) = self version1
277 ifFalse: [TProtocolError signalWithCode: TProtocolError badVersion].
280 type: (version bitAnd: 16r000000FF);
281 name: self readString;
282 seqid: self readI32! !
284 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 10/28/2007 16:24'!
286 ^ self intFromByteArray: (transport read: size)! !
288 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 11/1/2007 00:59'!
292 elemType: self readByte;
293 size: self readI32! !
295 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 02/07/2009 19:00'!
299 ^ sz > 0 ifTrue: [(transport read: sz) asString] ifFalse: ['']! !
301 !TBinaryProtocol methodsFor: 'reading' stamp: 'pc 11/1/2007 04:22'!
302 unsignedInt: val size: size
303 ^ 0 - ((val - 1) bitXor: ((2 raisedTo: (size * 8)) - 1))! !
305 !TBinaryProtocol methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 22:13'!
309 !TBinaryProtocol methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 18:01'!
313 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 18:35'!
315 transport write: aString! !
317 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:23'!
319 bool ifTrue: [self writeByte: 1]
320 ifFalse: [self writeByte: 0]! !
322 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/26/2007 09:31'!
324 aNumber > 16rFF ifTrue: [TError signal: 'writeByte too big'].
325 transport write: (Array with: aNumber)! !
327 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/28/2007 16:16'!
329 self writeI32: (aDouble basicAt: 1);
330 writeI32: (aDouble basicAt: 2)! !
332 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:56'!
334 self writeByte: aField type;
335 writeI16: aField id! !
337 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/25/2007 00:01'!
338 writeFieldBegin: aField
339 self writeByte: aField type.
340 self writeI16: aField id! !
342 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 18:04'!
344 self writeByte: TType stop! !
346 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 11/1/2007 02:06'!
348 self writeInt: i16 size: 2! !
350 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 11/1/2007 02:06'!
352 self writeInt: i32 size: 4! !
354 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 11/1/2007 02:06'!
356 self writeInt: i64 size: 8! !
358 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 11/1/2007 04:23'!
359 writeInt: val size: size
360 1 to: size do: [:n | self writeByte: ((val bitShift: (size negated + n) * 8) bitAnd: 16rFF)]! !
362 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 11/1/2007 00:48'!
363 writeListBegin: aList
364 self writeByte: aList elemType; writeI32: aList size! !
366 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:55'!
368 self writeByte: aMap keyType;
369 writeByte: aMap valueType;
370 writeI32: aMap size! !
372 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 20:36'!
373 writeMessageBegin: msg
374 self writeI32: (self version1 bitOr: msg type);
375 writeString: msg name;
376 writeI32: msg seqid! !
378 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 11/1/2007 00:56'!
380 self writeByte: aSet elemType; writeI32: aSet size! !
382 !TBinaryProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 18:35'!
384 self writeI32: aString size;
387 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
390 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
393 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
396 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
399 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
402 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
405 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
408 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
411 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
414 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
417 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
420 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
423 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:39'!
426 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:39'!
429 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
432 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
435 !TProtocol methodsFor: 'reading' stamp: 'pc 10/25/2007 16:10'!
436 readSimpleType: aType
437 aType = TType bool ifTrue: [^ self readBool].
438 aType = TType byte ifTrue: [^ self readByte].
439 aType = TType double ifTrue: [^ self readDouble].
440 aType = TType i16 ifTrue: [^ self readI16].
441 aType = TType i32 ifTrue: [^ self readI32].
442 aType = TType i64 ifTrue: [^ self readI64].
443 aType = TType list ifTrue: [^ self readBool].! !
445 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
448 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
452 !TProtocol methodsFor: 'reading' stamp: 'pc 10/24/2007 19:40'!
455 !TProtocol methodsFor: 'reading' stamp: 'pc 10/26/2007 21:34'!
457 aType = TType stop ifTrue: [^ self].
458 aType = TType bool ifTrue: [^ self readBool].
459 aType = TType byte ifTrue: [^ self readByte].
460 aType = TType i16 ifTrue: [^ self readI16].
461 aType = TType i32 ifTrue: [^ self readI32].
462 aType = TType i64 ifTrue: [^ self readI64].
463 aType = TType string ifTrue: [^ self readString].
464 aType = TType double ifTrue: [^ self readDouble].
465 aType = TType struct ifTrue:
467 self readStructBegin.
468 [(field := self readFieldBegin) type = TType stop] whileFalse:
469 [self skip: field type. self readFieldEnd].
470 ^ self readStructEnd].
471 aType = TType map ifTrue:
473 map := self readMapBegin.
474 map size timesRepeat: [self skip: map keyType. self skip: map valueType].
476 aType = TType list ifTrue:
478 list := self readListBegin.
479 list size timesRepeat: [self skip: list elemType].
481 aType = TType set ifTrue:
483 set := self readSetBegin.
484 set size timesRepeat: [self skip: set elemType].
487 self error: 'Unknown type'! !
489 !TProtocol methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 23:02'!
493 !TProtocol methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:28'!
494 transport: aTransport
495 transport := aTransport! !
497 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
500 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
503 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:38'!
504 writeDouble: aFloat! !
506 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:38'!
507 writeFieldBegin: aField! !
509 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
512 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
515 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
518 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
521 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
524 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:39'!
525 writeListBegin: aList! !
527 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
530 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:39'!
531 writeMapBegin: aMap! !
533 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
536 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:36'!
539 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:36'!
542 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:39'!
543 writeSetBegin: aSet! !
545 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
548 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:38'!
549 writeString: aString! !
551 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:38'!
552 writeStructBegin: aStruct! !
554 !TProtocol methodsFor: 'writing' stamp: 'pc 10/24/2007 19:37'!
557 Object subclass: #TResult
558 instanceVariableNames: 'success oprot iprot exception'
559 classVariableNames: ''
563 !TResult methodsFor: 'as yet unclassified' stamp: 'pc 10/26/2007 21:35'!
567 !TResult methodsFor: 'as yet unclassified' stamp: 'pc 10/26/2007 21:35'!
569 exception := anError! !
571 !TResult methodsFor: 'as yet unclassified' stamp: 'pc 10/26/2007 14:43'!
575 !TResult methodsFor: 'as yet unclassified' stamp: 'pc 10/26/2007 14:43'!
577 success := anObject! !
579 Object subclass: #TSizedObject
580 instanceVariableNames: 'size'
581 classVariableNames: ''
583 category: 'Thrift-Protocol'!
585 TSizedObject subclass: #TList
586 instanceVariableNames: 'elemType'
587 classVariableNames: ''
589 category: 'Thrift-Protocol'!
591 !TList methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:04'!
593 ^ elemType ifNil: [TType stop]! !
595 !TList methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:42'!
597 elemType := anInteger! !
599 TList subclass: #TSet
600 instanceVariableNames: ''
601 classVariableNames: ''
603 category: 'Thrift-Protocol'!
605 TSizedObject subclass: #TMap
606 instanceVariableNames: 'keyType valueType'
607 classVariableNames: ''
609 category: 'Thrift-Protocol'!
611 !TMap methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:04'!
613 ^ keyType ifNil: [TType stop]! !
615 !TMap methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:45'!
617 keyType := anInteger! !
619 !TMap methodsFor: 'accessing' stamp: 'pc 10/24/2007 20:04'!
621 ^ valueType ifNil: [TType stop]! !
623 !TMap methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:45'!
625 valueType := anInteger! !
627 !TSizedObject methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 20:03'!
631 !TSizedObject methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 20:06'!
635 Object subclass: #TSocket
636 instanceVariableNames: 'host port stream'
637 classVariableNames: ''
639 category: 'Thrift-Transport'!
641 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 22:34'!
643 self isOpen ifTrue: [stream close]! !
645 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 22:23'!
647 ^ (self socketStream openConnectionToHost:
648 (NetNameResolver addressForName: host) port: port)
653 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 20:35'!
657 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:08'!
661 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 20:34'!
664 and: [stream socket isConnected]
665 and: [stream socket isOtherEndClosed not]! !
667 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 22:22'!
669 stream := self connect! !
671 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:09'!
675 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:17'!
678 [data := stream next: size.
679 data isEmpty ifTrue: [TTransportError signal: 'Could not read ', size asString, ' bytes'].
682 do: [TTransportClosedError signal]! !
684 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 22:18'!
686 ^ Smalltalk at: #FastSocketStream ifAbsent: [SocketStream] ! !
688 !TSocket methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 22:17'!
690 [stream nextPutAll: aCollection]
692 do: [TTransportClosedError signal]! !
694 Object subclass: #TStruct
695 instanceVariableNames: 'name'
696 classVariableNames: ''
698 category: 'Thrift-Protocol'!
700 !TStruct methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:47'!
704 !TStruct methodsFor: 'accessing' stamp: 'pc 10/24/2007 19:47'!
708 Object subclass: #TTransport
709 instanceVariableNames: ''
710 classVariableNames: ''
712 category: 'Thrift-Transport'!
714 !TTransport methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:18'!
716 self subclassResponsibility! !
718 !TTransport methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:22'!
720 self subclassResponsibility! !
722 !TTransport methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:18'!
724 self subclassResponsibility! !
726 !TTransport methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:18'!
728 self subclassResponsibility! !
730 !TTransport methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:18'!
732 self subclassResponsibility! !
734 !TTransport methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:22'!
736 ^ String streamContents: [:str |
737 [str size < anInteger] whileTrue:
738 [str nextPutAll: (self read: anInteger - str size)]]! !
740 !TTransport methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:22'!
742 self subclassResponsibility! !
744 Object subclass: #TType
745 instanceVariableNames: ''
746 classVariableNames: ''
750 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:03'!
754 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:03'!
758 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/25/2007 15:55'!
760 self typeMap do: [:each | each first = aTypeName ifTrue: [^ each second]].
763 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:03'!
767 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:04'!
771 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:04'!
775 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:04'!
779 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:04'!
783 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:04'!
787 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/25/2007 15:56'!
789 self typeMap do: [:each | each second = aTypeCode ifTrue: [^ each first]].
792 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:04'!
796 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:03'!
800 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:04'!
804 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:04'!
808 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/25/2007 15:51'!
810 ^ #((bool 2) (byte 3) (double 4) (i16 6) (i32 8) (i64 10) (list 15)
811 (map 13) (set 15) (stop 0) (string 11) (struct 12) (void 1))! !
813 !TType class methodsFor: 'as yet unclassified' stamp: 'pc 10/24/2007 17:03'!