JavaUnresolvedConstant.st
author cg
Mon, 15 Apr 1996 15:08:12 +0000
changeset 1 083530508d9c
child 83 2d61ef3579e4
permissions -rw-r--r--
intitial checkin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
083530508d9c intitial checkin
cg
parents:
diff changeset
     1
Object subclass:#JavaUnresolvedConstant
083530508d9c intitial checkin
cg
parents:
diff changeset
     2
	instanceVariableNames:'index'
083530508d9c intitial checkin
cg
parents:
diff changeset
     3
	classVariableNames:''
083530508d9c intitial checkin
cg
parents:
diff changeset
     4
	poolDictionaries:''
083530508d9c intitial checkin
cg
parents:
diff changeset
     5
	category:'Java-Reader-Support'
083530508d9c intitial checkin
cg
parents:
diff changeset
     6
!
083530508d9c intitial checkin
cg
parents:
diff changeset
     7
083530508d9c intitial checkin
cg
parents:
diff changeset
     8
083530508d9c intitial checkin
cg
parents:
diff changeset
     9
!JavaUnresolvedConstant class methodsFor:'instance creation'!
083530508d9c intitial checkin
cg
parents:
diff changeset
    10
083530508d9c intitial checkin
cg
parents:
diff changeset
    11
index:index
083530508d9c intitial checkin
cg
parents:
diff changeset
    12
    ^ self new index:index
083530508d9c intitial checkin
cg
parents:
diff changeset
    13
083530508d9c intitial checkin
cg
parents:
diff changeset
    14
083530508d9c intitial checkin
cg
parents:
diff changeset
    15
! !
083530508d9c intitial checkin
cg
parents:
diff changeset
    16
083530508d9c intitial checkin
cg
parents:
diff changeset
    17
!JavaUnresolvedConstant class methodsFor:'resolving'!
083530508d9c intitial checkin
cg
parents:
diff changeset
    18
083530508d9c intitial checkin
cg
parents:
diff changeset
    19
resolve:aPossiblyUnresolvedConstant from:aConstantTable
083530508d9c intitial checkin
cg
parents:
diff changeset
    20
    (aPossiblyUnresolvedConstant isKindOf:JavaUnresolvedConstant) ifTrue:[
083530508d9c intitial checkin
cg
parents:
diff changeset
    21
        ^ aPossiblyUnresolvedConstant resolveFrom:aConstantTable
083530508d9c intitial checkin
cg
parents:
diff changeset
    22
    ].
083530508d9c intitial checkin
cg
parents:
diff changeset
    23
    ^ aPossiblyUnresolvedConstant
083530508d9c intitial checkin
cg
parents:
diff changeset
    24
083530508d9c intitial checkin
cg
parents:
diff changeset
    25
! !
083530508d9c intitial checkin
cg
parents:
diff changeset
    26
083530508d9c intitial checkin
cg
parents:
diff changeset
    27
!JavaUnresolvedConstant methodsFor:'accessing'!
083530508d9c intitial checkin
cg
parents:
diff changeset
    28
083530508d9c intitial checkin
cg
parents:
diff changeset
    29
index:i
083530508d9c intitial checkin
cg
parents:
diff changeset
    30
    index := i
083530508d9c intitial checkin
cg
parents:
diff changeset
    31
083530508d9c intitial checkin
cg
parents:
diff changeset
    32
    "Created: 15.4.1996 / 15:59:45 / cg"
083530508d9c intitial checkin
cg
parents:
diff changeset
    33
! !
083530508d9c intitial checkin
cg
parents:
diff changeset
    34
083530508d9c intitial checkin
cg
parents:
diff changeset
    35
!JavaUnresolvedConstant class methodsFor:'documentation'!
083530508d9c intitial checkin
cg
parents:
diff changeset
    36
083530508d9c intitial checkin
cg
parents:
diff changeset
    37
version
083530508d9c intitial checkin
cg
parents:
diff changeset
    38
    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaUnresolvedConstant.st,v 1.1 1996/04/15 14:58:30 cg Exp $'
083530508d9c intitial checkin
cg
parents:
diff changeset
    39
! !