Package dagger.model
Class Scope
- java.lang.Object
-
- dagger.model.Scope
-
public abstract class Scope extends java.lang.Object
A representation of aScope
.
-
-
Constructor Summary
Constructors Constructor Description Scope()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isProductionScope()
Returnstrue
if this scope is the@ProductionScope
scope.boolean
isReusable()
Returnstrue
if this scope is the@Reusable
scope.static boolean
isScope(javax.lang.model.element.AnnotationMirror scopeAnnotation)
static boolean
isScope(javax.lang.model.element.TypeElement scopeAnnotationType)
Returnstrue
ifscopeAnnotationType
is aScope
annotation.boolean
isSingleton()
Returnstrue
if this scope is the@Singleton
scope.static Scope
scope(javax.lang.model.element.AnnotationMirror scopeAnnotation)
Creates aScope
object from theScope
-annotated annotation type.javax.lang.model.element.AnnotationMirror
scopeAnnotation()
TheAnnotationMirror
that represents the scope annotation.javax.lang.model.element.TypeElement
scopeAnnotationElement()
The scope annotation element.java.lang.String
toString()
Returns a debug representation of the scope.
-
-
-
Method Detail
-
scopeAnnotation
public final javax.lang.model.element.AnnotationMirror scopeAnnotation()
TheAnnotationMirror
that 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 aScope
object 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)
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
public final java.lang.String toString()
Returns a debug representation of the scope.- Overrides:
toString
in classjava.lang.Object
-
-