org.jetbrains.kotlin.analysis.project.structure.KtCompilerPluginsProvider.kt Maven / Gradle / Ivy
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.project.structure
import org.jetbrains.kotlin.extensions.ProjectExtensionDescriptor
/**
* A service which can return extensions which are registered for some module
*/
public abstract class KtCompilerPluginsProvider {
public enum class CompilerPluginType {
ASSIGNMENT
}
/**
* Returns a list of extensions of a base [extensionType] which are registered for [module]
*
* These extensions are used in addition to those provided by the extension descriptor's [ProjectExtensionDescriptor.getInstances].
*/
public abstract fun getRegisteredExtensions(module: KtSourceModule, extensionType: ProjectExtensionDescriptor): List
/**
* Returns `true` if at least one plugin with requested `pluginType` is registered, `false` otherwise
*/
public abstract fun isPluginOfTypeRegistered(module: KtSourceModule, pluginType: CompilerPluginType): Boolean
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy