Class BytecodeUtils
- java.lang.Object
-
- com.ensoftcorp.open.java.commons.bytecode.BytecodeUtils
-
public class BytecodeUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BytecodeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.objectweb.asm.tree.ClassNode
getClassNode(byte[] bytes)
Reads a bytecode class file into a ClassNode objectstatic org.objectweb.asm.tree.ClassNode
getClassNode(java.io.File classFile)
Reads a bytecode class file into a ClassNode objectstatic com.ensoftcorp.atlas.core.db.graph.Node
getTypeNode(com.ensoftcorp.atlas.core.db.graph.Node library, java.lang.String jvmDescriptor)
static com.ensoftcorp.atlas.core.db.graph.Node
getTypeNode(java.lang.String jvmDescriptor)
static java.lang.String
normalizeDescriptor(java.lang.String jvmDescriptor)
-
-
-
Method Detail
-
getClassNode
public static org.objectweb.asm.tree.ClassNode getClassNode(java.io.File classFile) throws java.io.IOException
Reads a bytecode class file into a ClassNode object- Parameters:
classFile
-- Returns:
- Throws:
java.io.IOException
-
getClassNode
public static org.objectweb.asm.tree.ClassNode getClassNode(byte[] bytes)
Reads a bytecode class file into a ClassNode object- Parameters:
classFile
-- Returns:
- Throws:
java.io.IOException
-
getTypeNode
public static com.ensoftcorp.atlas.core.db.graph.Node getTypeNode(java.lang.String jvmDescriptor)
-
getTypeNode
public static com.ensoftcorp.atlas.core.db.graph.Node getTypeNode(com.ensoftcorp.atlas.core.db.graph.Node library, java.lang.String jvmDescriptor)
-
normalizeDescriptor
public static java.lang.String normalizeDescriptor(java.lang.String jvmDescriptor)
-
-