Class 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 object
      static org.objectweb.asm.tree.ClassNode getClassNode​(java.io.File classFile)
      Reads a bytecode class file into a ClassNode object
      static 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)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BytecodeUtils

        public BytecodeUtils()
    • 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)