Table of Contents

Class JvmWriter

Namespace
TypedRest.CodeGeneration.Jvm.Model
Assembly
TypedRest.CodeGeneration.Jvm.dll

Writes indented JVM source code.

public sealed class JvmWriter
Inheritance
object
JvmWriter

Constructors

JvmWriter(TextWriter)

Writes indented JVM source code.

public JvmWriter(TextWriter writer)

Parameters

writer TextWriter

The underlying writer.

Methods

Indent()

Increases the indentation level until the returned value is disposed.

public IDisposable Indent()

Returns

IDisposable

WriteDocComment(string?, bool)

Writes a JavaDoc/KDoc comment, if there is anything to write.

public void WriteDocComment(string? summary, bool deprecated = false)

Parameters

summary string

The description to write, if any.

deprecated bool

Adds a @deprecated tag.

WriteLine(string)

Writes a line of code at the current indentation level.

public void WriteLine(string text = "")

Parameters

text string