Package dagger.spi.model
Class Scope
- java.lang.Object
-
- dagger.spi.model.Scope
-
public abstract class Scope extends java.lang.ObjectA 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 booleanisProductionScope()Returnstrueif this scope is the@ProductionScopescope.booleanisReusable()Returnstrueif this scope is the@Reusablescope.static booleanisScope(DaggerAnnotation scopeAnnotation)static booleanisScope(DaggerTypeElement scopeAnnotationType)ReturnstrueifscopeAnnotationTypeis aScopeannotation.booleanisSingleton()Returnstrueif this scope is the@Singletonscope.static Scopescope(DaggerAnnotation scopeAnnotation)Creates aScopeobject from theScope-annotated annotation type.abstract DaggerAnnotationscopeAnnotation()TheDaggerAnnotationthat represents the scope annotation.java.lang.StringtoString()Returns a debug representation of the scope.
-
-
-
Method Detail
-
scope
public static Scope scope(DaggerAnnotation scopeAnnotation)
Creates aScopeobject from theScope-annotated annotation type.
-
isScope
public static boolean isScope(DaggerAnnotation scopeAnnotation)
-
isScope
public static boolean isScope(DaggerTypeElement scopeAnnotationType)
ReturnstrueifscopeAnnotationTypeis aScopeannotation.
-
scopeAnnotation
public abstract DaggerAnnotation 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
public final java.lang.String toString()
Returns a debug representation of the scope.- Overrides:
toStringin classjava.lang.Object
-
-