Back: MethodDictionary-removing
Up: Class reference
Forward: MethodInfo-accessing
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.99 MethodInfo

Defined in namespace Smalltalk
Category: Language-Implementation
I provide information about particular methods. I can produce the category that a method was filed under, and can be used to access the source code of the method.

6.99.1 MethodInfo: accessing  (instance)
6.99.2 MethodInfo: equality  (instance)


6.99.1 MethodInfo: accessing

category
Answer the method category

category: aCategory
Set the method category

methodClass
Answer the class in which the method is defined

methodClass: aClass
Set the class in which the method is defined

selector
Answer the selector through which the method is called

selector: aSymbol
Set the selector through which the method is called

sourceCode
Answer a FileSegment or String or nil containing the method source code

sourceFile
Answer the name of the file where the method source code is

sourcePos
Answer the starting position of the method source code in the sourceFile

sourceString
Answer a String containing the method source code

stripSourceCode
Remove the reference to the source code for the method


6.99.2 MethodInfo: equality

= aMethodInfo
Compare the receiver and aMethodInfo, answer whether they're equal

hash
Answer an hash value for the receiver




This document was generated on May, 12 2002 using texi2html