Interface KotlinSupportInterface

All Known Implementing Classes:
KotlinSupport.KotlinUnsupported

public interface KotlinSupportInterface
Interface for accessing information about Kotlin code.
  • Method Details

    • getAnnotations

      Annotation[] getAnnotations(Field field)
      Returns an array of Annotations on the field's Kotlin property (if applicable).
    • isNullable

      boolean isNullable(Field field)
      Returns true if the field is declared as kotlin nullable type.
    • getIsParameterKotlinNullablePredicate

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

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

      void checkConstructorParameterAnnotations(Constructor<?> constructor, Errors errors)
      Checks for any errors on the constructor's parameters's annotations.
    • isLocalClass

      boolean isLocalClass(Class<?> clazz)
      Returns whether the clazz is a local Kotlin class.