epoxy-processor / com.airbnb.epoxy / javax.lang.model.element.Element

Extensions for javax.lang.model.element.Element

annotation

fun <T : Annotation> Element.annotation(): T?

iterateClassHierarchy

tailrec fun Element.iterateClassHierarchy(types: Types, classCallback: (classElement: TypeElement) -> Unit): Unit

Return each of the classes in the class hierarchy, starting with the initial receiver and working upwards until Any.

iterateSuperClasses

fun Element.iterateSuperClasses(types: Types, classCallback: (classElement: TypeElement) -> Unit): Unit

Iterate each super class of the receiver, starting with the initial super class and going until Any.