Class GenUtil

java.lang.Object
dev.quantumfusion.hyphen.util.GenUtil

public final class GenUtil extends Object
  • Constructor Details

    • GenUtil

      public GenUtil()
  • Method Details

    • of

      public static org.objectweb.asm.Type[] of(Class<?>[] classes)
    • of

      public static org.objectweb.asm.Type of(Class<?> aClass)
    • internal

      public static String internal(Class<?> aClass)
    • desc

      public static String desc(Class<?> aClass)
    • shouldCastGeneric

      public static void shouldCastGeneric(MethodHandler mh, Clazz clazz)
    • shouldCastGeneric

      public static void shouldCastGeneric(MethodHandler mh, Class<?> actual, Class<?> bytecodeClass)
    • methodDesc

      public static String methodDesc(Class<?> returnClass, Class<?>... parameters)
    • methodTypeDesc

      public static org.objectweb.asm.Type methodTypeDesc(Class<?> returnClass, Class<?>... parameters)
    • hyphenShortMethodName

      public static String hyphenShortMethodName(int methodId)
    • upperCase

      public static String upperCase(String str)
    • makeSafe

      public static String makeSafe(String str)
    • createHandle

      public static org.objectweb.asm.Handle createHandle(int op, Class<?> owner, String name, boolean isInterface, Class<?> returnClass, Class<?>... parameters)
    • createHandle

      public static org.objectweb.asm.Handle createHandle(int op, String owner, String name, boolean isInterface, Class<?> returnClass, Class<?>... parameters)
    • 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)