mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-23 11:31:01 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@17436 72102866-910b-0410-8b05-ffd578937521
59 lines
1.1 KiB
Objective-C
59 lines
1.1 KiB
Objective-C
/* 2003 Aug 5 */
|
|
|
|
#import "StepTalk/STScriptObject.h"
|
|
|
|
@implementation STScriptObject
|
|
- initWithInstanceVariableNames:(NSString *)names
|
|
{
|
|
self = [super init];
|
|
|
|
methods = [[NSMutableDictionary alloc] init];
|
|
|
|
return self;
|
|
}
|
|
- (void)dealloc
|
|
{
|
|
RELEASE(methods);
|
|
RELEASE(ivars);
|
|
[super dealloc];
|
|
}
|
|
|
|
- (void)setObject:(id)anObject forVariable:(NSString *)aName
|
|
{
|
|
[self _notImplemented:_cmd];
|
|
}
|
|
- (id)objectForVariable:(NSString *)aName
|
|
{
|
|
[self _notImplemented:_cmd];
|
|
}
|
|
|
|
- (NSArray *)instanceVariableNames
|
|
{
|
|
[self _notImplemented:_cmd];
|
|
}
|
|
|
|
- (void)addMethod:(STMethod *)aMethod
|
|
{
|
|
[methods setObject:aMethod forKey:[aMethod methodName]];
|
|
}
|
|
- (STMethod *)methodWithName:(NSString *)aName
|
|
{
|
|
return [methods objectForKey:aName];
|
|
}
|
|
- (void)removeMethod:(STMethod *)aMethod
|
|
{
|
|
[self _notImplemented:_cmd];
|
|
}
|
|
- (void)removeMethodWithName:(NSString *)aName
|
|
{
|
|
[methods removeObjectForKey:aName];
|
|
}
|
|
- (NSArray *)methodNames
|
|
{
|
|
return [methods allKeys];
|
|
}
|
|
- (NSDictionary *)methodDictionary
|
|
{
|
|
return [NSDictionary dictionaryWithDictionary:methods];
|
|
}
|
|
@end
|