|
||||||||||
| 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.RelationInstruction
public class RelationInstruction
This class is used to represent all of the instructions and the comparison necessary for all of the branch and loop instructions that require some representation of the condition that determines if they run or not.
| Field Summary | |
|---|---|
Variable |
arg1
First argument to be compared |
Variable |
arg2
Second arguement to compared to arg1 |
int |
condition
the condition required for what we were given to be true |
InstructionSet |
statements
|
| 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 | |
|---|---|
RelationInstruction(Variable arg1,
Variable arg2,
int condition)
|
|
| Method Summary | |
|---|---|
int |
getInstType()
|
boolean |
usesVariable(Variable foo)
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 InstructionSet statements
public Variable arg1
public Variable arg2
public int condition
| Constructor Detail |
|---|
public RelationInstruction(Variable arg1,
Variable arg2,
int condition)
| Method Detail |
|---|
public boolean usesVariable(Variable foo)
Instruction
usesVariable in class Instructionfoo - 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 | |||||||||