Skip to content

Package io.github.qishr.cascara.common.util

Class ReflectionUtils

java.lang.Object
        io.github.qishr.cascara.common.util.ReflectionUtils


public class ReflectionUtils

Constructor Summary

Constructor Description
ReflectionUtils()

Method Summary

Modifier and Type Method Description
public static boolean isInstance(Object thisInstance, Type thatType)
public static boolean canAssign(Type fromThis, Class<?> toThat)
public static C getRawClass(Type jvmType)
public static String getTypeName(Type jvmType)
public static String getTestName()
public static Method getTestMethod()
public static io.github.qishr.cascara.common.util.Pair<java.lang.Class<?> getCaller()
public static io.github.qishr.cascara.common.util.Pair<java.lang.Class<?> getCaller(boolean ignoreQueryingClass)
public static io.github.qishr.cascara.common.util.Pair<java.lang.Class<?> getCaller(boolean ignoreQueryingClass, boolean ignoreQueryingModule)

Method Details

isInstance

public static boolean isInstance(Object thisInstance, Type thatType)


canAssign

public static boolean canAssign(Type fromThis, Class<?> toThat)


getRawClass

public static C getRawClass(Type jvmType)


getTypeName

public static String getTypeName(Type jvmType)


getTestName

@io.github.qishr.cascara.common.annotation.Nullable
public static String getTestName()


getTestMethod

@io.github.qishr.cascara.common.annotation.Nullable
public static Method getTestMethod()


getCaller

@io.github.qishr.cascara.common.annotation.Nullable
public static io.github.qishr.cascara.common.util.Pair<java.lang.Class<?> getCaller()


getCaller

@io.github.qishr.cascara.common.annotation.Nullable
public static io.github.qishr.cascara.common.util.Pair<java.lang.Class<?> getCaller(boolean ignoreQueryingClass)


getCaller

@io.github.qishr.cascara.common.annotation.Nullable
public static io.github.qishr.cascara.common.util.Pair<java.lang.Class<?> getCaller(boolean ignoreQueryingClass, boolean ignoreQueryingModule)