public class BytecodeUtils
extends java.lang.Object
Constructor and Description |
---|
BytecodeUtils() |
Modifier and Type | Method and Description |
---|---|
static org.objectweb.asm.tree.ClassNode |
getClassNode(byte[] bytes)
Reads a bytecode class file into a ClassNode object
|
static org.objectweb.asm.tree.ClassNode |
getClassNode(java.io.File classFile)
Reads a bytecode class file into a ClassNode object
|
static byte[] |
writeClass(org.objectweb.asm.tree.ClassNode classNode)
Writes a class to a byte array
|
public static byte[] writeClass(org.objectweb.asm.tree.ClassNode classNode) throws java.io.IOException
classNode
- classFile
- java.io.IOException
public static org.objectweb.asm.tree.ClassNode getClassNode(java.io.File classFile) throws java.io.IOException
classFile
- java.io.IOException
public static org.objectweb.asm.tree.ClassNode getClassNode(byte[] bytes)
classFile
- java.io.IOException