public class InstructionUtil
extends java.lang.Object
| Constructor and Description |
|---|
InstructionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
arrayTypeFromInternalType(char internalType)
Returns the 'newarray' type constant for the given internal primitive
type.
|
static char |
internalTypeFromArrayType(byte arrayType)
Returns the internal type corresponding to the given 'newarray' type.
|
public static char internalTypeFromArrayType(byte arrayType)
arrayType - Instruction.ARRAY_T_BOOLEAN,
Instruction.ARRAY_T_BYTE,
Instruction.ARRAY_T_CHAR,
Instruction.ARRAY_T_SHORT,
Instruction.ARRAY_T_INT,
Instruction.ARRAY_T_LONG,
Instruction.ARRAY_T_FLOAT, or
Instruction.ARRAY_T_DOUBLE.TypeConstants.BOOLEAN,
TypeConstants.BYTE,
TypeConstants.CHAR,
TypeConstants.SHORT,
TypeConstants.INT,
TypeConstants.LONG,
TypeConstants.FLOAT, or
TypeConstants.DOUBLE.public static byte arrayTypeFromInternalType(char internalType)
internalType - a primitive type
TypeConstants.BOOLEAN,
TypeConstants.BYTE,
TypeConstants.CHAR,
TypeConstants.SHORT,
TypeConstants.INT,
TypeConstants.LONG,
TypeConstants.FLOAT, or
TypeConstants.DOUBLE.TypeConstants.BOOLEAN,
TypeConstants.BYTE,
TypeConstants.CHAR,
TypeConstants.SHORT,
TypeConstants.INT,
TypeConstants.LONG,
TypeConstants.FLOAT, or
TypeConstants.DOUBLE.internalTypeFromArrayType(byte)