Package com.google.inject.internal
Class KotlinSupport.KotlinUnsupported
- java.lang.Object
-
- com.google.inject.internal.KotlinSupport.KotlinUnsupported
-
- All Implemented Interfaces:
KotlinSupportInterface
- Enclosing class:
- KotlinSupport
private static class KotlinSupport.KotlinUnsupported extends java.lang.Object implements KotlinSupportInterface
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.function.Predicate<java.lang.Integer>FALSE_PREDICATE(package private) static java.lang.annotation.Annotation[]NO_ANNOTATIONS
-
Constructor Summary
Constructors Modifier Constructor Description privateKotlinUnsupported()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.annotation.Annotation[] getAnnotations(java.lang.reflect.Field field)
Description copied from interface:KotlinSupportInterfaceReturns an array ofAnnotations on the field's Kotlin property (if applicable).- Specified by:
getAnnotationsin interfaceKotlinSupportInterface
-
isNullable
public boolean isNullable(java.lang.reflect.Field field)
Description copied from interface:KotlinSupportInterfaceReturns true if the field is declared as kotlin nullable type.- Specified by:
isNullablein interfaceKotlinSupportInterface
-
getIsParameterKotlinNullablePredicate
public java.util.function.Predicate<java.lang.Integer> getIsParameterKotlinNullablePredicate(java.lang.reflect.Constructor<?> constructor)
Description copied from interface:KotlinSupportInterfaceReturns aPredicatethat says whether the constructor's i-th parameter is Kotlin-nullable.- Specified by:
getIsParameterKotlinNullablePredicatein interfaceKotlinSupportInterface
-
getIsParameterKotlinNullablePredicate
public java.util.function.Predicate<java.lang.Integer> getIsParameterKotlinNullablePredicate(java.lang.reflect.Method method)
Description copied from interface:KotlinSupportInterfaceReturns aPredicatethat says whether the method's i-th parameter is Kotlin-nullable.- Specified by:
getIsParameterKotlinNullablePredicatein interfaceKotlinSupportInterface
-
checkConstructorParameterAnnotations
public void checkConstructorParameterAnnotations(java.lang.reflect.Constructor<?> constructor, Errors errors)Description copied from interface:KotlinSupportInterfaceChecks for any errors on the constructor's parameters's annotations.- Specified by:
checkConstructorParameterAnnotationsin interfaceKotlinSupportInterface
-
isLocalClass
public boolean isLocalClass(java.lang.Class<?> clazz)
Description copied from interface:KotlinSupportInterfaceReturns whether theclazzis a local Kotlin class.- Specified by:
isLocalClassin interfaceKotlinSupportInterface
-
-