Documentation

LKSubclass class documentation

LKSubclass : LKAST

AuthorsGenerated by builder
Declared inLKSubclass.h

Overview

AST node representing a new class definition.


Default

+ (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.

    - (NSString *) classname

    Returns the class name for the represented class.

      - (NSString *) superclassname

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

        - (NSArray *) methods

        Returns the methods

          - (void) addInstanceVariable: (NSString *)anIvar

          Adds a new instance variable.

            - (NSArray *) instanceVariables

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

              - (NSArray *) classVariables

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