Top Description Methods
com.google.inject.internal

public Interface KotlinSupportInterface

Known Direct Implementers
com.google.inject.internal.KotlinSupport.KotlinUnsupported
Imports
java.lang.annotation.Annotation, java.lang.reflect.Constructor, .Field, .Method, java.util.function.Predicate

Interface for accessing information about Kotlin code.

Method Summary

Modifier and TypeMethod and Description
public void
checkConstructorParameterAnnotations(Constructor<?> constructor, Errors errors)

Checks for any errors on the constructor's parameters's annotations.

public Annotation[]
getAnnotations(Field field)

Returns an array of Annotations on the field's Kotlin property (if applicable).

public Predicate<Integer>
getIsParameterKotlinNullablePredicate(Constructor<?> constructor)

Returns a Predicate that says whether the constructor's i-th parameter is Kotlin-nullable.

public Predicate<Integer>
getIsParameterKotlinNullablePredicate(Method method)

Returns a Predicate that says whether the method's i-th parameter is Kotlin-nullable.

public boolean
isLocalClass(Class<?> clazz)

Returns whether the clazz is a local Kotlin class.

public boolean
isNullable(Field field)

Returns true if the field is declared as kotlin nullable type.

Method Detail

checkConstructorParameterAnnotationsback to summary
public void checkConstructorParameterAnnotations(Constructor<?> constructor, Errors errors)

Checks for any errors on the constructor's parameters's annotations.

getAnnotationsback to summary
public Annotation[] getAnnotations(Field field)

Returns an array of Annotations on the field's Kotlin property (if applicable).

getIsParameterKotlinNullablePredicateback to summary
public Predicate<Integer> getIsParameterKotlinNullablePredicate(Constructor<?> constructor)

Returns a Predicate that says whether the constructor's i-th parameter is Kotlin-nullable.

getIsParameterKotlinNullablePredicateback to summary
public Predicate<Integer> getIsParameterKotlinNullablePredicate(Method method)

Returns a Predicate that says whether the method's i-th parameter is Kotlin-nullable.

isLocalClassback to summary
public boolean isLocalClass(Class<?> clazz)

Returns whether the clazz is a local Kotlin class.

isNullableback to summary
public boolean isNullable(Field field)

Returns true if the field is declared as kotlin nullable type.