Up

# STEngine class documentation

### Authors

Stefan Urbanek

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

- +engineForLanguage:
- -executeMethod:forReceiver:withArguments:inContext:
- -interpretScript:inContext:
- -methodFromSource:forReceiver:inContext:
- -understandsCode:

### engineForLanguage:

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

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

### executeMethod: forReceiver: withArguments: inContext:

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

Description forthcoming.

### interpretScript: inContext:

- (id) interpretScript: (NSString*)script inContext: (STContext*)context;
Subclasses should override this method.

Interpret source code code in a context context. This is the method, that has to be implemented by those who are writing a language engine.

### methodFromSource: forReceiver: inContext:

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

Description forthcoming.

### understandsCode:

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

Description forthcoming.

Up