Top Description Inners Constructors Methods
com.google.inject.internal

public final Class KotlinSupport

extends Object
Class Inheritance
Imports
java.lang.annotation.Annotation, java.lang.reflect.Constructor, .Field, .Method, java.util.function.Predicate

Class to conditionally load support for Kotlin features. These features are enabled based on whether com.google.inject.KotlinSupportImpl is in the class path.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static KotlinSupportInterface
private static KotlinSupportInterface
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

KotlinSupportback to summary
private KotlinSupport()

Method Detail

getInstanceback to summary
public static KotlinSupportInterface getInstance()
loadKotlinSupportback to summary
private static KotlinSupportInterface loadKotlinSupport()
com.google.inject.internal back to summary

private Class KotlinSupport.KotlinSupportHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final KotlinSupportInterface

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final KotlinSupportInterface INSTANCE

Constructor Detail

KotlinSupportHolderback to summary
private KotlinSupportHolder()
com.google.inject.internal back to summary

private Class KotlinSupport.KotlinUnsupported

extends Object
implements KotlinSupportInterface
Class Inheritance
All Implemented Interfaces
com.google.inject.internal.KotlinSupportInterface

Field Summary

Modifier and TypeField and Description
pack-priv static final Predicate<Integer>
pack-priv static final Annotation[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Implements com.google.inject.internal.KotlinSupportInterface.checkConstructorParameterAnnotations.

Checks for any errors on the constructor's parameters's annotations.
public Annotation[]
getAnnotations(Field field)

Implements com.google.inject.internal.KotlinSupportInterface.getAnnotations.

Returns an array of Annotations on the field's Kotlin property (if applicable).
public Predicate<Integer>
getIsParameterKotlinNullablePredicate(Constructor<?> constructor)

Implements com.google.inject.internal.KotlinSupportInterface.getIsParameterKotlinNullablePredicate.

Returns a Predicate that says whether the constructor's i-th parameter is Kotlin-nullable.
public Predicate<Integer>
getIsParameterKotlinNullablePredicate(Method method)

Implements com.google.inject.internal.KotlinSupportInterface.getIsParameterKotlinNullablePredicate.

Returns a Predicate that says whether the method's i-th parameter is Kotlin-nullable.
public boolean
isLocalClass(Class<?> clazz)

Implements com.google.inject.internal.KotlinSupportInterface.isLocalClass.

Returns whether the clazz is a local Kotlin class.
public boolean
isNullable(Field field)

Implements com.google.inject.internal.KotlinSupportInterface.isNullable.

Returns true if the field is declared as kotlin nullable type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FALSE_PREDICATEback to summary
pack-priv static final Predicate<Integer> FALSE_PREDICATE
NO_ANNOTATIONSback to summary
pack-priv static final Annotation[] NO_ANNOTATIONS

Constructor Detail

KotlinUnsupportedback to summary
private KotlinUnsupported()

Method Detail

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

Implements com.google.inject.internal.KotlinSupportInterface.checkConstructorParameterAnnotations.

Doc from com.google.inject.internal.KotlinSupportInterface.checkConstructorParameterAnnotations.

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

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

Implements com.google.inject.internal.KotlinSupportInterface.getAnnotations.

Doc from com.google.inject.internal.KotlinSupportInterface.getAnnotations.

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

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

Implements com.google.inject.internal.KotlinSupportInterface.getIsParameterKotlinNullablePredicate.

Doc from com.google.inject.internal.KotlinSupportInterface.getIsParameterKotlinNullablePredicate.

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

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

Implements com.google.inject.internal.KotlinSupportInterface.getIsParameterKotlinNullablePredicate.

Doc from com.google.inject.internal.KotlinSupportInterface.getIsParameterKotlinNullablePredicate.

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

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

Implements com.google.inject.internal.KotlinSupportInterface.isLocalClass.

Doc from com.google.inject.internal.KotlinSupportInterface.isLocalClass.

Returns whether the clazz is a local Kotlin class.

Annotations
@Override
isNullableback to summary
public boolean isNullable(Field field)

Implements com.google.inject.internal.KotlinSupportInterface.isNullable.

Doc from com.google.inject.internal.KotlinSupportInterface.isNullable.

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

Annotations
@Override