mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[java] API cleanup: remove scheduled for removal Compiler interfaces (IDEA-262168)
GitOrigin-RevId: d01d2860ada746c825a9c469861434fe5abe67b7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3b700c8255
commit
e80a72c71c
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.openapi.compiler;
|
||||
|
||||
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
/**
|
||||
* @deprecated this interface is part of the obsolete build system which runs as part of the IDE process. Since IDEA 15 implementations of
|
||||
* this class aren't used by the IDE, you should integrate into 'external build system' instead
|
||||
* (http://www.jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/external_builder_api.html).
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
|
||||
public interface ClassInstrumentingCompiler extends FileProcessingCompiler {
|
||||
}
|
||||
@@ -17,7 +17,6 @@ import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* A "root" class in compiler subsystem - allows one to register a custom compiler or a compilation task, register/unregister a compilation listener
|
||||
@@ -47,24 +46,9 @@ public abstract class CompilerManager {
|
||||
* @deprecated use {@link CompileTask} extension instead
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
|
||||
public abstract void addCompiler(@NotNull Compiler compiler);
|
||||
|
||||
/**
|
||||
* Registers a custom translating compiler. Input and output filetype sets allow compiler manager
|
||||
* to sort translating compilers so that output of one compiler will be used as input for another one
|
||||
*
|
||||
* @param compiler compiler implementation
|
||||
* @param inputTypes a set of filetypes that compiler accepts as input
|
||||
* @param outputTypes a set of filetypes that compiler can generate
|
||||
*
|
||||
* @deprecated this method is part of the obsolete build system which runs as part of the IDE process. Since IDEA 12 plugins need to
|
||||
* integrate into 'external build system' instead (https://confluence.jetbrains.com/display/IDEADEV/External+Builder+API+and+Plugins).
|
||||
* Since IDEA 13 users cannot switch to the old build system via UI and it will be completely removed in IDEA 14.
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2021.2")
|
||||
public abstract void addTranslatingCompiler(@NotNull TranslatingCompiler compiler, Set<FileType> inputTypes, Set<FileType> outputTypes);
|
||||
|
||||
/**
|
||||
* Unregisters a custom compiler.
|
||||
*
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.openapi.compiler;
|
||||
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
/**
|
||||
* @deprecated this interface is part of the obsolete build system which runs as part of the IDE process. Since IDEA 15 implementations of
|
||||
* this class aren't used by the IDE, you should integrate into 'external build system' instead
|
||||
* (http://www.jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/external_builder_api.html).
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
|
||||
public interface GeneratingCompiler extends Compiler, ValidityStateFactory, IntermediateOutputCompiler {
|
||||
/**
|
||||
* Represents a single item generated by the compiler.
|
||||
*/
|
||||
interface GenerationItem {
|
||||
/**
|
||||
* Returns the path of the generated file.
|
||||
*
|
||||
* @return path of a generated file, relative to output directory.
|
||||
*/
|
||||
String getPath();
|
||||
|
||||
/**
|
||||
* Returns the object describing dependencies of the generated file.
|
||||
*
|
||||
* @return a serializable object describing dependencies of the generated file.
|
||||
*/
|
||||
ValidityState getValidityState();
|
||||
|
||||
/**
|
||||
* Returns the module to which the generated item belongs. This affects the sequence
|
||||
* of compiling the generated files.
|
||||
*
|
||||
* @return the module to which the generated item belongs.
|
||||
*/
|
||||
Module getModule();
|
||||
|
||||
/**
|
||||
* @return true if the generated item is supposed to be located in test sources, false otherwise
|
||||
*/
|
||||
boolean isTestSource();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of all the files this compiler can generate.
|
||||
*
|
||||
* @param context the current compile context.
|
||||
* @return items describing all the files this compiler can generate.
|
||||
*/
|
||||
GenerationItem[] getGenerationItems(CompileContext context);
|
||||
|
||||
/**
|
||||
* Invokes the generation process.
|
||||
*
|
||||
* @param context the current compile context.
|
||||
* @param items what items to generate.
|
||||
* @param outputRootDirectory the root directory under which the items are generated (the paths
|
||||
* in {@link GenerationItem#getPath()} are relative to that directory).
|
||||
* All files generated by the compiler must be placed in that directory or
|
||||
* its subdirectories, otherwise they will not be compiled properly on
|
||||
* subsequent build steps.
|
||||
* @return successfully generated items
|
||||
*/
|
||||
GenerationItem[] generate(CompileContext context, GenerationItem[] items, VirtualFile outputRootDirectory);
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.openapi.compiler;
|
||||
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
/**
|
||||
* @deprecated this interface is part of the obsolete build system which runs as part of the IDE process. Since IDEA 15 implementations of
|
||||
* this class aren't used by the IDE, you should integrate into 'external build system' instead
|
||||
* (http://www.jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/external_builder_api.html).
|
||||
*/
|
||||
@Deprecated
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
|
||||
public interface SourceGeneratingCompiler extends GeneratingCompiler {
|
||||
|
||||
/**
|
||||
* Used by make subsystem to obtain the file that should be opened in the editor instead of generated file if there were errors found
|
||||
* while compiling the generated file
|
||||
*
|
||||
*
|
||||
* @param context current compile context
|
||||
* @param module the module to which the generated file was attributed
|
||||
* @param outputRoot the compiler output root
|
||||
* @param generatedFile - the file that was generated by this compiler
|
||||
* @return substituting file that should be used for navigation in UI or null if no such substitutor is available
|
||||
*
|
||||
*/
|
||||
VirtualFile getPresentableFile(CompileContext context, Module module, VirtualFile outputRoot, VirtualFile generatedFile);
|
||||
}
|
||||
Reference in New Issue
Block a user