public abstract class Scope
extends java.lang.Object
Scope.| Constructor and Description |
|---|
Scope() |
| Modifier and Type | Method and Description |
|---|---|
com.squareup.javapoet.ClassName |
className() |
boolean |
isProductionScope()
Returns
true if this scope is the @ProductionScope scope. |
boolean |
isReusable()
Returns
true if this scope is the @Reusable scope. |
static boolean |
isScope(DaggerAnnotation scopeAnnotation)
|
static boolean |
isScope(DaggerTypeElement scopeAnnotationType)
Returns
true if scopeAnnotationType is a Scope annotation. |
boolean |
isSingleton()
Returns
true if this scope is the @Singleton scope. |
static Scope |
scope(DaggerAnnotation scopeAnnotation)
Creates a
Scope object from the Scope-annotated annotation type. |
abstract DaggerAnnotation |
scopeAnnotation()
The
DaggerAnnotation that represents the scope annotation. |
java.lang.String |
toString()
Returns a debug representation of the scope.
|
public static Scope scope(DaggerAnnotation scopeAnnotation)
Scope object from the Scope-annotated annotation type.public static boolean isScope(DaggerAnnotation scopeAnnotation)
public static boolean isScope(DaggerTypeElement scopeAnnotationType)
true if scopeAnnotationType is a Scope annotation.public abstract DaggerAnnotation scopeAnnotation()
DaggerAnnotation that represents the scope annotation.public final com.squareup.javapoet.ClassName className()
public final boolean isSingleton()
true if this scope is the @Singleton scope.public final boolean isReusable()
true if this scope is the @Reusable scope.public final boolean isProductionScope()
true if this scope is the @ProductionScope scope.public final java.lang.String toString()
toString in class java.lang.Object