Table of Contents

Class KotlinGeneratedFile

Namespace
TypedRest.CodeGeneration.Kotlin
Assembly
TypedRest.CodeGeneration.Kotlin.dll

A Kotlin source file holding one generated type.

public sealed class KotlinGeneratedFile : IGeneratedFile
Inheritance
object
KotlinGeneratedFile
Implements
Extension Methods

Constructors

KotlinGeneratedFile(IJvmType, KotlinWriter)

A Kotlin source file holding one generated type.

public KotlinGeneratedFile(IJvmType type, KotlinWriter writer)

Parameters

type IJvmType

The type declared in the file.

writer KotlinWriter

Renders the type.

Properties

Encoding

The encoding to use when writing the file to disk.

public Encoding Encoding { get; }

Property Value

Encoding

Path

The path of the file relative to the output directory, using / as the separator, including the extension.

public string Path { get; }

Property Value

string

Type

The type declared in the file.

public IJvmType Type { get; }

Property Value

IJvmType

Methods

WriteTo(TextWriter)

Writes the content of the file.

public void WriteTo(TextWriter textWriter)

Parameters

textWriter TextWriter