public class Asm
extends java.lang.Object
AsmUtils
.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONSTRUCT_METHOD
The Constant CONSTRUCT_METHOD.
|
static java.lang.String |
NONE_PARAMETER_DESCRIPTOR
The Constant NONE_PARAMETER_DESCRIPTOR.
|
static java.lang.String |
PRIMITIVE_BOXING_METHOD
The Constant PRIMITIVE_BOXING_METHOD.
|
static java.lang.String |
PRIMITIVE_WRAPPER_METHOD
Deprecated.
|
| Constructor and Description |
|---|
Asm() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
_getMethodDescriptor(java.lang.Class<?> type)
Gets the method descriptor.
|
static java.lang.String |
getConstructorDescriptor()
Gets the constructor descriptor.
|
static java.lang.String |
getConstructorDescriptor(java.lang.Class<?>... paramTypes)
Gets the constructor descriptor.
|
static java.lang.String |
getConstructorDescriptor(java.lang.String... paramTypeDescriptors)
Gets the constructor descriptor.
|
static int |
getLoadCode(java.lang.Class<?> primitiveType)
Gets the primitive return code.
|
static java.lang.String |
getName(java.lang.Class<?> type)
Gets the name.
|
static java.lang.String |
getName(java.lang.String className)
Gets the name.
|
static java.lang.String[] |
getParamNames(java.lang.reflect.Executable executable)
Gets the constructor or method param names.
|
static java.lang.String |
getPrimitiveBoxingMethodDescriptor(java.lang.Class<?> type)
Gets the primitive boxing method descriptor.
|
static java.lang.String |
getPrimitiveBoxingMethodDescriptor(java.lang.String type)
Gets the primitive boxing method descriptor.
|
static int |
getPrimitiveReturnCode(java.lang.Class<?> primitiveType)
Gets the primitive return code.
|
static java.lang.String |
getPrimitiveUnboxingMethod(java.lang.Class<?> type)
Gets the primitive unboxing method name.
|
static java.lang.String |
getPrimitiveUnboxingMethod(java.lang.String type)
Gets the primitive unboxing method name.
|
static java.lang.String |
getPrimitiveUnboxingMethodDescriptor(java.lang.Class<?> type)
Gets the primitive unboxing method descriptor.
|
static java.lang.String |
getPrimitiveUnboxingMethodDescriptor(java.lang.String type)
Gets the primitive unboxing method descriptor.
|
static java.lang.String |
getPrimitiveWrapperMethodDescriptor(java.lang.Class<?> type)
Deprecated.
|
static java.lang.String |
getPrimitiveWrapperMethodDescriptor(java.lang.String type)
Deprecated.
|
static java.lang.String |
getPrimitiveWrapperName(java.lang.Class<?> type)
Gets the primitive wrapper name.
|
static java.lang.String |
getPrimitiveWrapperName(java.lang.String type)
Gets the primitive wrapper name.
|
static int |
getReturnCode(java.lang.Class<?> type)
Gets the return code.
|
static org.objectweb.asm.Type |
getType(java.lang.Class<?> type) |
static org.objectweb.asm.Type |
getType(java.lang.String type) |
static boolean |
isPrimitive(java.lang.String type)
Checks if is primitive.
|
static java.lang.String |
javapString(org.objectweb.asm.tree.AbstractInsnNode abstractInsnNode)
Javap string.
|
static java.lang.String |
opcodeName(int opcode)
Opcode name.
|
public static final java.lang.String CONSTRUCT_METHOD
public static final java.lang.String PRIMITIVE_BOXING_METHOD
@Deprecated public static final java.lang.String PRIMITIVE_WRAPPER_METHOD
PRIMITIVE_BOXING_METHODpublic static final java.lang.String NONE_PARAMETER_DESCRIPTOR
public static java.lang.String opcodeName(int opcode)
opcode - the opcodepublic static java.lang.String javapString(org.objectweb.asm.tree.AbstractInsnNode abstractInsnNode)
abstractInsnNode - the abstract insn nodepublic static java.lang.String _getMethodDescriptor(java.lang.Class<?> type)
type - the typepublic static java.lang.String getConstructorDescriptor()
public static java.lang.String getConstructorDescriptor(java.lang.Class<?>... paramTypes)
paramTypes - the param typespublic static java.lang.String getConstructorDescriptor(java.lang.String... paramTypeDescriptors)
paramTypeDescriptors - the param type descriptorspublic static java.lang.String getName(java.lang.Class<?> type)
type - the typepublic static java.lang.String getName(java.lang.String className)
className - the class namepublic static int getReturnCode(java.lang.Class<?> type)
type - the typepublic static int getPrimitiveReturnCode(java.lang.Class<?> primitiveType)
primitiveType - the primitive typepublic static int getLoadCode(java.lang.Class<?> primitiveType)
primitiveType - the primitive typepublic static java.lang.String getPrimitiveUnboxingMethod(java.lang.String type)
type - the typepublic static java.lang.String getPrimitiveUnboxingMethod(java.lang.Class<?> type)
type - the typepublic static java.lang.String getPrimitiveUnboxingMethodDescriptor(java.lang.String type)
type - the typepublic static java.lang.String getPrimitiveUnboxingMethodDescriptor(java.lang.Class<?> type)
type - the typepublic static java.lang.String getPrimitiveBoxingMethodDescriptor(java.lang.String type)
type - the typepublic static java.lang.String getPrimitiveBoxingMethodDescriptor(java.lang.Class<?> type)
type - the type@Deprecated public static java.lang.String getPrimitiveWrapperMethodDescriptor(java.lang.String type)
getPrimitiveBoxingMethodDescriptor(String)type - the type@Deprecated public static java.lang.String getPrimitiveWrapperMethodDescriptor(java.lang.Class<?> type)
getPrimitiveBoxingMethodDescriptor(Class)type - the typepublic static org.objectweb.asm.Type getType(java.lang.Class<?> type)
public static org.objectweb.asm.Type getType(java.lang.String type)
public static boolean isPrimitive(java.lang.String type)
type - the typepublic static java.lang.String getPrimitiveWrapperName(java.lang.String type)
type - the typepublic static java.lang.String getPrimitiveWrapperName(java.lang.Class<?> type)
type - the typepublic static java.lang.String[] getParamNames(java.lang.reflect.Executable executable)
executable - constructor or method