类 InstructionUtil


  • public class InstructionUtil
    extends java.lang.Object
    Utility methods for converting between representations of names and descriptions.
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      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.
      static boolean isStaticCall​(byte opcode)
      Check if an instruction opcode refers to a static call (i.e. no calling instance needed).
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • InstructionUtil

        public InstructionUtil()
    • 方法详细资料

      • 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, or Instruction.ARRAY_T_DOUBLE.
        返回:
        TypeConstants.BOOLEAN, TypeConstants.BYTE, TypeConstants.CHAR, TypeConstants.SHORT, TypeConstants.INT , TypeConstants.LONG, TypeConstants.FLOAT, or TypeConstants.DOUBLE.
      • arrayTypeFromInternalType

        public static byte arrayTypeFromInternalType​(char internalType)
        Returns the 'newarray' type constant for the given internal primitive type.
        参数:
        internalType - a primitive type TypeConstants.BOOLEAN, TypeConstants.BYTE, TypeConstants.CHAR, TypeConstants.SHORT , TypeConstants.INT, TypeConstants.LONG, TypeConstants.FLOAT, or TypeConstants.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, or TypeConstants.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.