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
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(): TUtility 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 : ReferenceDefinitionA reference to a field generated by DeveloperReference. | 
| MethodReference | interface MethodReference : ReferenceDefinitionA reference to a method generated by DeveloperReference. | 
| TypeReference | interface TypeReference : ReferenceDefinitionA reference to a type generated by DeveloperReference. |