Package dagger.model
Class Scope
java.lang.Object
dagger.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
(AnnotationMirror scopeAnnotation) static boolean
isScope
(TypeElement scopeAnnotationType) Returnstrue
ifscopeAnnotationType
is aScope
annotation.final boolean
Returnstrue
if this scope is the@Singleton
scope.static Scope
scope
(AnnotationMirror scopeAnnotation) Creates aScope
object from theScope
-annotated annotation type.final AnnotationMirror
TheAnnotationMirror
that represents the scope annotation.final TypeElement
The scope annotation element.final String
toString()
Returns a debug representation of the scope.
-
Constructor Details
-
Scope
public Scope()
-
-
Method Details
-
scopeAnnotation
TheAnnotationMirror
that represents the scope annotation. -
scopeAnnotationElement
The scope annotation element. -
scope
Creates aScope
object from theScope
-annotated annotation type. -
isScope
-
isScope
Returnstrue
ifscopeAnnotationType
is aScope
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.
-