Class Util
java.lang.Object
xyz.jpenilla.reflectionremapper.internal.util.Util
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public final class Util
extends Object
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanclassExists(String className) static StringdescriptorString(Class<?> clazz) static Class<?>findProxiedClass(Class<?> proxyInterface, UnaryOperator<String> classMapper) static MethodHandlehandleForDefaultMethod(Class<?> interfaceClass, Method method) static booleanisSynthetic(int modifiers) static booleanstatic <E extends Throwable>
EsneakyThrow(Throwable ex) static <T> TsneakyThrows(Util.ThrowingSupplier<T> supplier) topDownInterfaceHierarchy(Class<?> cls)
-
Method Details
-
mojangMapped
public static boolean mojangMapped() -
classExists
-
sneakyThrow
- Throws:
E extends Throwable
-
sneakyThrows
-
isSynthetic
public static boolean isSynthetic(int modifiers) -
findProxiedClass
-
handleForDefaultMethod
public static MethodHandle handleForDefaultMethod(Class<?> interfaceClass, Method method) throws Throwable - Throws:
Throwable
-
topDownInterfaceHierarchy
-
descriptorString
-