Class AsmUtil


  • public class AsmUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ASM_API_LEVEL  
    • Constructor Summary

      Constructors 
      Constructor Description
      AsmUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull org.objectweb.asm.tree.ClassNode readClassFromFile​(@NotNull java.lang.String className, @NotNull java.nio.file.Path classFile)  
      static @NotNull org.objectweb.asm.tree.ClassNode readClassFromFile​(@NotNull java.lang.String className, @NotNull java.nio.file.Path classFile, boolean fully)  
      static @NotNull java.lang.String readClassName​(@NotNull java.nio.file.Path classFile)  
      static @NotNull org.objectweb.asm.tree.ClassNode readClassNode​(@NotNull java.lang.String className, @NotNull java.io.InputStream inputStream)  
      static @NotNull org.objectweb.asm.tree.ClassNode readClassNode​(@NotNull java.lang.String className, @NotNull java.io.InputStream inputStream, boolean fully)  
      • Methods inherited from class java.lang.Object

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

      • AsmUtil

        public AsmUtil()
    • Method Detail

      • readClassNode

        @NotNull
        public static @NotNull org.objectweb.asm.tree.ClassNode readClassNode​(@NotNull
                                                                              @NotNull java.lang.String className,
                                                                              @NotNull
                                                                              @NotNull java.io.InputStream inputStream,
                                                                              boolean fully)
                                                                       throws com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException,
                                                                              java.io.IOException
        Throws:
        com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException
        java.io.IOException
      • readClassNode

        @NotNull
        public static @NotNull org.objectweb.asm.tree.ClassNode readClassNode​(@NotNull
                                                                              @NotNull java.lang.String className,
                                                                              @NotNull
                                                                              @NotNull java.io.InputStream inputStream)
                                                                       throws com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException,
                                                                              java.io.IOException
        Throws:
        com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException
        java.io.IOException
      • readClassName

        @NotNull
        public static @NotNull java.lang.String readClassName​(@NotNull
                                                              @NotNull java.nio.file.Path classFile)
                                                       throws com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException,
                                                              java.io.IOException
        Throws:
        com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException
        java.io.IOException
      • readClassFromFile

        @NotNull
        public static @NotNull org.objectweb.asm.tree.ClassNode readClassFromFile​(@NotNull
                                                                                  @NotNull java.lang.String className,
                                                                                  @NotNull
                                                                                  @NotNull java.nio.file.Path classFile,
                                                                                  boolean fully)
                                                                           throws java.io.IOException,
                                                                                  com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException
        Throws:
        java.io.IOException
        com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException
      • readClassFromFile

        @NotNull
        public static @NotNull org.objectweb.asm.tree.ClassNode readClassFromFile​(@NotNull
                                                                                  @NotNull java.lang.String className,
                                                                                  @NotNull
                                                                                  @NotNull java.nio.file.Path classFile)
                                                                           throws java.io.IOException,
                                                                                  com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException
        Throws:
        java.io.IOException
        com.jetbrains.plugin.structure.classes.resolvers.InvalidClassFileException