public static enum Constant.Condition extends java.lang.Enum<Constant.Condition>
Constant.expandZeroConditions() setting.
Each option matches the inverse instructions as well because in the
compiled code it is not unusual for if (x > 0) to be compiled
as if (!(x <= 0))
Note that all of these options assume that x is on the left-hand side of the expression in question. For expressions where zero is on the right-hand side you should choose the inverse.
| Enum Constant and Description |
|---|
GREATER_THAN_OR_EQUAL_TO_ZERO
Match >= operators and < instructions, equivalent to
LESS_THAN_ZERO
x >= 0 |
GREATER_THAN_ZERO
Match > operators and <= instructions, equivalent to
LESS_THAN_OR_EQUAL_TO_ZERO
x > 0 |
LESS_THAN_OR_EQUAL_TO_ZERO
Match <= operators and > instructions
x <= 0 |
LESS_THAN_ZERO
Match < operators and >= instructions:
x < 0 |
| Modifier and Type | Method and Description |
|---|---|
Constant.Condition |
getEquivalentCondition()
Get the condition which is equivalent to this condition
|
int[] |
getOpcodes()
Get the opcodes for this condition
|
static Constant.Condition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constant.Condition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constant.Condition LESS_THAN_ZERO
x < 0public static final Constant.Condition LESS_THAN_OR_EQUAL_TO_ZERO
x <= 0public static final Constant.Condition GREATER_THAN_OR_EQUAL_TO_ZERO
LESS_THAN_ZERO
x >= 0public static final Constant.Condition GREATER_THAN_ZERO
LESS_THAN_OR_EQUAL_TO_ZERO
x > 0public static Constant.Condition[] values()
for (Constant.Condition c : Constant.Condition.values()) System.out.println(c);
public static Constant.Condition valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Constant.Condition getEquivalentCondition()
public int[] getOpcodes()