JavaNameandType.st
author cg
Tue, 19 Aug 1997 13:29:56 +0000
changeset 244 30a32734cc47
parent 203 67af98594672
child 356 861abc393bc7
permissions -rw-r--r--
checkin from browser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
083530508d9c intitial checkin
cg
parents:
diff changeset
     1
Object subclass:#JavaNameandType
083530508d9c intitial checkin
cg
parents:
diff changeset
     2
	instanceVariableNames:'name signature'
90
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
     3
	classVariableNames:'KnownNamesAndTypes'
1
083530508d9c intitial checkin
cg
parents:
diff changeset
     4
	poolDictionaries:''
4
07264ed96b97 checkin from browser
cg
parents: 1
diff changeset
     5
	category:'Java-Reader-Support'
1
083530508d9c intitial checkin
cg
parents:
diff changeset
     6
!
083530508d9c intitial checkin
cg
parents:
diff changeset
     7
083530508d9c intitial checkin
cg
parents:
diff changeset
     8
135
098936234135 *** empty log message ***
cg
parents: 90
diff changeset
     9
!JavaNameandType class methodsFor:'instance creation'!
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    10
083530508d9c intitial checkin
cg
parents:
diff changeset
    11
name:aString signature:signature
083530508d9c intitial checkin
cg
parents:
diff changeset
    12
    ^ self new name:aString signature:signature
083530508d9c intitial checkin
cg
parents:
diff changeset
    13
083530508d9c intitial checkin
cg
parents:
diff changeset
    14
    "Created: 15.4.1996 / 16:17:14 / cg"
083530508d9c intitial checkin
cg
parents:
diff changeset
    15
! !
083530508d9c intitial checkin
cg
parents:
diff changeset
    16
083530508d9c intitial checkin
cg
parents:
diff changeset
    17
!JavaNameandType methodsFor:'accessing'!
083530508d9c intitial checkin
cg
parents:
diff changeset
    18
27
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    19
name
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    20
     ^ name 
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    21
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    22
    "Created: 15.4.1996 / 16:16:47 / cg"
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    23
!
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    24
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    25
name:aString signature:aSignature
90
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    26
     name := aString asSymbol.
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    27
     signature := aSignature asSymbol
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    28
083530508d9c intitial checkin
cg
parents:
diff changeset
    29
    "Created: 15.4.1996 / 16:16:47 / cg"
27
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    30
!
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    31
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    32
signature
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    33
     ^ signature 
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    34
4560bb77bb36 checkin from browser
cg
parents: 4
diff changeset
    35
    "Created: 15.4.1996 / 16:16:47 / cg"
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    36
! !
083530508d9c intitial checkin
cg
parents:
diff changeset
    37
244
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    38
!JavaNameandType methodsFor:'comparing'!
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    39
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    40
= aNameandType
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    41
    name ~= aNameandType name ifTrue:[^ false].
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    42
    ^ signature = aNameandType signature
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    43
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    44
    "Created: 19.8.1997 / 13:58:29 / cg"
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    45
!
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    46
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    47
hash
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    48
    ^ name hash bitXor:signature hash
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    49
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    50
    "Created: 19.8.1997 / 13:59:03 / cg"
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    51
! !
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    52
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    53
!JavaNameandType methodsFor:'printing & storing'!
083530508d9c intitial checkin
cg
parents:
diff changeset
    54
083530508d9c intitial checkin
cg
parents:
diff changeset
    55
displayString
90
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    56
    ^ self class name , '(name:' , name displayString, ' signature:' , signature displayString , ')'
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    57
083530508d9c intitial checkin
cg
parents:
diff changeset
    58
    "Created: 15.4.1996 / 16:32:40 / cg"
083530508d9c intitial checkin
cg
parents:
diff changeset
    59
! !
083530508d9c intitial checkin
cg
parents:
diff changeset
    60
90
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    61
!JavaNameandType methodsFor:'queries'!
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    62
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    63
isUnresolved
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    64
    ^ false
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    65
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    66
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    67
! !
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    68
203
67af98594672 *** empty log message ***
cg
parents: 135
diff changeset
    69
!JavaNameandType methodsFor:'special'!
67af98594672 *** empty log message ***
cg
parents: 135
diff changeset
    70
67af98594672 *** empty log message ***
cg
parents: 135
diff changeset
    71
updateClassRefsFrom:oldClass to:newClass
67af98594672 *** empty log message ***
cg
parents: 135
diff changeset
    72
    "/ nothing done here
67af98594672 *** empty log message ***
cg
parents: 135
diff changeset
    73
67af98594672 *** empty log message ***
cg
parents: 135
diff changeset
    74
    "Created: 7.8.1997 / 15:12:25 / cg"
67af98594672 *** empty log message ***
cg
parents: 135
diff changeset
    75
! !
67af98594672 *** empty log message ***
cg
parents: 135
diff changeset
    76
135
098936234135 *** empty log message ***
cg
parents: 90
diff changeset
    77
!JavaNameandType class methodsFor:'documentation'!
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    78
083530508d9c intitial checkin
cg
parents:
diff changeset
    79
version
244
30a32734cc47 checkin from browser
cg
parents: 203
diff changeset
    80
    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaNameandType.st,v 1.7 1997/08/19 13:29:56 cg Exp $'
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    81
! !