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
-
objectJavaGeneratedFile
- 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
typeIJvmTypeThe type declared in the file.
writerJavaWriterRenders 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
Path
The path of the file relative to the output directory, using / as the separator, including the extension.
public string Path { get; }
Property Value
Type
The type declared in the file.
public IJvmType Type { get; }
Property Value
Methods
WriteTo(TextWriter)
Writes the content of the file.
public void WriteTo(TextWriter textWriter)
Parameters
textWriterTextWriter