Class AsmUtil

java.lang.Object
de.florianmichael.asmfabricloader.api.AsmUtil

public class AsmUtil extends Object
This class is used to access the Unsafe instance.
  • Constructor Details

    • AsmUtil

      public AsmUtil()
  • Method Details

    • normalizeDescriptor

      public static String normalizeDescriptor(String input)
      Parameters:
      input - A class path
      Returns:
      The class path converted to descriptor format (Replaced all '.' with '/')
    • getClassStruct

      public static List<String> getClassStruct(Class<?> owner)
      Parameters:
      owner - A class
      Returns:
      All superclasses of the given class as a list of strings (formatted by normalizeDescriptor(String)
    • getTheUnsafe

      public static sun.misc.Unsafe getTheUnsafe()
      Returns:
      the Unsafe instance