Category: Language-Implementation
Superclass: Behavior
My instances provide methods that access classes by category, and allow whole categories of classes to be filed out to external disk files.

Method category index

compiling (instance)
conversion (instance)
copying (instance)
filing (instance)
organization of messages and classes (instance)
parsing class declarations (instance)
printing (instance)
still unclassified (instance)

compiling (instance)

compile: code classified: categoryName
Compile code in the receiver, assigning the method to the given category. Answer the newly created CompiledMethod, or nil if an error was found.

compile: code classified: categoryName ifError: block

Compile method source and install in method category, categoryName. If there are parsing errors, invoke exception block, 'block' (see compile:ifError:). Return the method

compile: code classified: categoryName notifying: requestor

Compile method source and install in method category, categoryName. If there are parsing errors, send an error message to requestor

top


conversion (instance)

asClass
This method's functionality should be implemented by subclasses of ClassDescription

asMetaclass

Answer the metaclass associated to the receiver

binding

Answer a VariableBinding object whose value is the receiver

top


copying (instance)

copy: selector from: aClass
Copy the given selector from aClass, assigning it the same category

copy: selector from: aClass classified: categoryName

Copy the given selector from aClass, assigning it the given category

copyAll: arrayOfSelectors from: class

Copy all the selectors in arrayOfSelectors from class, assigning them the same category they have in class

copyAll: arrayOfSelectors from: class classified: categoryName

Copy all the selectors in arrayOfSelectors from aClass, assigning them the given category

copyAllCategoriesFrom: aClass

Copy all the selectors in aClass, assigning them the original category

copyCategory: categoryName from: aClass

Copy all the selectors in from aClass that belong to the given category

copyCategory: categoryName from: aClass classified: newCategoryName

Copy all the selectors in from aClass that belong to the given category, reclassifying them as belonging to the given category

top


filing (instance)

fileOut: fileName
Open the given file and to file out a complete class description to it. Requires package Parser.

fileOutCategory: categoryName to: fileName

File out all the methods belonging to the method category, categoryName, to the fileName file. Requires package Parser.

fileOutOn: aFileStream

File out complete class description: class definition, class and instance methods. Requires package Parser.

fileOutSelector: selector to: fileName

File out the given selector to fileName. Requires package Parser.

top


organization of messages and classes (instance)

classify: aSelector under: aString
Put the method identified by the selector aSelector under the category given by aString.

createGetMethod: what

Create a method accessing the variable `what'.

createGetMethod: what default: value

Create a method accessing the variable `what', with a default value of `value', using lazy initialization

createSetMethod: what

Create a method which sets the variable `what'.

defineAsyncCFunc: cFuncNameString withSelectorArgs: selectorAndArgs args: argsArray

See documentation. This function is deprecated, you should use the <asyncCCall: ... > special syntax instead.

defineCFunc: cFuncNameString withSelectorArgs: selectorAndArgs returning: returnTypeSymbol args: argsArray

See documentation. This function is deprecated, you should use the <asyncCCall: ... > special syntax instead.

removeCategory: aString

Remove from the receiver every method belonging to the given category

whichCategoryIncludesSelector: selector

Answer the category for the given selector, or nil if the selector is not found

top


parsing class declarations (instance)

addSharedPool: aDictionary
Add the given shared pool to the list of the class' pool dictionaries

import: aDictionary

Add the given shared pool to the list of the class' pool dictionaries

top


printing (instance)

classVariableString
This method's functionality should be implemented by subclasses of ClassDescription

instanceVariableString

Answer a string containing the name of the receiver's instance variables.

nameIn: aNamespace

Answer the class name when the class is referenced from aNamespace

printOn: aStream in: aNamespace

Print on aStream the class name when the class is referenced from aNamespace

sharedVariableString

This method's functionality should be implemented by subclasses of ClassDescription

top


still unclassified (instance)

fileOutCategory: category toStream: aFileStream
File out all the methods belonging to the method category, category, to aFileStream. Requires package Parser.

fileOutSelector: aSymbol toStream: aFileStream

File out all the methods belonging to the method category, category, to aFileStream. Requires package Parser.

top