LKMethod documentation

Authors

Generated by builder

Contents -

  1. Software documentation for the LKClassMethod class
  2. Software documentation for the LKFreestandingMethod class
  3. Software documentation for the LKInstanceMethod class
  4. Software documentation for the LKMethod class

Software documentation for the LKClassMethod class

LKClassMethod : LKMethod

Declared in:
LKMethod.h
Description forthcoming.

Software documentation for the LKFreestandingMethod class

LKFreestandingMethod : LKMethod

Declared in:
LKMethod.h

A freestanding method is a method that is not attached to any class. It is used in REPL mode, and might be useful for better support for prototypes.

Software documentation for the LKInstanceMethod class

LKInstanceMethod : LKMethod

Declared in:
LKMethod.h
Description forthcoming.

Software documentation for the LKMethod class

LKMethod : LKAST

Declared in:
LKMethod.h

AST node representing a method.

Method summary

methodWithSignature: locals: statements: 

+ (id) methodWithSignature: (LKMessageSend*)aSignature locals: (NSMutableArray*)locals statements: (NSMutableArray*)statementList;

Return a new Method with the specified signature, locals and statements.


initWithSignature: locals: statements: 

- (id) initWithSignature: (LKMessageSend*)aSignature locals: (NSMutableArray*)locals statements: (NSMutableArray*)statementList;

Initialise a new Method with the specified signature, locals and statements.


isClassMethod 

- (BOOL) isClassMethod;

Returns YES if this is a class method.


methodBody 

- (NSString*) methodBody;

Returns the method's body


setSignature: 

- (void) setSignature: (LKMessageSend*)aSignature;

Set the method signature for this method.