Package dagger.spi.model
Class Scope
java.lang.Object
dagger.spi.model.Scope
A representation of a
Scope
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returnstrue
if this scope is the@ProductionScope
scope.final boolean
Returnstrue
if this scope is the@Reusable
scope.static boolean
isScope
(DaggerAnnotation scopeAnnotation) static boolean
isScope
(DaggerTypeElement scopeAnnotationType) Returnstrue
ifscopeAnnotationType
is aScope
annotation.final boolean
Returnstrue
if this scope is the@Singleton
scope.static Scope
scope
(DaggerAnnotation scopeAnnotation) Creates aScope
object from theScope
-annotated annotation type.abstract DaggerAnnotation
TheDaggerAnnotation
that represents the scope annotation.final String
toString()
Returns a debug representation of the scope.
-
Constructor Details
-
Scope
public Scope()
-
-
Method Details
-
scope
Creates aScope
object from theScope
-annotated annotation type. -
isScope
-
isScope
Returnstrue
ifscopeAnnotationType
is aScope
annotation. -
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
Returns a debug representation of the scope.
-