Class InjectMatchers

java.lang.Object
com.google.errorprone.matchers.InjectMatchers

public final class InjectMatchers
extends Object
Utility constants and matchers related to dependency injection.
  • Field Details

    • INSIDE_GUICE_MODULE

      public static final Matcher<com.sun.source.tree.Tree> INSIDE_GUICE_MODULE
    • GUICE_PROVIDES_ANNOTATION

      public static final String GUICE_PROVIDES_ANNOTATION
      See Also:
      Constant Field Values
    • DAGGER_PROVIDES_ANNOTATION

      public static final String DAGGER_PROVIDES_ANNOTATION
      See Also:
      Constant Field Values
    • ASSISTED_ANNOTATION

      public static final String ASSISTED_ANNOTATION
      See Also:
      Constant Field Values
    • ASSISTED_INJECT_ANNOTATION

      public static final String ASSISTED_INJECT_ANNOTATION
      See Also:
      Constant Field Values
    • GUICE_INJECT_ANNOTATION

      public static final String GUICE_INJECT_ANNOTATION
      See Also:
      Constant Field Values
    • JAVAX_INJECT_ANNOTATION

      public static final String JAVAX_INJECT_ANNOTATION
      See Also:
      Constant Field Values
    • IS_APPLICATION_OF_JAVAX_INJECT

      public static final Matcher<com.sun.source.tree.AnnotationTree> IS_APPLICATION_OF_JAVAX_INJECT
    • IS_APPLICATION_OF_GUICE_INJECT

      public static final Matcher<com.sun.source.tree.AnnotationTree> IS_APPLICATION_OF_GUICE_INJECT
    • IS_APPLICATION_OF_AT_INJECT

      public static final Matcher<com.sun.source.tree.AnnotationTree> IS_APPLICATION_OF_AT_INJECT
    • HAS_INJECT_ANNOTATION

      public static final Matcher<com.sun.source.tree.Tree> HAS_INJECT_ANNOTATION
    • GUICE_SCOPE_ANNOTATION

      public static final String GUICE_SCOPE_ANNOTATION
      See Also:
      Constant Field Values
    • JAVAX_SCOPE_ANNOTATION

      public static final String JAVAX_SCOPE_ANNOTATION
      See Also:
      Constant Field Values
    • IS_SCOPING_ANNOTATION

      public static final Matcher<com.sun.source.tree.AnnotationTree> IS_SCOPING_ANNOTATION
    • GUICE_BINDING_ANNOTATION

      public static final String GUICE_BINDING_ANNOTATION
      See Also:
      Constant Field Values
    • JAVAX_QUALIFIER_ANNOTATION

      public static final String JAVAX_QUALIFIER_ANNOTATION
      See Also:
      Constant Field Values
    • IS_BINDING_ANNOTATION

      public static final Matcher<com.sun.source.tree.AnnotationTree> IS_BINDING_ANNOTATION
    • GUICE_MAP_KEY_ANNOTATION

      public static final String GUICE_MAP_KEY_ANNOTATION
      See Also:
      Constant Field Values
    • DAGGER_MAP_KEY_ANNOTATION

      public static final String DAGGER_MAP_KEY_ANNOTATION
      See Also:
      Constant Field Values
    • IS_DAGGER_COMPONENT

      public static final Matcher<com.sun.source.tree.ClassTree> IS_DAGGER_COMPONENT
    • IS_DAGGER_COMPONENT_OR_MODULE

      public static final Matcher<com.sun.source.tree.ClassTree> IS_DAGGER_COMPONENT_OR_MODULE
  • Method Details

    • hasProvidesAnnotation

      public static <T extends com.sun.source.tree.Tree> Matcher<T> hasProvidesAnnotation()
    • hasInjectAnnotation

      public static <T extends com.sun.source.tree.Tree> Matcher<T> hasInjectAnnotation()