LKSubclass class documentation

Authors

Generated by builder

Software documentation for the LKSubclass class

LKSubclass : LKAST

Declared in:
LKSubclass.h

AST node representing a new class definition.


Instance Variables

Method summary

subclassWithName: superclassNamed: cvars: ivars: methods: 

+ (id) subclassWithName: (NSString*)aName superclassNamed: (NSString*)aClass cvars: (NSArray*)aCvarList ivars: (NSArray*)anIvarList methods: (NSArray*)aMethodList;

Return a new Subclass with the specified name, superclass and list of instance variables and methods. The instance and class variable lists should be strings and the method list is an array of AST nodes representing methods.


addInstanceVariable: 

- (void) addInstanceVariable: (NSString*)anIvar;

Adds a new instance variable.


classVariables 

- (NSArray*) classVariables;

Returns an array of all of the names of class variables.


classname 

- (NSString*) classname;

Returns the class name for the represented class.


instanceVariables 

- (NSArray*) instanceVariables;

Returns an array of all of the names of instance variables.


methods 

- (NSArray*) methods;

Returns the methods


superclassname 

- (NSString*) superclassname;

Returns the superclass name for the class represented by this AST node.




Instance Variables for LKSubclass Class

classname

@protected NSString* classname;

Name of this class.


cvars

@protected NSMutableArray* cvars;

Array of class variables defined for this class.


ivars

@protected NSMutableArray* ivars;

Array of instance variables defined for this class.


methods

@protected NSMutableArray* methods;

Array of methods defined in this class.


superclass

@protected NSString* superclass;

Name of the superclass.