avrora.core
Class Generator

java.lang.Object
  extended byavrora.core.Generator

public class Generator
extends java.lang.Object

The Generator class generates Java source code that implements the description of each instruction. Since there is more than 1,000 lines of redundant code (and painfully boring) source code, a generator was designed to spit out this boringly straightforward source code from this internal description.

This makes adding new instructions easy, but necessitates changes to any visitor implementations to account for the new instruction.


Field Summary
static boolean CLEAR
           
 
Constructor Summary
Generator()
           
 
Method Summary
 void generate()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLEAR

public static boolean CLEAR
Constructor Detail

Generator

public Generator()
Method Detail

generate

public void generate()
              throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException