public class Types
extends java.lang.Object
| Constructor and Description |
|---|
Types() |
| Modifier and Type | Method and Description |
|---|---|
static org.objectweb.asm.Type[] |
argumentTypes(java.lang.Object ob)
Get the argument types of the given object.
|
static java.lang.String |
internalName(java.lang.Object ob)
Get the internal name of the given object.
|
static boolean |
isPrimitive(org.objectweb.asm.Type type)
Check if the given type is a primitive type.
|
static java.lang.String |
methodDescriptor(java.lang.Object returnType,
java.lang.Object... arguments)
Get the descriptor of the given method.
|
static org.objectweb.asm.Type |
returnType(java.lang.Object ob)
Get the return type of the given object.
|
static org.objectweb.asm.Type |
type(java.lang.Object ob)
Parse the given object into a
Type. |
static java.lang.String |
typeDescriptor(java.lang.Object ob)
Get the descriptor of the given object.
|
public static boolean isPrimitive(org.objectweb.asm.Type type)
void, boolean, byte, short, char, int, long, float, doubletype - The type to checkpublic static org.objectweb.asm.Type type(java.lang.Object ob)
Type.String (Will be parsed as a type or object type)ClassField (The type of the field will be used)MethodConstructorType (Will be returned as is)ob - The object to parsepublic static org.objectweb.asm.Type returnType(java.lang.Object ob)
String (Will be parsed as a method descriptor)MethodMethodNodeMethodInsnNodeType (Will be returned as is)ob - The object to get the return type frompublic static org.objectweb.asm.Type[] argumentTypes(java.lang.Object ob)
String (Will be parsed as a method descriptor)MethodMethodNodeMethodInsnNodeob - The object to get the argument types frompublic static java.lang.String internalName(java.lang.Object ob)
type(Object) for supported types.ob - The object to get the internal name frompublic static java.lang.String typeDescriptor(java.lang.Object ob)
type(Object) for supported types.ob - The object to get the descriptor frompublic static java.lang.String methodDescriptor(java.lang.Object returnType,
java.lang.Object... arguments)
returnType is a Method or Constructor the descriptor will be generated from the method/constructor.type(Object) for supported types.returnType - The return type of the methodarguments - The arguments of the method