Package dagger.model

Class Scope

java.lang.Object
dagger.model.Scope

public abstract class Scope extends Object
A representation of a Scope.
  • Constructor Details

    • Scope

      public Scope()
  • Method Details

    • scopeAnnotation

      public final AnnotationMirror scopeAnnotation()
      The AnnotationMirror that represents the scope annotation.
    • scopeAnnotationElement

      public final TypeElement scopeAnnotationElement()
      The scope annotation element.
    • scope

      public static Scope scope(AnnotationMirror scopeAnnotation)
      Creates a Scope object from the Scope-annotated annotation type.
    • isScope

      public static boolean isScope(AnnotationMirror scopeAnnotation)
      Returns true if scopeAnnotation() is a Scope annotation.
    • isScope

      public static boolean isScope(TypeElement scopeAnnotationType)
      Returns true if scopeAnnotationType is a Scope annotation.
    • isSingleton

      public final boolean isSingleton()
      Returns true if this scope is the @Singleton scope.
    • isReusable

      public final boolean isReusable()
      Returns true if this scope is the @Reusable scope.
    • isProductionScope

      public final boolean isProductionScope()
      Returns true if this scope is the @ProductionScope scope.
    • toString

      public final String toString()
      Returns a debug representation of the scope.
      Overrides:
      toString in class Object