Package codechicken.mixin.util
Class Utils
java.lang.Object
codechicken.mixin.util.Utils
Created by covers1624 on 2/11/20.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.covers1624.quack.collection.FastStream<ClassInfo>allParents(ClassInfo info) static Stringstatic Stringstatic voiddeleteFolder(Path folder) static <T> @Nullable Constructor<T>findConstructor(Class<T> clazz, Class<?>... parameters) static voidfinishBridgeCall(org.objectweb.asm.MethodVisitor mv, String mvDesc, int opcode, String owner, String name, String desc, boolean isInterface) static <T> TnewInstance(Constructor<T> ctor, Object... args) static StringstaticDesc(String owner, String desc) static StringtimeString(long start, long end) static <E> Iterable<E>toIterable(Enumeration<E> enumeration) Represents this Enumeration as an Iterable.static voidwriteBridge(org.objectweb.asm.MethodVisitor mv, String mvDesc, int opcode, String owner, String name, String desc) Deprecated.static voidwriteBridge(org.objectweb.asm.MethodVisitor mv, String mvDesc, int opcode, String owner, String name, String desc, boolean isInterface) static voidwriteStaticBridge(org.objectweb.asm.tree.MethodNode mv, String mName, MixinInfo info)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
asmName
-
asmName
-
toIterable
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
-
deleteFolder
- Throws:
IOException
-
staticDesc
-
timeString
-
allParents
-
finishBridgeCall
-
writeBridge
@Deprecated public static void writeBridge(org.objectweb.asm.MethodVisitor mv, String mvDesc, int opcode, String owner, String name, String desc) Deprecated. -
writeBridge
-
writeStaticBridge
-