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

main.name.remal.gradle_plugins.plugins.generate_sources.GeneratingWriterInterface.kt Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
package name.remal.gradle_plugins.plugins.generate_sources

interface GeneratingWriterInterface : Appendable, GeneratingWithClasspath {

    fun write(obj: Any?)
    fun writeln() = write("\n")
    fun writeln(obj: Any?) = run { write(obj); writeln() }

    fun append(obj: Any?): Appendable = apply { write(obj) }
    fun appendln(obj: Any?): Appendable = apply { writeln(obj) }
    override fun append(csq: CharSequence?): Appendable = apply { write(csq) }
    override fun append(csq: CharSequence?, start: Int, end: Int): Appendable = apply { write((csq ?: "null").subSequence(start, end)) }
    override fun append(c: Char): Appendable = append(String(charArrayOf(c)))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy