JavaNameandType.st
author cg
Fri, 07 Feb 1997 20:37:59 +0000
changeset 135 098936234135
parent 90 918e2740098c
child 203 67af98594672
permissions -rw-r--r--
*** empty log message ***
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
083530508d9c intitial checkin
cg
parents:
diff changeset
    38
!JavaNameandType methodsFor:'printing & storing'!
083530508d9c intitial checkin
cg
parents:
diff changeset
    39
083530508d9c intitial checkin
cg
parents:
diff changeset
    40
displayString
90
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    41
    ^ self class name , '(name:' , name displayString, ' signature:' , signature displayString , ')'
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    42
083530508d9c intitial checkin
cg
parents:
diff changeset
    43
    "Created: 15.4.1996 / 16:32:40 / cg"
083530508d9c intitial checkin
cg
parents:
diff changeset
    44
! !
083530508d9c intitial checkin
cg
parents:
diff changeset
    45
90
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    46
!JavaNameandType methodsFor:'queries'!
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    47
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    48
isUnresolved
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    49
    ^ false
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    50
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    51
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    52
! !
918e2740098c resolve rewritten
cg
parents: 27
diff changeset
    53
135
098936234135 *** empty log message ***
cg
parents: 90
diff changeset
    54
!JavaNameandType class methodsFor:'documentation'!
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    55
083530508d9c intitial checkin
cg
parents:
diff changeset
    56
version
135
098936234135 *** empty log message ***
cg
parents: 90
diff changeset
    57
    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaNameandType.st,v 1.5 1997/02/07 20:36:15 cg Exp $'
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    58
! !