Package dev.quantumfusion.hyphen.util
Class GenUtil
java.lang.Object
dev.quantumfusion.hyphen.util.GenUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.objectweb.asm.HandlecreateHandle(int op, Class<?> owner, String name, boolean isInterface, Class<?> returnClass, Class<?>... parameters)static org.objectweb.asm.HandlecreateHandle(int op, String owner, String name, boolean isInterface, Class<?> returnClass, Class<?>... parameters)static voidcreateMethodRef(org.objectweb.asm.MethodVisitor mv, Class<?> targetInterface, String targetMethod, Class<?> targetMethodReturnClass, Class<?>[] targetMethodParameters, String sourceClass, String sourceMethod, Class<?> sourceMethodReturnClass, Class<?>[] capturedParameters, Class<?>[] uncapturedParameters)static Stringstatic StringhyphenShortMethodName(int methodId)static Stringstatic Stringstatic StringmethodDesc(Class<?> returnClass, Class<?>... parameters)static org.objectweb.asm.TypemethodTypeDesc(Class<?> returnClass, Class<?>... parameters)static org.objectweb.asm.Typestatic org.objectweb.asm.Type[]static voidshouldCastGeneric(MethodHandler mh, Clazz clazz)static voidshouldCastGeneric(MethodHandler mh, Class<?> actual, Class<?> bytecodeClass)static String
-
Constructor Details
-
GenUtil
public GenUtil()
-
-
Method Details
-
of
-
of
-
internal
-
desc
-
shouldCastGeneric
-
shouldCastGeneric
-
methodDesc
-
methodTypeDesc
-
hyphenShortMethodName
-
upperCase
-
makeSafe
-
createHandle
-
createHandle
-
createMethodRef
public static void createMethodRef(org.objectweb.asm.MethodVisitor mv, Class<?> targetInterface, String targetMethod, Class<?> targetMethodReturnClass, Class<?>[] targetMethodParameters, String sourceClass, String sourceMethod, Class<?> sourceMethodReturnClass, Class<?>[] capturedParameters, Class<?>[] uncapturedParameters)
-