Package com.google.inject.internal
Interface KotlinSupportInterface
-
public interface KotlinSupportInterfaceInterface for accessing information about Kotlin code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckConstructorParameterAnnotations(java.lang.reflect.Constructor<?> constructor, Errors errors)Checks for any errors on the constructor's parameters's annotations.java.lang.annotation.Annotation[]getAnnotations(java.lang.reflect.Field field)Returns an array ofAnnotations on the field's Kotlin property (if applicable).java.util.function.Predicate<java.lang.Integer>getIsParameterKotlinNullablePredicate(java.lang.reflect.Constructor<?> constructor)Returns aPredicatethat says whether the constructor's i-th parameter is Kotlin-nullable.java.util.function.Predicate<java.lang.Integer>getIsParameterKotlinNullablePredicate(java.lang.reflect.Method method)Returns aPredicatethat says whether the method's i-th parameter is Kotlin-nullable.booleanisLocalClass(java.lang.Class<?> clazz)Returns whether theclazzis a local Kotlin class.booleanisNullable(java.lang.reflect.Field field)Returns true if the field is declared as kotlin nullable type.
-
-
-
Method Detail
-
getAnnotations
java.lang.annotation.Annotation[] getAnnotations(java.lang.reflect.Field field)
Returns an array ofAnnotations on the field's Kotlin property (if applicable).
-
isNullable
boolean isNullable(java.lang.reflect.Field field)
Returns true if the field is declared as kotlin nullable type.
-
getIsParameterKotlinNullablePredicate
java.util.function.Predicate<java.lang.Integer> getIsParameterKotlinNullablePredicate(java.lang.reflect.Constructor<?> constructor)
Returns aPredicatethat says whether the constructor's i-th parameter is Kotlin-nullable.
-
getIsParameterKotlinNullablePredicate
java.util.function.Predicate<java.lang.Integer> getIsParameterKotlinNullablePredicate(java.lang.reflect.Method method)
Returns aPredicatethat says whether the method's i-th parameter is Kotlin-nullable.
-
checkConstructorParameterAnnotations
void checkConstructorParameterAnnotations(java.lang.reflect.Constructor<?> constructor, Errors errors)Checks for any errors on the constructor's parameters's annotations.
-
isLocalClass
boolean isLocalClass(java.lang.Class<?> clazz)
Returns whether theclazzis a local Kotlin class.
-
-