FileSpec

A Kotlin file containing top level objects like classes, objects, functions, properties, and type aliases.

Items are output in the following order:

  • Comment

  • Annotations

  • Package

  • Imports

  • Members

Types

Link copied to clipboard
Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
inline fun <T : Any> tag(type: Class<T>): T?
inline fun <T : Any> tag(type: KClass<T>): T?

Returns the tag attached with type as a key, or null if no tag is attached with that key.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun writeTo(directory: File)
fun writeTo(directory: Path)

Writes this to directory as UTF-8 using the standard directory structure.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Map<KClass<*>, Any>

all tags.

Extensions

Link copied to clipboard
inline fun <T : Any> Taggable.tag(): T?

Returns the tag attached with T as a key, or null if no tag is attached with that key.