|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Statement
SFE.Compiler.BlockStatement
public class BlockStatement
A class for representing a block of statements that can be defined in the program.
Field Summary | |
---|---|
static java.util.Vector |
inputFormat
|
Constructor Summary | |
---|---|
BlockStatement()
Constructs a new BlockStatement. |
Method Summary | |
---|---|
void |
buildUsedStatementsHash()
Executes buildUsedStatementsHash() for each statement in the BlockStatement. |
Statement |
duplicate()
returns a duplica of this BlockStatement. |
BlockStatement |
multi2SingleBit(java.lang.Object obj)
Transforms this multibit statements in this BlockStatement into singlebit statements and returns the result. |
void |
optimizePhaseI()
Optimizes this BlockStatment. |
void |
optimizePhaseII(java.util.Vector newBody)
executes optimizePhaseII() on each of the statements in this BlockStatement. |
void |
toCircuit(java.io.PrintWriter circuit)
Writes this BlockStatement to the output circuit. |
java.lang.String |
toString()
Returns a string representation of the BlockStatement. |
Statement |
uniqueVars()
Unique vars transformations. |
Methods inherited from class SFE.Compiler.Statement |
---|
hasUnaryOperator |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.Vector inputFormat
Constructor Detail |
---|
public BlockStatement()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public BlockStatement multi2SingleBit(java.lang.Object obj)
multi2SingleBit
in interface Multi2SingleBit
obj
- not needed (null).
public void toCircuit(java.io.PrintWriter circuit)
circuit
- the output circuit file.public Statement uniqueVars()
uniqueVars
in class Statement
public void optimizePhaseI()
public void optimizePhaseII(java.util.Vector newBody)
public void buildUsedStatementsHash()
public Statement duplicate()
duplicate
in class Statement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |