Class Utils

java.lang.Object
codechicken.mixin.util.Utils

public class Utils extends Object
Created by covers1624 on 2/11/20.
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • asmName

      public static String asmName(Class<?> clazz)
    • asmName

      public static String asmName(String name)
    • toIterable

      public static <E> Iterable<E> toIterable(Enumeration<E> enumeration)
      Represents this Enumeration as an Iterable.
      Type Parameters:
      E - The Type.
      Parameters:
      enumeration - The Enumeration.
      Returns:
      The Iterable.
    • findConstructor

      @Nullable public static <T> @Nullable Constructor<T> findConstructor(Class<T> clazz, Class<?>... parameters)
    • newInstance

      public static <T> T newInstance(Constructor<T> ctor, Object... args)
    • deleteFolder

      public static void deleteFolder(Path folder) throws IOException
      Throws:
      IOException
    • staticDesc

      public static String staticDesc(String owner, String desc)
    • timeString

      public static String timeString(long start, long end)
    • allParents

      public static net.covers1624.quack.collection.FastStream<ClassInfo> allParents(ClassInfo info)
    • finishBridgeCall

      public static void finishBridgeCall(org.objectweb.asm.MethodVisitor mv, String mvDesc, int opcode, String owner, String name, String desc, boolean isInterface)
    • writeBridge

      @Deprecated public static void writeBridge(org.objectweb.asm.MethodVisitor mv, String mvDesc, int opcode, String owner, String name, String desc)
      Deprecated.
    • writeBridge

      public static void writeBridge(org.objectweb.asm.MethodVisitor mv, String mvDesc, int opcode, String owner, String name, String desc, boolean isInterface)
    • writeStaticBridge

      public static void writeStaticBridge(org.objectweb.asm.tree.MethodNode mv, String mName, MixinInfo info)