Package com.google.inject.internal
Interface KotlinSupportInterface
public interface KotlinSupportInterface
Interface for accessing information about Kotlin code.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkConstructorParameterAnnotations
(Constructor<?> constructor, Errors errors) Checks for any errors on the constructor's parameters's annotations.getAnnotations
(Field field) Returns an array ofAnnotation
s on the field's Kotlin property (if applicable).getIsParameterKotlinNullablePredicate
(Constructor<?> constructor) Returns aPredicate
that says whether the constructor's i-th parameter is Kotlin-nullable.Returns aPredicate
that says whether the method's i-th parameter is Kotlin-nullable.boolean
isLocalClass
(Class<?> clazz) Returns whether theclazz
is a local Kotlin class.boolean
isNullable
(Field field) Returns true if the field is declared as kotlin nullable type.
-
Method Details
-
getAnnotations
Returns an array ofAnnotation
s on the field's Kotlin property (if applicable). -
isNullable
Returns true if the field is declared as kotlin nullable type. -
getIsParameterKotlinNullablePredicate
Returns aPredicate
that says whether the constructor's i-th parameter is Kotlin-nullable. -
getIsParameterKotlinNullablePredicate
Returns aPredicate
that says whether the method's i-th parameter is Kotlin-nullable. -
checkConstructorParameterAnnotations
Checks for any errors on the constructor's parameters's annotations. -
isLocalClass
Returns whether theclazz
is a local Kotlin class.
-