gh-pages / com.nextfaze.devfun.reference / ReferenceDefinition

ReferenceDefinition

interface ReferenceDefinition (source)

Defines references to annotations that are annotated DeveloperReference.

Annotation use-sites will be noted by DevFun and wrapped by this interface. An example of this is used by the devfun-inject-dagger2 module.

This is an experimental feature and subject to change. External input/suggestions welcome.

See Also

DeveloperReference

Dagger2Component

DeveloperLogger

Properties

Name Summary
annotation abstract val annotation: KClass<out Annotation>
The annotation that wanted the reference.

Extension Functions

Name Summary
getProperties fun <T : Any> ReferenceDefinition.getProperties(): T
Utility function to get the properties of a ReferenceDefinition of type T. Will throw if types are invalid.
withProperties fun <T : Any> ReferenceDefinition.withProperties(): T?
Utility function to potentially get the properties of a ReferenceDefinition of type T.

Inheritors

Name Summary
FieldReference interface FieldReference : ReferenceDefinition
A reference to a field generated by DeveloperReference.
MethodReference interface MethodReference : ReferenceDefinition
A reference to a method generated by DeveloperReference.
TypeReference interface TypeReference : ReferenceDefinition
A reference to a type generated by DeveloperReference.