[TOC] [Prev] [Next]

ITKScriptingLanguage

Declared in: itkRuntime/ITKScriptingLanguage.h

The ITKScriptingLanguage protocol declares methods to get certain pieces of meta information about a scripting language, like its name, the typical file extension for script files, and which concrete subclasses of ITKInterp and ITKValue it uses.

Instance Methods

abbreviatedName

-(NSString *)abbreviatedName

Returns an abbreviated, but unique name for the scripting language.

fileExtension

-(NSString *)fileExtension

Returns the default file extension for script files in this language.

interpClass

-(Class)interpClass

Returns the concrete subclass of ITKInterp used by this language.

isResponsibleForException:

-(BOOL)isResponsibleForException:(NSException *)exception

Returns YES if exception was caused by an error in this scripting language.

logException:

-(void)logException:(NSException *)exception

If exception was caused by an error in this scripting language, will output a meaningful description of that error using NSLog. Otherwise, the behaviour is undefined.

multiLineCommentEnd

-(NSString *)multiLineCommentEnd

Returns the string used to end a multi line comment in this language, or nil.

multiLineCommentStart

-(NSString *)multiLineCommentStart

Returns the string used to start a multi line comment in this language, or nil.

name

-(NSString *)name

Returns the full, unique name of the scripting language.

presentException:

-(void)presentException:(NSException *)exception

If exception was caused by an error in this scripting language, will present a meaningful description of that error to the user using NSRunAlertPanel. Otherwise, the behaviour is undefined.

singleLineCommentStart

-(NSString *)singleLineCommentStart

Returns the string used to start a to-end-of-line comment in this language, or nil.

valueClass

-(Class)valueClass

Returns the concrete subclass of ITKValue used by this language.



[TOC] [Prev] [Next]

Copyright © 1999, AAA+ Software. All rights reserved.