Class AsmUtil
java.lang.Object
de.florianmichael.asmfabricloader.api.AsmUtil
This class is used to access the
Unsafe instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassStruct(Class<?> owner) static sun.misc.Unsafestatic StringnormalizeDescriptor(String input)
-
Constructor Details
-
AsmUtil
public AsmUtil()
-
-
Method Details
-
normalizeDescriptor
- Parameters:
input- A class path- Returns:
- The class path converted to descriptor format (Replaced all '.' with '/')
-
getClassStruct
- 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
Unsafeinstance
-