Add static factory method to Type object accepting binary name
There is currently no way to create a type from a binary name; we have static factory methods for other contexts. The Type class is a great way to convert between these different formats and this would complete the set.
Type from descriptor -> Type.getType
Type from object internal name -> Type.getObjectType
* Type from binary name -> Type.getBinaryType or Type.getClassType [suggestion]
Type from method descriptor -> Type.getMethodType (redundant with getType?)
Type to descriptor -> Type#getDescriptor
Type to internal name -> Type#getInternalName
Type to binary name -> Type#getClassName
Example method name and usage:
Type t1 = Type.getBinaryType("float");
t1.getDescriptor(); // F
Type t2 = Type.getBinaryType("float[][]");
t2.getDescriptor(); // [[F
Type t3 = Type.getBinaryType("org.objectweb.asm.Type[]");
t3.getDescriptor(); // [Lorg/objectweb/asm/Type;