All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.autonomousapps.kit.gradle.Java.kt Maven / Gradle / Ivy

There is a newer version: 0.17
Show newest version
package com.autonomousapps.kit.gradle

import com.autonomousapps.kit.render.Element
import com.autonomousapps.kit.render.Scribe

public class Java @JvmOverloads constructor(
  public val features: List = emptyList(),
) : Element.Block {

  override val name: String = "java"

  override fun render(scribe: Scribe): String = scribe.block(this) { s ->
    features.forEach { it.render(s) }
  }

  public companion object {
    @JvmStatic
    public fun ofFeatures(features: List): Java = Java(features)

    @JvmStatic
    public fun ofFeatures(vararg features: Feature): Java = ofFeatures(features.toList())
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy