harpoon.Main
Class CodeGenerator

java.lang.Object
  extended by harpoon.Main.CompilerStage
      extended by harpoon.Main.CodeGenerator

public class CodeGenerator
extends CompilerStage

CodeGenerator

Version:
$Id: CodeGenerator.java,v 1.14 2005/09/15 03:42:30 salcianu Exp $
Author:
Alexandru Salcianu <salcianu@MIT.edu>

Field Summary
static boolean ENABLED
          Tells whether the code generator stage is enabled.
 
Constructor Summary
CodeGenerator()
           
 
Method Summary
 CompilerState action(CompilerState cs)
           
 boolean enabled()
           
 List<Option> getOptions()
           
protected static void info(String str)
           
protected static void message(String msg)
           
protected static void messageln(String msg)
           
 void outputClassData(HClass hclass, PrintWriter out)
           
 void outputMethod(HMethod hmethod, HCodeFactory hcf, HCodeFactory sahcf, PrintWriter out)
           
 
Methods inherited from class harpoon.Main.CompilerStage
name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED

public static boolean ENABLED
Tells whether the code generator stage is enabled. Default is true.

Constructor Detail

CodeGenerator

public CodeGenerator()
Method Detail

getOptions

public List<Option> getOptions()
Specified by:
getOptions in class CompilerStage

enabled

public boolean enabled()
Specified by:
enabled in class CompilerStage
Returns:
true

action

public CompilerState action(CompilerState cs)
Specified by:
action in class CompilerStage

outputMethod

public void outputMethod(HMethod hmethod,
                         HCodeFactory hcf,
                         HCodeFactory sahcf,
                         PrintWriter out)
                  throws IOException
Throws:
IOException

outputClassData

public void outputClassData(HClass hclass,
                            PrintWriter out)
                     throws IOException
Throws:
IOException

message

protected static void message(String msg)

messageln

protected static void messageln(String msg)

info

protected static void info(String str)