Class Type


  • public class Type
    extends Object
    A Java type. This class can be used to make it easier to manipulate type and method descriptors.
    Author:
    Eric Bruneton, Chris Nokleberg
    • Field Detail

      • VOID_TYPE

        public static final Type VOID_TYPE
        The void type.
      • BOOLEAN_TYPE

        public static final Type BOOLEAN_TYPE
        The boolean type.
      • CHAR_TYPE

        public static final Type CHAR_TYPE
        The char type.
      • BYTE_TYPE

        public static final Type BYTE_TYPE
        The byte type.
      • SHORT_TYPE

        public static final Type SHORT_TYPE
        The short type.
      • INT_TYPE

        public static final Type INT_TYPE
        The int type.
      • FLOAT_TYPE

        public static final Type FLOAT_TYPE
        The float type.
      • LONG_TYPE

        public static final Type LONG_TYPE
        The long type.
      • DOUBLE_TYPE

        public static final Type DOUBLE_TYPE
        The double type.
    • Method Detail

      • getType

        public static Type getType​(String typeDescriptor)
        Returns the Java type corresponding to the given type descriptor.
        Parameters:
        typeDescriptor - a type descriptor.
        Returns:
        the Java type corresponding to the given type descriptor.
      • getArgumentsAndReturnSizes

        public static int getArgumentsAndReturnSizes​(String desc)
      • getInternalName

        public String getInternalName()