Returns the readable source representation (name with @ prefix) of the scope's annotation type. It's readable source because it has had common package prefixes removed, e.g. @javax.inject.Singleton is returned as @Singleton. Does not return any annotation values, since {@link
(Scope scope)
| 73 | * are not supposed to have any. |
| 74 | */ |
| 75 | static String getReadableSource(Scope scope) { |
| 76 | return stripCommonTypePrefixes("@" + scope.scopeAnnotationElement().getQualifiedName()); |
| 77 | } |
| 78 | |
| 79 | /** Returns all of the associated scopes for a source code element. */ |
| 80 | static ImmutableSet<Scope> scopesOf(Element element) { |
no test coverage detected