Table of Contents

Class JavaGeneratedFile

Namespace
TypedRest.CodeGeneration.Java
Assembly
TypedRest.CodeGeneration.Java.dll

A Java source file holding one generated type.

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

Remarks

One public type per file, in a directory matching its package.

Constructors

JavaGeneratedFile(IJvmType, JavaWriter)

A Java source file holding one generated type.

public JavaGeneratedFile(IJvmType type, JavaWriter writer)

Parameters

type IJvmType

The type declared in the file.

writer JavaWriter

Renders the type.

Remarks

One public type per file, in a directory matching its package.

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