Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use ConvertInstruction
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
code
array of a
Code
attribute, such as i2l
. Corresponding opcodes will have
a kind
of Opcode.Kind#CONVERT
. Delivered as a CodeElement
when traversing the elements of a CodeModel
.
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.
|
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.
|