Class JvmWriter
- Namespace
- TypedRest.CodeGeneration.Jvm.Model
- Assembly
- TypedRest.CodeGeneration.Jvm.dll
Writes indented JVM source code.
public sealed class JvmWriter
- Inheritance
-
objectJvmWriter
Constructors
JvmWriter(TextWriter)
Writes indented JVM source code.
public JvmWriter(TextWriter writer)
Parameters
writerTextWriterThe underlying writer.
Methods
Indent()
Increases the indentation level until the returned value is disposed.
public IDisposable Indent()
Returns
WriteDocComment(string?, bool)
Writes a JavaDoc/KDoc comment, if there is anything to write.
public void WriteDocComment(string? summary, bool deprecated = false)
Parameters
WriteLine(string)
Writes a line of code at the current indentation level.
public void WriteLine(string text = "")
Parameters
textstring