Package dagger.spi.model
Class Scope
java.lang.Object
dagger.spi.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(DaggerAnnotation scopeAnnotation) static booleanisScope(DaggerTypeElement scopeAnnotationType) ReturnstrueifscopeAnnotationTypeis aScopeannotation.final booleanReturnstrueif this scope is the@Singletonscope.static Scopescope(DaggerAnnotation scopeAnnotation) Creates aScopeobject from theScope-annotated annotation type.abstract DaggerAnnotationTheDaggerAnnotationthat represents the scope annotation.final StringtoString()Returns a debug representation of the scope.
-
Constructor Details
-
Scope
public Scope()
-
-
Method Details
-
scope
Creates aScopeobject from theScope-annotated annotation type. -
isScope
-
isScope
ReturnstrueifscopeAnnotationTypeis aScopeannotation. -
scopeAnnotation
TheDaggerAnnotationthat represents the scope annotation. -
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.
-