Package dagger.model
Class Scope
- java.lang.Object
-
- dagger.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 Concrete Methods Modifier and Type Method Description booleanisProductionScope()Returnstrueif this scope is the@ProductionScopescope.booleanisReusable()Returnstrueif this scope is the@Reusablescope.static booleanisScope(javax.lang.model.element.AnnotationMirror scopeAnnotation)static booleanisScope(javax.lang.model.element.TypeElement scopeAnnotationType)ReturnstrueifscopeAnnotationTypeis aScopeannotation.booleanisSingleton()Returnstrueif this scope is the@Singletonscope.static Scopescope(javax.lang.model.element.AnnotationMirror scopeAnnotation)Creates aScopeobject from theScope-annotated annotation type.javax.lang.model.element.AnnotationMirrorscopeAnnotation()TheAnnotationMirrorthat represents the scope annotation.javax.lang.model.element.TypeElementscopeAnnotationElement()The scope annotation element.java.lang.StringtoString()Returns a debug representation of the scope.
-
-
-
Method Detail
-
scopeAnnotation
public final javax.lang.model.element.AnnotationMirror scopeAnnotation()
TheAnnotationMirrorthat represents the scope annotation.
-
scopeAnnotationElement
public final javax.lang.model.element.TypeElement scopeAnnotationElement()
The scope annotation element.
-
scope
public static Scope scope(javax.lang.model.element.AnnotationMirror scopeAnnotation)
Creates aScopeobject from theScope-annotated annotation type.
-
isScope
public static boolean isScope(javax.lang.model.element.AnnotationMirror scopeAnnotation)
-
isScope
public static boolean isScope(javax.lang.model.element.TypeElement scopeAnnotationType)
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
public final java.lang.String toString()
Returns a debug representation of the scope.- Overrides:
toStringin classjava.lang.Object
-
-