File mu/Extension


class mu.Extension

Inherits

State supers
Named

methods

instance (id) (ext)
  ofMeta Meta meta
  inFile TomFile file
   name: tom.String name = nil;
Return a newly allocated Extension which extends the meta. The extension is contained in the file, and has the name. Upon return, the extension has been added to the meta.

instance mu.Extension

variables

public Meta meta;
The meta we extend.
public TomFile file;
The file in which containing this extension.
tom.String descriptive_name;
Our descriptive name, created on demand.
tom.MutableArray variables;
The non-static variables in this extension.
tom.MutableArray methods;
Method definitions in this extension.
tom.MutableArray other_attributes;
Any attributes in this extension that are not in the variables.

methods

private id
  initWithMeta Meta m
        inFile TomFile f
          name tom.String n;
Designated initializer.

void
  addAlias Alias a;
Add the alias a to the other_attributes and inform the meta.

void
  addConst (tom.String, Expression) (name, value);
Be notified of the encounter of a const.

void
  addMetaVariable (int, Type, tom.String) (qualifiers, type, name);
Be notified of the encounter of a class or instance variable, or a redeclaration thereof.

void
  addMethod Method method;
Add the method to the methods.

void
  addVariable MetaVariable v;
Add the variable v to the variables or, if it is static, to the other_attributes.

tom.String
  descriptive_name;
Return the descriptive_name, creating it if necessary.

boolean
  isMainExtension;
Return TRUE if our name is nil.

Unit
  unit;
Return the unit containing this extension.


Generated by tm 1.01.