|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.instrumentation.asm.AsmUtils
public final class AsmUtils
| Field Summary |
|---|
| Fields inherited from interface org.objectweb.asm.Opcodes |
|---|
AALOAD, AASTORE, ACC_ABSTRACT, ACC_ANNOTATION, ACC_BRIDGE, ACC_DEPRECATED, ACC_ENUM, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_SYNTHETIC, ACC_TRANSIENT, ACC_VARARGS, ACC_VOLATILE, ACONST_NULL, ALOAD, ANEWARRAY, ARETURN, ARRAYLENGTH, ASTORE, ATHROW, BALOAD, BASTORE, BIPUSH, CALOAD, CASTORE, CHECKCAST, D2F, D2I, D2L, DADD, DALOAD, DASTORE, DCMPG, DCMPL, DCONST_0, DCONST_1, DDIV, DLOAD, DMUL, DNEG, DOUBLE, DREM, DRETURN, DSTORE, DSUB, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, F_APPEND, F_CHOP, F_FULL, F_NEW, F_SAME, F_SAME1, F2D, F2I, F2L, FADD, FALOAD, FASTORE, FCMPG, FCMPL, FCONST_0, FCONST_1, FCONST_2, FDIV, FLOAD, FLOAT, FMUL, FNEG, FREM, FRETURN, FSTORE, FSUB, GETFIELD, GETSTATIC, GOTO, I2B, I2C, I2D, I2F, I2L, I2S, IADD, IALOAD, IAND, IASTORE, ICONST_0, ICONST_1, ICONST_2, ICONST_3, ICONST_4, ICONST_5, ICONST_M1, IDIV, IF_ACMPEQ, IF_ACMPNE, IF_ICMPEQ, IF_ICMPGE, IF_ICMPGT, IF_ICMPLE, IF_ICMPLT, IF_ICMPNE, IFEQ, IFGE, IFGT, IFLE, IFLT, IFNE, IFNONNULL, IFNULL, IINC, ILOAD, IMUL, INEG, INSTANCEOF, INTEGER, INVOKEDYNAMIC, INVOKEDYNAMIC_OWNER, INVOKEINTERFACE, INVOKESPECIAL, INVOKESTATIC, INVOKEVIRTUAL, IOR, IREM, IRETURN, ISHL, ISHR, ISTORE, ISUB, IUSHR, IXOR, JSR, L2D, L2F, L2I, LADD, LALOAD, LAND, LASTORE, LCMP, LCONST_0, LCONST_1, LDC, LDIV, LLOAD, LMUL, LNEG, LONG, LOOKUPSWITCH, LOR, LREM, LRETURN, LSHL, LSHR, LSTORE, LSUB, LUSHR, LXOR, MONITORENTER, MONITOREXIT, MULTIANEWARRAY, NEW, NEWARRAY, NOP, NULL, POP, POP2, PUTFIELD, PUTSTATIC, RET, RETURN, SALOAD, SASTORE, SIPUSH, SWAP, T_BOOLEAN, T_BYTE, T_CHAR, T_DOUBLE, T_FLOAT, T_INT, T_LONG, T_SHORT, TABLESWITCH, TOP, UNINITIALIZED_THIS, V1_1, V1_2, V1_3, V1_4, V1_5, V1_6, V1_7 |
| Method Summary | |
|---|---|
static java.util.List<org.objectweb.asm.tree.LocalVariableNode> |
cloneLocalVariableTable(org.objectweb.asm.tree.MethodNode originalMethod,
CloneMap cloneMap)
|
static org.objectweb.asm.tree.MethodNode |
cloneMethodWithoutInstructions(org.objectweb.asm.tree.MethodNode originalMethod,
CloneMap cloneMap)
|
static java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> |
cloneTryCatchBlockNodes(java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> originalBlocks,
CloneMap cloneMap)
|
static java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> |
cloneTryCatchBlocks(org.objectweb.asm.tree.MethodNode originalMethod,
CloneMap cloneMap)
|
static java.util.List |
cloneVariableTable(org.objectweb.asm.tree.MethodNode methodNode,
CloneMap cloneMap)
|
static java.lang.String |
createMethodDescriptorWithRightIntroducedVariable(java.lang.String methodDesc,
java.lang.String extraArgType)
|
static DebugInfo |
findDebugInfo(org.objectweb.asm.tree.MethodNode method)
|
static int |
firstIndexAfterSuper(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String superClass)
|
static int |
firstIndexAfterSuper(java.lang.String methodName,
org.objectweb.asm.tree.InsnList instructions,
java.lang.String superClass)
|
static java.lang.Object |
getAnnotationValue(org.objectweb.asm.tree.AnnotationNode annotationNode,
java.lang.String valueName)
|
static java.lang.String[] |
getExceptions(org.objectweb.asm.tree.MethodNode originalMethod)
|
static java.lang.reflect.Field |
getField(java.lang.Class clazz,
java.lang.String fieldName)
|
static int |
getInvokeOpcode(org.objectweb.asm.tree.MethodNode methodNode)
|
static java.lang.String |
getTmpDir()
|
static org.objectweb.asm.tree.AnnotationNode |
getVisibleAnnotation(org.objectweb.asm.tree.MemberNode memberNode,
java.lang.Class annotationClass)
|
static boolean |
hasVisibleAnnotation(org.objectweb.asm.tree.MemberNode memberNode,
java.lang.Class annotationClass)
Checks if a ClassNode has the specified visible annotation. |
static java.lang.String |
internalToDesc(java.lang.String internalForm)
|
static boolean |
isAbstract(int access)
|
static boolean |
isAbstract(org.objectweb.asm.tree.MethodNode methodNode)
|
static boolean |
isCategory2(java.lang.String valueDesc)
|
static boolean |
isFinal(org.objectweb.asm.tree.FieldNode fieldNode)
|
static boolean |
isFinal(int access)
|
static boolean |
isInterface(org.objectweb.asm.tree.ClassNode classNode)
|
static boolean |
isNative(int access)
|
static boolean |
isNative(org.objectweb.asm.tree.MethodNode methodNode)
|
static boolean |
isPrivate(int access)
|
static boolean |
isPrivate(org.objectweb.asm.tree.MethodNode methodNode)
|
static boolean |
isProtected(int access)
|
static boolean |
isPublic(int access)
|
static boolean |
isStatic(org.objectweb.asm.tree.FieldNode fieldNode)
|
static boolean |
isStatic(int access)
|
static boolean |
isStatic(org.objectweb.asm.tree.MethodNode methodNode)
|
static boolean |
isSynthetic(int access)
|
static byte[] |
loadAsBytecode(java.io.File file)
|
static org.objectweb.asm.tree.ClassNode |
loadAsClassNode(byte[] bytecode)
|
static org.objectweb.asm.tree.ClassNode |
loadAsClassNode(java.lang.Class clazz)
Loads a Class as ClassNode. |
static org.objectweb.asm.tree.ClassNode |
loadAsClassNode(java.lang.ClassLoader loader,
java.lang.String classInternalName)
Loads a Class as ClassNode. |
static org.objectweb.asm.tree.ClassNode |
loadAsClassNode(java.io.File file)
Loads a Class as ClassNode. |
static void |
printClass(java.lang.Class clazz)
|
static void |
printClassOfTopItem(org.objectweb.asm.tree.InsnList instructions)
|
static org.objectweb.asm.tree.MethodNode |
remap(org.objectweb.asm.tree.MethodNode originalMethod,
org.objectweb.asm.commons.Remapper remapper)
|
static int |
sizeOfFormalParameters(java.lang.String desc)
|
static byte[] |
toBytecode(org.objectweb.asm.tree.ClassNode classNode)
|
static java.lang.String |
toString(org.objectweb.asm.tree.AbstractInsnNode insnNode)
|
static int |
upgradeToProtected(int access)
|
static int |
upgradeToPublic(int access)
|
static void |
writeToFile(java.io.File file,
byte[] bytecode)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.objectweb.asm.tree.MethodNode cloneMethodWithoutInstructions(org.objectweb.asm.tree.MethodNode originalMethod,
CloneMap cloneMap)
public static java.util.List<org.objectweb.asm.tree.LocalVariableNode> cloneLocalVariableTable(org.objectweb.asm.tree.MethodNode originalMethod,
CloneMap cloneMap)
public static java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> cloneTryCatchBlocks(org.objectweb.asm.tree.MethodNode originalMethod,
CloneMap cloneMap)
public static void printClassOfTopItem(org.objectweb.asm.tree.InsnList instructions)
public static void printClass(java.lang.Class clazz)
public static DebugInfo findDebugInfo(org.objectweb.asm.tree.MethodNode method)
public static int getInvokeOpcode(org.objectweb.asm.tree.MethodNode methodNode)
public static java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> cloneTryCatchBlockNodes(java.util.List<org.objectweb.asm.tree.TryCatchBlockNode> originalBlocks,
CloneMap cloneMap)
public static java.util.List cloneVariableTable(org.objectweb.asm.tree.MethodNode methodNode,
CloneMap cloneMap)
public static int firstIndexAfterSuper(java.lang.String methodName,
org.objectweb.asm.tree.InsnList instructions,
java.lang.String superClass)
public static int firstIndexAfterSuper(org.objectweb.asm.tree.MethodNode methodNode,
java.lang.String superClass)
public static java.lang.String toString(org.objectweb.asm.tree.AbstractInsnNode insnNode)
public static int sizeOfFormalParameters(java.lang.String desc)
public static boolean isCategory2(java.lang.String valueDesc)
public static int upgradeToPublic(int access)
public static int upgradeToProtected(int access)
public static java.lang.String createMethodDescriptorWithRightIntroducedVariable(java.lang.String methodDesc,
java.lang.String extraArgType)
methodDesc - the original method descriptorextraArgType - internal name of extra argument to add to the right
public static org.objectweb.asm.tree.MethodNode remap(org.objectweb.asm.tree.MethodNode originalMethod,
org.objectweb.asm.commons.Remapper remapper)
public static java.lang.String[] getExceptions(org.objectweb.asm.tree.MethodNode originalMethod)
public static org.objectweb.asm.tree.ClassNode loadAsClassNode(java.lang.Class clazz)
clazz - the Class to load as ClassNode.
public static org.objectweb.asm.tree.ClassNode loadAsClassNode(java.lang.ClassLoader loader,
java.lang.String classInternalName)
loader - the ClassLoader to getClassMetadata the resource stream of.classInternalName - the internal name of the Class to load.
public static org.objectweb.asm.tree.ClassNode loadAsClassNode(java.io.File file)
public static byte[] loadAsBytecode(java.io.File file)
public static boolean hasVisibleAnnotation(org.objectweb.asm.tree.MemberNode memberNode,
java.lang.Class annotationClass)
memberNode - the ClassNode to checkannotationClass - the Annotation class that is checked for.
public static org.objectweb.asm.tree.AnnotationNode getVisibleAnnotation(org.objectweb.asm.tree.MemberNode memberNode,
java.lang.Class annotationClass)
public static java.lang.Object getAnnotationValue(org.objectweb.asm.tree.AnnotationNode annotationNode,
java.lang.String valueName)
public static java.lang.String internalToDesc(java.lang.String internalForm)
public static java.lang.reflect.Field getField(java.lang.Class clazz,
java.lang.String fieldName)
public static boolean isAbstract(org.objectweb.asm.tree.MethodNode methodNode)
public static boolean isInterface(org.objectweb.asm.tree.ClassNode classNode)
public static boolean isNative(org.objectweb.asm.tree.MethodNode methodNode)
public static boolean isFinal(org.objectweb.asm.tree.FieldNode fieldNode)
public static boolean isStatic(org.objectweb.asm.tree.FieldNode fieldNode)
public static boolean isStatic(org.objectweb.asm.tree.MethodNode methodNode)
public static boolean isPrivate(org.objectweb.asm.tree.MethodNode methodNode)
public static boolean isPrivate(int access)
public static boolean isPublic(int access)
public static boolean isProtected(int access)
public static boolean isFinal(int access)
public static boolean isSynthetic(int access)
public static boolean isNative(int access)
public static boolean isStatic(int access)
public static boolean isAbstract(int access)
public static org.objectweb.asm.tree.ClassNode loadAsClassNode(byte[] bytecode)
public static byte[] toBytecode(org.objectweb.asm.tree.ClassNode classNode)
public static java.lang.String getTmpDir()
public static void writeToFile(java.io.File file,
byte[] bytecode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||