Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.codegen
Class CompUnitGenerator

    java.lang.Object
      uchicago.src.codegen.CompUnitGenerator

All Implemented Interfaces:
  CodeGenerator

    public class CompUnitGenerator

extends java.lang.Object
implements CodeGenerator

Field Summary

Fields inherited from interface uchicago.src.codegen.CodeGenerator
`I_SPACES`

Constructor Summary
`CompUnitGenerator(java.lang.String name, java.lang.String pack)`

Method Summary
`void` | `add(java.lang.String name, java.lang.Object object)`
`void` | `addClassGenerator(ClassGenerator cg)`
`void` | `addImport(ImportGenerator imp)`
`java.lang.String` | `generate(int indent)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CompUnitGenerator

    public CompUnitGenerator(java.lang.String name,
                             java.lang.String pack)

Method Detail

### add

    public void add(java.lang.String name,
                    java.lang.Object object)

  Specified by:
    `add` in interface `CodeGenerator`

### addImport

    public void addImport(ImportGenerator imp)

### addClassGenerator

    public void addClassGenerator(ClassGenerator cg)

### generate

    public java.lang.String generate(int indent)

  Specified by:
    `generate` in interface `CodeGenerator`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD