dagger.internal.codegen.binding.$AutoValue_ComponentDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dagger-compiler Show documentation
Show all versions of dagger-compiler Show documentation
A fast dependency injector for Android and Java.
package dagger.internal.codegen.binding;
import androidx.room.compiler.processing.XMethodElement;
import androidx.room.compiler.processing.XTypeElement;
import com.google.common.collect.ImmutableBiMap;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import dagger.internal.codegen.base.ComponentAnnotation;
import dagger.internal.codegen.model.Scope;
import java.util.Optional;
// Generated by com.google.auto.value.processor.AutoValueProcessor
abstract class $AutoValue_ComponentDescriptor extends ComponentDescriptor {
private final ComponentAnnotation annotation;
private final XTypeElement typeElement;
private final ImmutableSet dependencies;
private final ImmutableSet modules;
private final ImmutableMap dependenciesByDependencyMethod;
private final ImmutableSet scopes;
private final ImmutableSet childComponentsDeclaredByModules;
private final ImmutableBiMap childComponentsDeclaredByFactoryMethods;
private final ImmutableBiMap childComponentsDeclaredByBuilderEntryPoints;
private final ImmutableSet componentMethods;
private final Optional creatorDescriptor;
$AutoValue_ComponentDescriptor(
ComponentAnnotation annotation,
XTypeElement typeElement,
ImmutableSet dependencies,
ImmutableSet modules,
ImmutableMap dependenciesByDependencyMethod,
ImmutableSet scopes,
ImmutableSet childComponentsDeclaredByModules,
ImmutableBiMap childComponentsDeclaredByFactoryMethods,
ImmutableBiMap childComponentsDeclaredByBuilderEntryPoints,
ImmutableSet componentMethods,
Optional creatorDescriptor) {
if (annotation == null) {
throw new NullPointerException("Null annotation");
}
this.annotation = annotation;
if (typeElement == null) {
throw new NullPointerException("Null typeElement");
}
this.typeElement = typeElement;
if (dependencies == null) {
throw new NullPointerException("Null dependencies");
}
this.dependencies = dependencies;
if (modules == null) {
throw new NullPointerException("Null modules");
}
this.modules = modules;
if (dependenciesByDependencyMethod == null) {
throw new NullPointerException("Null dependenciesByDependencyMethod");
}
this.dependenciesByDependencyMethod = dependenciesByDependencyMethod;
if (scopes == null) {
throw new NullPointerException("Null scopes");
}
this.scopes = scopes;
if (childComponentsDeclaredByModules == null) {
throw new NullPointerException("Null childComponentsDeclaredByModules");
}
this.childComponentsDeclaredByModules = childComponentsDeclaredByModules;
if (childComponentsDeclaredByFactoryMethods == null) {
throw new NullPointerException("Null childComponentsDeclaredByFactoryMethods");
}
this.childComponentsDeclaredByFactoryMethods = childComponentsDeclaredByFactoryMethods;
if (childComponentsDeclaredByBuilderEntryPoints == null) {
throw new NullPointerException("Null childComponentsDeclaredByBuilderEntryPoints");
}
this.childComponentsDeclaredByBuilderEntryPoints = childComponentsDeclaredByBuilderEntryPoints;
if (componentMethods == null) {
throw new NullPointerException("Null componentMethods");
}
this.componentMethods = componentMethods;
if (creatorDescriptor == null) {
throw new NullPointerException("Null creatorDescriptor");
}
this.creatorDescriptor = creatorDescriptor;
}
@Override
public ComponentAnnotation annotation() {
return annotation;
}
@Override
public XTypeElement typeElement() {
return typeElement;
}
@Override
public ImmutableSet dependencies() {
return dependencies;
}
@Override
public ImmutableSet modules() {
return modules;
}
@Override
public ImmutableMap dependenciesByDependencyMethod() {
return dependenciesByDependencyMethod;
}
@Override
public ImmutableSet scopes() {
return scopes;
}
@Override
ImmutableSet childComponentsDeclaredByModules() {
return childComponentsDeclaredByModules;
}
@Override
public ImmutableBiMap childComponentsDeclaredByFactoryMethods() {
return childComponentsDeclaredByFactoryMethods;
}
@Override
ImmutableBiMap childComponentsDeclaredByBuilderEntryPoints() {
return childComponentsDeclaredByBuilderEntryPoints;
}
@Override
public ImmutableSet componentMethods() {
return componentMethods;
}
@Override
public Optional creatorDescriptor() {
return creatorDescriptor;
}
@Override
public String toString() {
return "ComponentDescriptor{"
+ "annotation=" + annotation + ", "
+ "typeElement=" + typeElement + ", "
+ "dependencies=" + dependencies + ", "
+ "modules=" + modules + ", "
+ "dependenciesByDependencyMethod=" + dependenciesByDependencyMethod + ", "
+ "scopes=" + scopes + ", "
+ "childComponentsDeclaredByModules=" + childComponentsDeclaredByModules + ", "
+ "childComponentsDeclaredByFactoryMethods=" + childComponentsDeclaredByFactoryMethods + ", "
+ "childComponentsDeclaredByBuilderEntryPoints=" + childComponentsDeclaredByBuilderEntryPoints + ", "
+ "componentMethods=" + componentMethods + ", "
+ "creatorDescriptor=" + creatorDescriptor
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ComponentDescriptor) {
ComponentDescriptor that = (ComponentDescriptor) o;
return this.annotation.equals(that.annotation())
&& this.typeElement.equals(that.typeElement())
&& this.dependencies.equals(that.dependencies())
&& this.modules.equals(that.modules())
&& this.dependenciesByDependencyMethod.equals(that.dependenciesByDependencyMethod())
&& this.scopes.equals(that.scopes())
&& this.childComponentsDeclaredByModules.equals(that.childComponentsDeclaredByModules())
&& this.childComponentsDeclaredByFactoryMethods.equals(that.childComponentsDeclaredByFactoryMethods())
&& this.childComponentsDeclaredByBuilderEntryPoints.equals(that.childComponentsDeclaredByBuilderEntryPoints())
&& this.componentMethods.equals(that.componentMethods())
&& this.creatorDescriptor.equals(that.creatorDescriptor());
}
return false;
}
}