|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Statement
SFE.Compiler.IfStatement
public class IfStatement
A class for representing if statement that can be defined in the program.
Constructor Summary | |
---|---|
IfStatement(Expression condition,
Statement thenBlock,
Statement elseBlock)
Construct a new if statement. |
Method Summary | |
---|---|
Statement |
duplicate()
Returns a replica of this IfStatement. |
BlockStatement |
multi2SingleBit(java.lang.Object obj)
Transforms this multibit AssignmentStatement into singlebit statements and returns the result. |
java.lang.String |
toString()
Returns a string representation of this IfStatement. |
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 |
Constructor Detail |
---|
public IfStatement(Expression condition, Statement thenBlock, Statement elseBlock)
condition
- the condition of the if statement.thenBlock
- the block of the if statement.elseBlock
- the block of the else statement.Method Detail |
---|
public Statement uniqueVars()
uniqueVars
in class Statement
public BlockStatement multi2SingleBit(java.lang.Object obj)
obj
- not needed (null).
public Statement duplicate()
duplicate
in class Statement
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |