public abstract class ComponentDescriptor
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ComponentDescriptor.Builder
Builder for ComponentDescriptor.
|
| Constructor and Description |
|---|
ComponentDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
static ComponentDescriptor.Builder |
builder() |
abstract com.squareup.javapoet.ClassName |
component()
Returns the
ClassName for this component descriptor. |
abstract java.util.Optional<com.squareup.javapoet.ClassName> |
creator()
Returns the
ClassName for the creator interface. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode() |
boolean |
isRoot()
Returns
true if the descriptor represents a root component. |
abstract java.util.Optional<ComponentDescriptor> |
parent()
Returns the
ClassName for the parent, if it exists. |
abstract com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> |
scopes()
Returns the
ClassNames for the scopes of this component descriptor. |
public static ComponentDescriptor.Builder builder()
public abstract com.squareup.javapoet.ClassName component()
ClassName for this component descriptor.public abstract com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> scopes()
ClassNames for the scopes of this component descriptor.public abstract java.util.Optional<com.squareup.javapoet.ClassName> creator()
ClassName for the creator interface. if it exists.public abstract java.util.Optional<ComponentDescriptor> parent()
ClassName for the parent, if it exists.public boolean isRoot()
true if the descriptor represents a root component.public final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Object