public class BytecodeUtil extends Object
| Constructor and Description |
|---|
BytecodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpByte(org.objectweb.asm.tree.ClassNode cn,
String dumpPath,
byte[] bytes)
Dump byte code to specified class file
|
static org.objectweb.asm.tree.AbstractInsnNode |
getIntInsn(int num)
get ops code of load a int number
|
static ImmutablePair<Integer,Integer> |
getLoadParameterByteCode(Byte type)
get load ops-code of specified type
|
static int |
stackEffect(int bytecode)
Get stack impact of a specified ops code
|
static int |
toPublicAccess(int access)
Make sure method has public access
|
public static int stackEffect(int bytecode)
bytecode - ops code to checkpublic static int toPublicAccess(int access)
access - original access markpublic static void dumpByte(org.objectweb.asm.tree.ClassNode cn,
String dumpPath,
byte[] bytes)
cn - original class nodedumpPath - folder to store class filebytes - original class bytespublic static ImmutablePair<Integer,Integer> getLoadParameterByteCode(Byte type)
type - type symbolpublic static org.objectweb.asm.tree.AbstractInsnNode getIntInsn(int num)
num - number to loadCopyright © 2021. All rights reserved.