-
public final class Reflection
Allow other modules to use the reflection utils without pollute Any.* for lib users
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Reflection.Companion
-
Field Summary
Fields Modifier and Type Field Description private final String
kotlinFieldName
private final String
javaFieldName
private final Class<?>
parentClass
private final String
implementingClassName
private final Boolean
isClass
private final Boolean
isKotlinAnonymousLambda
private final Boolean
isKotlinMethodReference
private final Boolean
isKotlinField
private final Boolean
isJavaAnonymousClass
private final Boolean
isJavaAnonymousLambda
private final Boolean
isJavaMemberClass
private final Boolean
hasMethodName
private final Boolean
isJavaNonStaticMethodReference
private final Boolean
isJavaField
private final Field
lambdaField
private final Array<Method>
methodsNotDeclaredByObject
private final Object
obj
-
Constructor Summary
Constructors Constructor Description Reflection(Object obj)
-
Method Summary
Modifier and Type Method Description final String
getKotlinFieldName()
final String
getJavaFieldName()
final Class<?>
getParentClass()
final String
getImplementingClassName()
final Boolean
getIsClass()
final Boolean
getIsKotlinAnonymousLambda()
final Boolean
getIsKotlinMethodReference()
final Boolean
getIsKotlinField()
final Boolean
getIsJavaAnonymousClass()
final Boolean
getIsJavaAnonymousLambda()
final Boolean
getIsJavaMemberClass()
final Boolean
getHasMethodName()
final Boolean
getIsJavaNonStaticMethodReference()
final Boolean
getIsJavaField()
final Field
getLambdaField()
final Array<Method>
getMethodsNotDeclaredByObject()
final Object
getObj()
final Object
runMethod(String name)
final Object
getFieldValue(String fieldName)
final Method
getMethodByName(String methodName)
final Field
getDeclaredFieldByName(String methodName)
-
-
Constructor Detail
-
Reflection
Reflection(Object obj)
-
-
Method Detail
-
getKotlinFieldName
final String getKotlinFieldName()
-
getJavaFieldName
final String getJavaFieldName()
-
getParentClass
final Class<?> getParentClass()
-
getImplementingClassName
final String getImplementingClassName()
-
getIsClass
final Boolean getIsClass()
-
getIsKotlinAnonymousLambda
final Boolean getIsKotlinAnonymousLambda()
-
getIsKotlinMethodReference
final Boolean getIsKotlinMethodReference()
-
getIsKotlinField
final Boolean getIsKotlinField()
-
getIsJavaAnonymousClass
final Boolean getIsJavaAnonymousClass()
-
getIsJavaAnonymousLambda
final Boolean getIsJavaAnonymousLambda()
-
getIsJavaMemberClass
final Boolean getIsJavaMemberClass()
-
getHasMethodName
final Boolean getHasMethodName()
-
getIsJavaNonStaticMethodReference
final Boolean getIsJavaNonStaticMethodReference()
-
getIsJavaField
final Boolean getIsJavaField()
-
getLambdaField
final Field getLambdaField()
-
getMethodsNotDeclaredByObject
final Array<Method> getMethodsNotDeclaredByObject()
-
getFieldValue
final Object getFieldValue(String fieldName)
-
getMethodByName
final Method getMethodByName(String methodName)
-
getDeclaredFieldByName
final Field getDeclaredFieldByName(String methodName)
-
-
-
-