code array of a
Code attribute, such as i2l. Corresponding opcodes
have a kind of Opcode.Kind#CONVERT .
Delivered as a CodeElement when traversing the elements of a CodeModel.
A primitive conversion instruction is composite:
ConvertInstruction( TypeKind fromType, TypeKind toType )
int, long, float, and double, where
fromType != toType;
int to byte, char, and short.
Opcode.Kind#CONVERT , CodeBuilder::conversion
| Modifier and Type | Method and Description |
|---|---|
| public TypeKind | |
| public static ConvertInstruction | |
| public static ConvertInstruction | Returns: a conversion instructionthe opcode for the specific type of conversion instruction,
which must be of kind op)Opcode.Returns a conversion instruction. |
| public TypeKind |
| fromType | back to summary |
|---|---|
| public TypeKind fromType() Returns the source type to convert from.
| |
| of | back to summary |
|---|---|
| public static ConvertInstruction of(TypeKind fromType, TypeKind toType) Returns a conversion instruction. Valid conversions are:
| |
| of | back to summary |
|---|---|
| public static ConvertInstruction of(Opcode op) Returns a conversion instruction.
| |
| toType | back to summary |
|---|---|
| public TypeKind toType() Returns the destination type to convert to.
| |