Package dagger.spi.model
Class Scope
- java.lang.Object
-
- dagger.spi.model.Scope
-
public abstract class Scope extends java.lang.Object
A representation of aScope
.
-
-
Constructor Summary
Constructors Constructor Description Scope()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
isProductionScope()
Returnstrue
if this scope is the@ProductionScope
scope.boolean
isReusable()
Returnstrue
if this scope is the@Reusable
scope.static boolean
isScope(DaggerAnnotation scopeAnnotation)
static boolean
isScope(DaggerTypeElement scopeAnnotationType)
Returnstrue
ifscopeAnnotationType
is aScope
annotation.boolean
isSingleton()
Returnstrue
if this scope is the@Singleton
scope.static Scope
scope(DaggerAnnotation scopeAnnotation)
Creates aScope
object from theScope
-annotated annotation type.abstract DaggerAnnotation
scopeAnnotation()
TheDaggerAnnotation
that represents the scope annotation.java.lang.String
toString()
Returns a debug representation of the scope.
-
-
-
Method Detail
-
scope
public static Scope scope(DaggerAnnotation scopeAnnotation)
Creates aScope
object from theScope
-annotated annotation type.
-
isScope
public static boolean isScope(DaggerAnnotation scopeAnnotation)
-
isScope
public static boolean isScope(DaggerTypeElement scopeAnnotationType)
Returnstrue
ifscopeAnnotationType
is aScope
annotation.
-
scopeAnnotation
public abstract DaggerAnnotation scopeAnnotation()
TheDaggerAnnotation
that represents the scope annotation.
-
isSingleton
public final boolean isSingleton()
Returnstrue
if this scope is the@Singleton
scope.
-
isReusable
public final boolean isReusable()
Returnstrue
if this scope is the@Reusable
scope.
-
isProductionScope
public final boolean isProductionScope()
Returnstrue
if this scope is the@ProductionScope
scope.
-
toString
public final java.lang.String toString()
Returns a debug representation of the scope.- Overrides:
toString
in classjava.lang.Object
-
-