Package com.tonic.analysis.ssa.ir
Enum TypeCheckOp
- java.lang.Object
-
- java.lang.Enum<TypeCheckOp>
-
- com.tonic.analysis.ssa.ir.TypeCheckOp
-
- All Implemented Interfaces:
Serializable,Comparable<TypeCheckOp>
public enum TypeCheckOp extends Enum<TypeCheckOp>
Whether aTypeCheckInstructionis a checkcast or an instanceof test.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASTA checked cast that passes the value through under the target type and throwsClassCastExceptionwhen it does not fit.INSTANCEOFA non-throwing type test that produces an int, 1 when the value is an instance of the target type and 0 otherwise; null tests as 0.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeCheckOpvalueOf(String name)Returns the enum constant of this type with the specified name.static TypeCheckOp[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CAST
public static final TypeCheckOp CAST
A checked cast that passes the value through under the target type and throwsClassCastExceptionwhen it does not fit.
-
INSTANCEOF
public static final TypeCheckOp INSTANCEOF
A non-throwing type test that produces an int, 1 when the value is an instance of the target type and 0 otherwise; null tests as 0.
-
-
Method Detail
-
values
public static TypeCheckOp[] 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 (TypeCheckOp c : TypeCheckOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeCheckOp 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
-
-