harpoon.Main
Class CodeGenerator
java.lang.Object
harpoon.Main.CompilerStage
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENABLED
public static boolean ENABLED
- Tells whether the code generator stage is enabled. Default is
true
.
CodeGenerator
public CodeGenerator()
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)