Example #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;
 }
Example #2
0
 @NotNull
 public MemberScope getAnnotationPackageScope() {
   return annotationPackageFragment.getMemberScope();
 }
Example #3
0
 @NotNull
 public MemberScope getBuiltInsPackageScope() {
   return builtinsPackageFragment.getMemberScope();
 }