Java 类com.intellij.psi.stubs.DefaultStubBuilder 实例源码

项目:consulo-csharp    文件:CSharpFileStubElementType.java   
@Override
public StubBuilder getBuilder()
{
    return new DefaultStubBuilder()
    {
        @NotNull
        @Override
        protected StubElement createStubForFile(@NotNull PsiFile file)
        {
            if(file instanceof CSharpFileImpl)
            {
                return new CSharpFileStub((CSharpFileImpl) file);
            }
            return super.createStubForFile(file);
        }
    };
}
项目:consulo-dotnet    文件:MsilFileStubElementType.java   
@Override
public StubBuilder getBuilder()
{
    return new DefaultStubBuilder()
    {
        @NotNull
        @Override
        protected StubElement createStubForFile(@NotNull PsiFile file)
        {
            if(file instanceof MsilFile)
            {
                return new MsilFileStub((MsilFile) file);
            }
            return super.createStubForFile(file);
        }
    };
}
项目:consulo-javascript    文件:JSFileElementType.java   
@Override
public StubBuilder getBuilder()
{
    return new DefaultStubBuilder()
    {
        @NotNull
        @Override
        protected StubElement createStubForFile(@NotNull PsiFile file)
        {
            if(file instanceof JSFile)
            {
                return new JSFileStubImpl((JSFile) file, file.getName());
            }
            return super.createStubForFile(file);
        }
    };
}
项目:reasonml-idea-plugin    文件:RmlFileStubElementType.java   
@Override
public StubBuilder getBuilder() {
    return new DefaultStubBuilder() {
        @NotNull
        @Override
        protected StubElement createStubForFile(@NotNull PsiFile file) {
            if (file instanceof RmlFile) {
                return new RmlFileStub((RmlFile) file);
            }
            return super.createStubForFile(file);
        }
    };
}
项目:bamboo-soy    文件:FileStub.java   
@Override
public StubBuilder getBuilder() {
  return new DefaultStubBuilder() {
    @Override
    protected StubElement createStubForFile(@NotNull PsiFile file) {
      return new FileStub((SoyFile) file);
    }
  };
}
项目:protobuf-jetbrains-plugin    文件:FileStub.java   
@Override
public StubBuilder getBuilder() {
    return new DefaultStubBuilder() {
        @Override
        protected StubElement createStubForFile(@NotNull PsiFile file) {
            return new FileStub((ProtoPsiFileRoot) file);
        }
    };
}
项目:epigraph    文件:SchemaFileElementType.java   
@Override
public StubBuilder getBuilder() {
  return new DefaultStubBuilder() {
    @NotNull
    @Override
    protected StubElement createStubForFile(@NotNull PsiFile file) {
      if (file instanceof SchemaFile) {
        SchemaFile schemaFile = (SchemaFile) file;
        Qn namespace = NamespaceManager.getNamespace(schemaFile);
        return new SchemaFileStubImpl(schemaFile, StringRef.fromNullableString(namespace == null ? null : namespace.toString()));
      } else return super.createStubForFile(file);
    }
  };
}
项目:intellij-haskforce    文件:HaskellFileStubElementType.java   
@Override
public StubBuilder getBuilder() {
    return new DefaultStubBuilder() {
        @NotNull
        @Override
        protected StubElement createStubForFile(@NotNull PsiFile file) {
            if (file instanceof HaskellFile) {
                return new HaskellFileStub((HaskellFile)file);
            }
            return super.createStubForFile(file);
        }
    };
}