类 InstructionUtil
- java.lang.Object
-
- proguard.classfile.instruction.InstructionUtil
-
public class InstructionUtil extends java.lang.ObjectUtility methods for converting between representations of names and descriptions.
-
-
构造器概要
构造器 构造器 说明 InstructionUtil()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static bytearrayTypeFromInternalType(char internalType)Returns the 'newarray' type constant for the given internal primitive type.static charinternalTypeFromArrayType(byte arrayType)Returns the internal type corresponding to the given 'newarray' type.static booleanisStaticCall(byte opcode)Check if an instruction opcode refers to a static call (i.e. no calling instance needed).
-
-
-
方法详细资料
-
internalTypeFromArrayType
public static char internalTypeFromArrayType(byte arrayType)
Returns the internal type corresponding to the given 'newarray' type.- 参数:
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, orInstruction.ARRAY_T_DOUBLE.- 返回:
TypeConstants.BOOLEAN,TypeConstants.BYTE,TypeConstants.CHAR,TypeConstants.SHORT,TypeConstants.INT,TypeConstants.LONG,TypeConstants.FLOAT, orTypeConstants.DOUBLE.
-
arrayTypeFromInternalType
public static byte arrayTypeFromInternalType(char internalType)
Returns the 'newarray' type constant for the given internal primitive type.- 参数:
internalType- a primitive typeTypeConstants.BOOLEAN,TypeConstants.BYTE,TypeConstants.CHAR,TypeConstants.SHORT,TypeConstants.INT,TypeConstants.LONG,TypeConstants.FLOAT, orTypeConstants.DOUBLE.- 返回:
- the array type constant corresponding to the given primitive type;
TypeConstants.BOOLEAN,TypeConstants.BYTE,TypeConstants.CHAR,TypeConstants.SHORT,TypeConstants.INT,TypeConstants.LONG,TypeConstants.FLOAT, orTypeConstants.DOUBLE. - 另请参阅:
internalTypeFromArrayType(byte)
-
isStaticCall
public static boolean isStaticCall(byte opcode)
Check if an instruction opcode refers to a static call (i.e. no calling instance needed).- 参数:
opcode- The instruction opcode to check- 返回:
- False if this call requires a calling instance, true otherwise.
-
-