Back: MethodDictionary-removing Up: Base classes Forward: MethodInfo-accessing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.112 MethodInfo

Defined in namespace Smalltalk
Superclass: Object
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.

1.112.1 MethodInfo: accessing  (instance)
1.112.2 MethodInfo: equality  (instance)


1.112.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


1.112.2 MethodInfo: equality

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

hash
Answer an hash value for the receiver



Back: MethodInfo-accessing Up: MethodInfo Forward: Namespace   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on July, 23 2009 using texi2html