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 private
KotlinUnsupported()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkConstructorParameterAnnotations(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 ofAnnotation
s on the field's Kotlin property (if applicable).java.util.function.Predicate<java.lang.Integer>
getIsParameterKotlinNullablePredicate(java.lang.reflect.Constructor<?> constructor)
Returns aPredicate
that 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 aPredicate
that says whether the method's i-th parameter is Kotlin-nullable.boolean
isLocalClass(java.lang.Class<?> clazz)
Returns whether theclazz
is a local Kotlin class.boolean
isNullable(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:KotlinSupportInterface
Returns an array ofAnnotation
s on the field's Kotlin property (if applicable).- Specified by:
getAnnotations
in interfaceKotlinSupportInterface
-
isNullable
public boolean isNullable(java.lang.reflect.Field field)
Description copied from interface:KotlinSupportInterface
Returns true if the field is declared as kotlin nullable type.- Specified by:
isNullable
in interfaceKotlinSupportInterface
-
getIsParameterKotlinNullablePredicate
public java.util.function.Predicate<java.lang.Integer> getIsParameterKotlinNullablePredicate(java.lang.reflect.Constructor<?> constructor)
Description copied from interface:KotlinSupportInterface
Returns aPredicate
that says whether the constructor's i-th parameter is Kotlin-nullable.- Specified by:
getIsParameterKotlinNullablePredicate
in interfaceKotlinSupportInterface
-
getIsParameterKotlinNullablePredicate
public java.util.function.Predicate<java.lang.Integer> getIsParameterKotlinNullablePredicate(java.lang.reflect.Method method)
Description copied from interface:KotlinSupportInterface
Returns aPredicate
that says whether the method's i-th parameter is Kotlin-nullable.- Specified by:
getIsParameterKotlinNullablePredicate
in interfaceKotlinSupportInterface
-
checkConstructorParameterAnnotations
public void checkConstructorParameterAnnotations(java.lang.reflect.Constructor<?> constructor, Errors errors)
Description copied from interface:KotlinSupportInterface
Checks for any errors on the constructor's parameters's annotations.- Specified by:
checkConstructorParameterAnnotations
in interfaceKotlinSupportInterface
-
isLocalClass
public boolean isLocalClass(java.lang.Class<?> clazz)
Description copied from interface:KotlinSupportInterface
Returns whether theclazz
is a local Kotlin class.- Specified by:
isLocalClass
in interfaceKotlinSupportInterface
-
-