Пример #1
0
 @NotNull
 public ClassDescriptor getAnnotationClassByName(@NotNull Name simpleName) {
   ClassifierDescriptor classifier =
       annotationPackageFragment
           .getMemberScope()
           .getContributedClassifier(simpleName, NoLookupLocation.FROM_BUILTINS);
   assert classifier instanceof ClassDescriptor
       : "Must be a class descriptor "
           + simpleName
           + ", but was "
           + (classifier == null ? "null" : classifier.toString());
   return (ClassDescriptor) classifier;
 }
Пример #2
0
 @NotNull
 public MemberScope getAnnotationPackageScope() {
   return annotationPackageFragment.getMemberScope();
 }
Пример #3
0
 @NotNull
 public MemberScope getBuiltInsPackageScope() {
   return builtinsPackageFragment.getMemberScope();
 }