|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdspl.intermediate.Comparison
public class Comparison
Comparison expresses a binary comparison between two Variables.
It is intended to be used with both branch and loop instructions.
| Field Summary | |
|---|---|
Variable |
arg1
First argument to be compared |
Variable |
arg2
Second arguement to compared to arg1 |
int |
condition
Perform if-instructions if arg1 *Condition* arg2 is true, else perform else-instruction Must be one of the CONDITION_xxx values |
static int |
CONDITION_EQUAL
Equal to |
static int |
CONDITION_GE
Greater than or equal |
static int |
CONDITION_GREATER
Greater than |
static int |
CONDITION_LE
Less than or equal |
static int |
CONDITION_LESS
Less than |
static int |
CONDITION_NEQUAL
Not equal too |
| Constructor Summary | |
|---|---|
Comparison(Variable arg1,
Variable arg2,
int condition)
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CONDITION_GREATER
public static final int CONDITION_LESS
public static final int CONDITION_GE
public static final int CONDITION_LE
public static final int CONDITION_EQUAL
public static final int CONDITION_NEQUAL
public Variable arg1
public Variable arg2
public int condition
| Constructor Detail |
|---|
public Comparison(Variable arg1,
Variable arg2,
int condition)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||