Documentation

LKSymbolTable documentation

LKSymbolTable : NSObject

AuthorsGenerated by builder
Declared inLKSymbolTable.h

Overview

Symbol table. Base class, with subclasses for each scope.


Default

+ (LKSymbolTable *) symbolTableForClass: (NSString *)aClassName

Returns the symbol table for a class. If the class exists, then this will be populated with its instance variables. If not, then it will be empty.

    + (LKSymbolTable *) lookupTableForClass: (id)aClassName

    Returns the symbol table for a class. If the class exists, then this will be populated with its instance variables. If not, then it return nil.

      - (void) addSymbol: (LKSymbol *)aSymbol

      Add a symbol to this table.

        - (void) addSymbolsNamed: (NSArray *)anArray ofKind: (LKSymbolScope)kind

        Adds a set of symbols in one call. The symbols have the specified scope and initially have no type assigned to them.

          - (LKSymbol *) symbolForName: (NSString *)aName

          Looks up the symbol for a specified name.

            - (NSArray *) arguments

            Returns all of the symbols in this table that represent arguments.

              - (NSArray *) locals

              Returns all of the symbols in this table that represent local variables.

                - (NSArray *) classVariables

                Returns all of the symbols in this table that represent class variables.

                  - (NSArray *) instanceVariables

                  Returns all of the symbols in this table that represent instance variables.

                    - (NSArray *) byRefVariables

                    Returns all of the symbols in this table that represent external symbols..