Klasse AsmUtil

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

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

    • AsmUtil

      public AsmUtil()
  • Methodendetails

    • normalizeDescriptor

      public static String normalizeDescriptor(String input)
      Parameter:
      input - A class path
      Gibt zurück:
      The class path converted to descriptor format (Replaced all '.' with '/')
    • normalizeClassName

      public static String normalizeClassName(String input)
      Parameter:
      input - A class path
      Gibt zurück:
      The class path converted to class name format (Replaced all '/' with '.')
    • getClassStruct

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

      public static sun.misc.Unsafe getTheUnsafe()
      Gibt zurück:
      the Unsafe instance