コード例 #1
0
 @Override
 public void indexStub(@NotNull GrReferenceListStub stub, @NotNull IndexSink sink) {
   for (String name : stub.getBaseClasses()) {
     if (name != null) {
       sink.occurrence(GrDirectInheritorsIndex.KEY, PsiNameHelper.getShortClassName(name));
     }
   }
 }
コード例 #2
0
 @Override
 public void serialize(@NotNull GrReferenceListStub stub, @NotNull StubOutputStream dataStream)
     throws IOException {
   GrStubUtils.writeStringArray(dataStream, stub.getBaseClasses());
 }