proguard.classfile.instruction
Class InstructionUtil

java.lang.Object
  extended by proguard.classfile.instruction.InstructionUtil

public class InstructionUtil
extends java.lang.Object

Utility methods for converting between representations of names and descriptions.


Constructor Summary
InstructionUtil()
           
 
Method Summary
static char internalTypeFromArrayType(byte arrayType)
          Returns the internal type corresponding to the given 'newarray' type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstructionUtil

public InstructionUtil()
Method Detail

internalTypeFromArrayType

public static char internalTypeFromArrayType(byte arrayType)
Returns the internal type corresponding to the given 'newarray' type.

Parameters:
arrayType - InstructionConstants.ARRAY_T_BOOLEAN, InstructionConstants.ARRAY_T_BYTE, InstructionConstants.ARRAY_T_CHAR, InstructionConstants.ARRAY_T_SHORT, InstructionConstants.ARRAY_T_INT, InstructionConstants.ARRAY_T_LONG, InstructionConstants.ARRAY_T_FLOAT, or InstructionConstants.ARRAY_T_DOUBLE.
Returns:
ClassConstants.INTERNAL_TYPE_BOOLEAN, ClassConstants.INTERNAL_TYPE_BYTE, ClassConstants.INTERNAL_TYPE_CHAR, ClassConstants.INTERNAL_TYPE_SHORT, ClassConstants.INTERNAL_TYPE_INT, ClassConstants.INTERNAL_TYPE_LONG, ClassConstants.INTERNAL_TYPE_FLOAT, or ClassConstants.INTERNAL_TYPE_DOUBLE.