Companion

object Companion

Functions

Link copied to clipboard
fun <T : Enum<T>> enumField(enumInstance: T): CheckedField

Create a CheckedField for accessing an enum instance that has been annotated with ReferencedInGeneratedCode, failing if there is a problem.

Link copied to clipboard
fun instanceField(    receiverClass: Class<*>,     fieldName: String,     fieldClass: Class<*>): CheckedField

Create a CheckedField for accessing an instance field that has been annotated with ReferencedInGeneratedCode, failing if there is a problem.

Link copied to clipboard
fun javaLibraryInstanceField(    receiverClass: Class<*>,     fieldName: String,     fieldClass: Class<*>): CheckedField

Create a CheckedField for accessing an instance field that has not been annotated with ReferencedInGeneratedCode, failing if there is a problem.

Link copied to clipboard
fun javaLibraryStaticField(    receiverClass: Class<*>,     fieldName: String,     fieldClass: Class<*>): CheckedField

Create a CheckedField for accessing a static field that has not been annotated with ReferencedInGeneratedCode, failing if there is a problem.

Link copied to clipboard
fun staticField(    receiverClass: Class<*>,     fieldName: String,     fieldClass: Class<*>): CheckedField

Create a CheckedField for accessing a static field that has been annotated with ReferencedInGeneratedCode, failing if there is a problem.