Package dagger.hilt.processor.internal
Class ComponentDescriptor
- java.lang.Object
-
- dagger.hilt.processor.internal.ComponentDescriptor
-
public abstract class ComponentDescriptor extends java.lang.ObjectRepresents a single component in the hierarchy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceComponentDescriptor.BuilderBuilder for ComponentDescriptor.
-
Constructor Summary
Constructors Constructor Description ComponentDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ComponentDescriptor.Builderbuilder()abstract com.squareup.javapoet.ClassNamecomponent()Returns theClassNamefor this component descriptor.abstract java.util.Optional<com.squareup.javapoet.ClassName>creator()Returns theClassNamefor the creator interface.booleanequals(java.lang.Object obj)inthashCode()booleanisRoot()Returnstrueif the descriptor represents a root component.abstract java.util.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.
-
-
-
Method Detail
-
builder
public static ComponentDescriptor.Builder 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
public abstract java.util.Optional<com.squareup.javapoet.ClassName> creator()
Returns theClassNamefor the creator interface. if it exists.
-
parent
public abstract java.util.Optional<ComponentDescriptor> parent()
Returns theClassNamefor the parent, if it exists.
-
isRoot
public boolean isRoot()
Returnstrueif the descriptor represents a root component.
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-