|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Program
public class Program
A class that represents the program. It holds all the inforamtion needed for the program.
Field Summary | |
---|---|
static Function |
output
Hold a refernece to the output function |
Constructor Summary | |
---|---|
Program(java.lang.String name)
|
Method Summary | |
---|---|
void |
addFunction(Function function)
Adds a new function to this program. |
static Function |
functionFromName(java.lang.String name)
|
static int |
getLineNumber()
Returns a current line number in the program. |
void |
multi2SingleBit()
Transfroms multibit statements in the program into single bit statements. |
void |
optimize()
Optimizes the program. |
void |
toCircuit(java.io.PrintWriter circuit,
boolean opt)
Returns a string representing this object as it appear at the output circuit. |
java.lang.String |
toFormat()
Returns a String representing this object as it should appear in the format file. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
uniqueVars()
Unique vars transformations. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static Function output
Constructor Detail |
---|
public Program(java.lang.String name)
Method Detail |
---|
public void addFunction(Function function)
function
- the new function to add.public java.lang.String toString()
toString
in class java.lang.Object
public void multi2SingleBit()
public void toCircuit(java.io.PrintWriter circuit, boolean opt)
public static int getLineNumber()
public java.lang.String toFormat()
public void optimize()
public void uniqueVars()
public static Function functionFromName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |