Up

STEngine class documentation

Authors

Stefan Urbanek (urbanek@host.sk)

Copyright: (C) 2002 Free Software Foundation

Software documentation for the STEngine class

STEngine : NSObject

Declared in:
StepTalk/STEngine.h

STEngine is abstract class for language engines used to intepret scripts.

Method summary

engineForFileType: 

+ (STEngine*) engineForFileType: (NSString*)fileType;

Description forthcoming.


engineForLanguage: 

+ (STEngine*) engineForLanguage: (NSString*)name;

Return a scripting engine for language with specified name. The engine is get from default language manager.


engineForLanguageWithName: 

+ (STEngine*) engineForLanguageWithName: (NSString*)name;

Instance creation


canInterpret: 

- (BOOL) canInterpret: (NSString*)sourceCode;

Description forthcoming.


executeCode: inEnvironment: 

- (id) executeCode: (NSString*)code inEnvironment: (STEnvironment*)env;
Subclasses should override this method.

Execude source code code in an environment env. This is the method, that has to be implemented by those who are writing a language engine.


executeMethod: forReceiver: withArguments: inEnvironment: 

- (id) executeMethod: (id<STMethod>)aMethod forReceiver: (id)anObject withArguments: (NSArray*)args inEnvironment: (STEnvironment*)env;

Description forthcoming.


interpretMethod: forReceiver: withArguments: inContext: 

- (id) interpretMethod: (id<STMethod>)aMethod forReceiver: (id)anObject withArguments: (NSArray*)args inContext: (STContext*)context;

Description forthcoming.


interpretScript: inContext: 

- (id) interpretScript: (NSString*)script inContext: (STContext*)context;

Description forthcoming.


methodFromSource: forReceiver: inContext: 

- (STMethod*) methodFromSource: (NSString*)sourceString forReceiver: (id)receiver inContext: (STContext*)context;

Description forthcoming.


methodFromSource: forReceiver: inEnvironment: 

- (STMethod*) methodFromSource: (NSString*)sourceString forReceiver: (id)receiver inEnvironment: (STEnvironment*)env;

Description forthcoming.


setValue: forOption: 

- (void) setValue: (id)anObject forOption: (NSString*)anOption;

Description forthcoming.


understandsCode: 

- (BOOL) understandsCode: (NSString*)code;

Description forthcoming.


valueForOption: 

- (id) valueForOption: (NSString*)anOption;

Description forthcoming.



Up