MCPcopy Index your code
hub / github.com/google/dagger / isScope

Method isScope

java/dagger/model/Scope.java:68–70  ·  view source on GitHub ↗

Returns true if #scopeAnnotation() is a javax.inject.Scope annotation.

(AnnotationMirror scopeAnnotation)

Source from the content-addressed store, hash-verified

66 * Returns {@code true} if {@link #scopeAnnotation()} is a {@link javax.inject.Scope} annotation.
67 */
68 public static boolean isScope(AnnotationMirror scopeAnnotation) {
69 return isScope(MoreElements.asType(scopeAnnotation.getAnnotationType().asElement()));
70 }
71
72 /**
73 * Returns {@code true} if {@code scopeAnnotationType} is a {@link javax.inject.Scope} annotation.

Callers 5

scopeMethod · 0.95
isSingletonMethod · 0.95
isReusableMethod · 0.95
isProductionScopeMethod · 0.95

Calls 5

asTypeMethod · 0.80
asElementMethod · 0.80
getAnnotationTypeMethod · 0.80
isAnnotationPresentMethod · 0.80

Tested by

no test coverage detected