Package dagger.model
Class Scope
java.lang.Object
dagger.model.Scope
A representation of a
Scope.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturnstrueif this scope is the@ProductionScopescope.final booleanReturnstrueif this scope is the@Reusablescope.static booleanisScope(AnnotationMirror scopeAnnotation) static booleanisScope(TypeElement scopeAnnotationType) ReturnstrueifscopeAnnotationTypeis aScopeannotation.final booleanReturnstrueif this scope is the@Singletonscope.static Scopescope(AnnotationMirror scopeAnnotation) Creates aScopeobject from theScope-annotated annotation type.final AnnotationMirrorTheAnnotationMirrorthat represents the scope annotation.final TypeElementThe scope annotation element.final StringtoString()Returns a debug representation of the scope.
-
Constructor Details
-
Scope
public Scope()
-
-
Method Details
-
scopeAnnotation
TheAnnotationMirrorthat represents the scope annotation. -
scopeAnnotationElement
The scope annotation element. -
scope
Creates aScopeobject from theScope-annotated annotation type. -
isScope
-
isScope
ReturnstrueifscopeAnnotationTypeis aScopeannotation. -
isSingleton
public final boolean isSingleton()Returnstrueif this scope is the@Singletonscope. -
isReusable
public final boolean isReusable()Returnstrueif this scope is the@Reusablescope. -
isProductionScope
public final boolean isProductionScope()Returnstrueif this scope is the@ProductionScopescope. -
toString
Returns a debug representation of the scope.
-