JvmFiles

data class JvmFiles(val fileFactoryCache: SafeCache<SourceSetName, JvmFileProvider>, val project: McProject) : ProjectContext.Element(source)

Represents a collection of JVM files for a project.

Parameters

project

the project for which the JVM files are needed

Constructors

Link copied to clipboard
constructor(fileFactoryCache: SafeCache<SourceSetName, JvmFileProvider>, project: McProject)

Types

Link copied to clipboard

Companion object that acts as the key for JvmFiles within a ProjectContext.

Properties

Link copied to clipboard

a cache for mapping source set names to corresponding JVM file providers

Link copied to clipboard
open override val key: ProjectContext.Key<JvmFiles>
Link copied to clipboard
private val project: McProject

Functions

Link copied to clipboard
suspend fun get(sourceSetName: SourceSetName): Flow<JvmFile>

Retrieves a flow of JVM files corresponding to the provided source set name.

Link copied to clipboard
private suspend fun getFile(file: File, sourceSetName: SourceSetName): JvmFile?

Retrieves the JVM file corresponding to the given file and source set name.