jbet
Class SimpleCodeGen

java.lang.Object
  extended by jbet.SimpleCodeGen
All Implemented Interfaces:
CodeGenerator

public class SimpleCodeGen
extends java.lang.Object
implements CodeGenerator


Nested Class Summary
 class SimpleCodeGen.StackAccess
           
 
Constructor Summary
SimpleCodeGen()
           
 
Method Summary
 Snippit codegen(DagSnippit dags)
           
 Block[] codegen(DagSnippit dags, LocalAccess locals, java.lang.Class stackacct)
           
protected  boolean handleNode(Node n, Block b, LocalAccess locals, SimpleCodeGen.StackAccess stack)
           
protected  Block[] newBlocks(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCodeGen

public SimpleCodeGen()
Method Detail

codegen

public Snippit codegen(DagSnippit dags)

newBlocks

protected Block[] newBlocks(int n)

handleNode

protected boolean handleNode(Node n,
                             Block b,
                             LocalAccess locals,
                             SimpleCodeGen.StackAccess stack)

codegen

public Block[] codegen(DagSnippit dags,
                       LocalAccess locals,
                       java.lang.Class stackacct)
Specified by:
codegen in interface CodeGenerator