Package com.tonic.analysis.ssa.ir
Enum CompareOp
- java.lang.Object
-
- java.lang.Enum<CompareOp>
-
- com.tonic.analysis.ssa.ir.CompareOp
-
- All Implemented Interfaces:
Serializable,Comparable<CompareOp>
public enum CompareOp extends Enum<CompareOp>
Comparison operations for branches.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACMPEQIf references are equal.ACMPNEIf references are not equal.EQEqual.GEGreater or equal.GTGreater than.IFEQIf equal to zero.IFGEIf greater or equal to zero.IFGTIf greater than zero.IFLEIf less or equal to zero.IFLTIf less than zero.IFNEIf not equal to zero.IFNONNULLIf reference is not null.IFNULLIf reference is null.LELess or equal.LTLess than.NENot equal.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompareOpinvert()The logically-opposite comparison (the branch that fires exactly when this one would not).static CompareOpvalueOf(String name)Returns the enum constant of this type with the specified name.static CompareOp[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQ
public static final CompareOp EQ
Equal.
-
NE
public static final CompareOp NE
Not equal.
-
LT
public static final CompareOp LT
Less than.
-
GE
public static final CompareOp GE
Greater or equal.
-
GT
public static final CompareOp GT
Greater than.
-
LE
public static final CompareOp LE
Less or equal.
-
IFEQ
public static final CompareOp IFEQ
If equal to zero.
-
IFNE
public static final CompareOp IFNE
If not equal to zero.
-
IFLT
public static final CompareOp IFLT
If less than zero.
-
IFGE
public static final CompareOp IFGE
If greater or equal to zero.
-
IFGT
public static final CompareOp IFGT
If greater than zero.
-
IFLE
public static final CompareOp IFLE
If less or equal to zero.
-
IFNULL
public static final CompareOp IFNULL
If reference is null.
-
IFNONNULL
public static final CompareOp IFNONNULL
If reference is not null.
-
ACMPEQ
public static final CompareOp ACMPEQ
If references are equal.
-
ACMPNE
public static final CompareOp ACMPNE
If references are not equal.
-
-
Method Detail
-
values
public static CompareOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompareOp c : CompareOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompareOp valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
invert
public CompareOp invert()
The logically-opposite comparison (the branch that fires exactly when this one would not).- Returns:
- the inverted comparison
-
-