JavaClassPointerRef.st
author Claus Gittinger <cg@exept.de>
Wed, 10 Dec 2003 11:06:45 +0100
changeset 2114 cbdc4c02a8e2
parent 2108 ca8c4e7db2e8
permissions -rw-r--r--
ExecutionErrorSignal -> ExecutionError

"
 COPYRIGHT (c) 1997 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"



"{ Package: 'stx:libjava' }"

JavaClassRef subclass:#JavaClassPointerRef
	instanceVariableNames:'deref'
	classVariableNames:''
	poolDictionaries:''
	category:'Languages-Java-Reader-Support'
!

!JavaClassPointerRef class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1997 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"


! !

!JavaClassPointerRef methodsFor:'accessing'!

arrayClass
    class isJavaClass ifTrue:[
        ^ Array
    ].
    ^ class

    "Created: 7.4.1997 / 13:46:12 / cg"
    "Modified: 7.4.1997 / 13:47:17 / cg"
!

javaClass
    class isUnresolved ifTrue:[
        self halt.
    ].
    ^ class

    "Created: 25.6.1996 / 09:36:09 / cg"
!

javaClassForNew
    class isUnresolved ifTrue:[
        self halt.
    ].
    ^ self

    "Created: 25.6.1996 / 09:36:09 / cg"
! !

!JavaClassPointerRef methodsFor:'converting'!

asClassPointerRef
     ^ self

    "Created: 7.4.1997 / 13:40:42 / cg"
!

deref
    "dereference my type; return a new JavaClassPointerRef"

    "/ cache
    deref notNil ifTrue:[^ deref].

    (nameandType startsWith:'[[') ifTrue:[
        deref := JavaClassPointerRef class:class nameandType:(nameandType copyFrom:2).
        ^ deref.
    ].

    "/ todo: dereference & remember in deref cache
    self halt

    "Created: 14.8.1997 / 16:55:56 / cg"
    "Modified: 17.8.1997 / 18:54:56 / cg"
! !

!JavaClassPointerRef methodsFor:'queries'!

isJavaClassRef
    ^ false

    "Created: / 9.11.1999 / 17:17:18 / cg"
! !

!JavaClassPointerRef class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libjava/Attic/JavaClassPointerRef.st,v 1.10 2002-11-22 20:12:00 cg Exp $'
! !