Package tangle.inject.compiler
Types
Link copied to clipboard
Link copied to clipboard
data class ConstructorInjectParameter(name: String, typeName: TypeName, providerTypeName: ParameterizedTypeName, lazyTypeName: ParameterizedTypeName, isWrappedInProvider: Boolean, isWrappedInLazy: Boolean, tangleParamName: String?, qualifiers: List<AnnotationSpec>, isDaggerAssisted: Boolean) : Parameter
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class MemberInjectParameter(name: String, typeName: TypeName, providerTypeName: ParameterizedTypeName, lazyTypeName: ParameterizedTypeName, isWrappedInProvider: Boolean, isWrappedInLazy: Boolean, tangleParamName: String?, qualifiers: List<AnnotationSpec>, memberInjectorClass: ClassName) : Parameter
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Wraps all code generation in delegateToAnvilUnsafe, which catches Anvil exceptions and rethrows them as TangleCompilationException.
Link copied to clipboard
class TangleCompilationException(message: String, cause: Throwable?, element: PsiElement?) : CompilationException
Content copied to clipboard
Functions
Link copied to clipboard
fun TypeSpec.Builder.addContributesTo(scopeClassName: ClassName): TypeSpec.Builder
Content copied to clipboard
Link copied to clipboard
fun TypeSpec.Builder.addFunction(name: String, block: FunSpec.Builder.() -> Unit): TypeSpec.Builder
Content copied to clipboard
Link copied to clipboard
fun AnnotationSpec(name: ClassName, block: AnnotationSpec.Builder.() -> Unit): AnnotationSpec
Content copied to clipboard
fun AnnotationSpec(annotationClass: KClass<out Annotation>, block: AnnotationSpec.Builder.() -> Unit): AnnotationSpec
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun CallableMemberDescriptor.hasAnnotation(annotationFqName: FqName): Boolean
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun List<ParameterReference>.mapToParameters(module: ModuleDescriptor): List<ConstructorInjectParameter>
Content copied to clipboard
Link copied to clipboard
fun ClassReference.memberInjectedParameters(): List<MemberInjectParameter>
Content copied to clipboard
Returns all member-injected parameters for the receiver class and any superclasses.
Link copied to clipboard
Link copied to clipboard
fun List<AnnotationReference>.qualifierAnnotationSpecs(module: ModuleDescriptor): List<AnnotationSpec>
Content copied to clipboard
fun List<AnnotationDescriptor>.qualifierAnnotationSpecs(module: ModuleDescriptor): List<AnnotationSpec>
Content copied to clipboard
Link copied to clipboard
inline fun require(value: Boolean, classReference: ClassReference, cause: Throwable? = null, lazyMessage: () -> String)
Content copied to clipboard
inline fun require(value: Boolean, psi: () -> PsiElement, cause: Throwable? = null, lazyMessage: () -> String)
Content copied to clipboard
inline fun require(value: Boolean, declarationDescriptor: () -> DeclarationDescriptor, cause: Throwable? = null, lazyMessage: () -> String)
Content copied to clipboard
inline fun require(value: Boolean, element: PsiElement? = null, cause: Throwable? = null, lazyMessage: () -> String)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun PropertyReference.toMemberInjectParameter(uniqueName: String): MemberInjectParameter
Content copied to clipboard
Link copied to clipboard
fun List<ConstructorInjectParameter>.uniqueName(base: String, attempt: Int = 0): String
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard