|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdspl.intermediate.instructions.Instruction
dspl.intermediate.instructions.BranchInstruction
public class BranchInstruction
| Field Summary | |
|---|---|
Comparison |
comp
Contains the binary comparison which if true, the ifInstructions are evaluated, else, the elseInstructions are evaluated |
Instruction |
elseInst
Instructions to be executed if hte "if" statement is not true (the else portion to be evaluated) |
Instruction |
ifInst
Instructions to be executed if the "if" statement is true |
| Fields inherited from class dspl.intermediate.instructions.Instruction |
|---|
INST_TYPE_ARITHMATIC, INST_TYPE_BRANCH, INST_TYPE_CCALL, INST_TYPE_FORLOOP, lastInstruction, nextInstruction, prevInstruction |
| Constructor Summary | |
|---|---|
BranchInstruction(Comparison comp,
Instruction ifInst,
Instruction elseInst)
|
|
| Method Summary | |
|---|---|
int |
getInstType()
|
boolean |
usesVariable(Variable v)
Designed to be a recursive call to see if a given variable is used anymore within a code block, after the current instruction. |
| Methods inherited from class dspl.intermediate.instructions.Instruction |
|---|
setNextInstruction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Comparison comp
public Instruction ifInst
public Instruction elseInst
| Constructor Detail |
|---|
public BranchInstruction(Comparison comp,
Instruction ifInst,
Instruction elseInst)
| Method Detail |
|---|
public boolean usesVariable(Variable v)
Instruction
usesVariable in class Instructionv - the variable to search for to see if it is used
public int getInstType()
getInstType in class Instruction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||