Package dagger.hilt.processor.internal
Class ComponentDescriptor
java.lang.Object
dagger.hilt.processor.internal.ComponentDescriptor
Represents a single component in the hierarchy.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder for ComponentDescriptor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentDescriptor.Builderbuilder()abstract com.squareup.javapoet.ClassNameReturns theClassNamefor this component descriptor.abstract Optional<com.squareup.javapoet.ClassName>creator()Returns theClassNamefor the creator interface.final booleanfinal inthashCode()booleanisRoot()Returnstrueif the descriptor represents a root component.abstract Optional<ComponentDescriptor>parent()Returns theClassNamefor the parent, if it exists.abstract com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName>scopes()Returns theClassNames for the scopes of this component descriptor.
-
Constructor Details
-
ComponentDescriptor
public ComponentDescriptor()
-
-
Method Details
-
builder
-
component
public abstract com.squareup.javapoet.ClassName component()Returns theClassNamefor this component descriptor. -
scopes
public abstract com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> scopes()Returns theClassNames for the scopes of this component descriptor. -
creator
Returns theClassNamefor the creator interface. if it exists. -
parent
Returns theClassNamefor the parent, if it exists. -
isRoot
public boolean isRoot()Returnstrueif the descriptor represents a root component. -
equals
-
hashCode
public final int hashCode()
-