WrappedMethod.st
author claus
Mon, 06 Feb 1995 00:38:51 +0100
changeset 16 fcbfbba03d49
parent 14 530bf06f9c78
child 19 fefae4fd19a1
permissions -rw-r--r--
*** empty log message ***

"
 COPYRIGHT (c) 1994 by Claus Gittinger
	      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.
"

Method subclass:#WrappedMethod
	 instanceVariableNames:''
	 classVariableNames:''
	 poolDictionaries:''
	 category:'Kernel-Methods'
!

WrappedMethod comment:'
COPYRIGHT (c) 1994 by Claus Gittinger
	      All Rights Reserved

$Header: /cvs/stx/stx/libbasic3/WrappedMethod.st,v 1.5 1995-02-05 23:38:51 claus Exp $
'!

!WrappedMethod class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1994 by Claus Gittinger
	      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.
"
!

version
"
$Header: /cvs/stx/stx/libbasic3/WrappedMethod.st,v 1.5 1995-02-05 23:38:51 claus Exp $
"
!

documentation
"
    support for MessageTracer
"
! !

!WrappedMethod methodsFor:'queries'!

isWrapped
    "return true, if the receiver is a wrapped method.
     True is returned here, since the receiver is always a wrapped one"

    ^ true
! !

!WrappedMethod methodsFor:'accessing'!

originalMethod
    "return the method the receiver is wrapping"

    "a kludge: it must be in the literal array somewhere"
    literals do:[:aLiteral |
	(aLiteral isKindOf:Method) ifTrue:[
	    ^ aLiteral
	]
    ].
    ^ nil
!

basicLiterals
    "return my literals"

    ^ literals
!

source
    "return the wrapped methods source"

    ^ self originalMethod source
!

literals
    "return the wrapped methods literals"

    ^ self originalMethod literals
!

numberOfMethodVars
    "return the number of locals in the wrapped method."

    ^ self originalMethod numberOfMethodVars 
!

methodVarNames
    "return the names of the locals of the wrapped method."

    ^ self originalMethod methodVarNames 
!

methodArgAndVarNames
    "return the names of the args and locals of the wrapped method."

    ^ self originalMethod methodArgAndVarNames
! !