public class Asm
extends java.lang.Object
AsmUtils
.| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
CONSTRUCT_METHOD
The Constant CONSTRUCT_METHOD.
|
static java.lang.String |
NONE_PARAMETER_DESCRIPTOR
The Constant NONE_PARAMETER_DESCRIPTOR.
|
static java.util.Map<java.lang.Integer,java.lang.String> |
OPCODE_MAP
The Constant OPCODE_MAP.
|
| 构造器和说明 |
|---|
Asm() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.String |
_getMethodDescriptor(java.lang.Class<?> type)
Gets the method descriptor.
|
static java.lang.String |
getConstructorDescriptor(java.lang.Class<?>... paramTypes)
Gets the constructor descriptor.
|
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.Constructor<?> constructor)
Gets the constructor param names.
|
static java.lang.String[] |
getParamNames(java.lang.reflect.Method method)
Gets the method param names.
|
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 NONE_PARAMETER_DESCRIPTOR
public static final java.util.Map<java.lang.Integer,java.lang.String> OPCODE_MAP
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(java.lang.Class<?>... paramTypes)
paramTypes - the param typespublic 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 java.lang.String[] getParamNames(java.lang.reflect.Method method)
method - the methodpublic static java.lang.String[] getParamNames(java.lang.reflect.Constructor<?> constructor)
constructor - the constructor