pub struct CodeGenerator<'a> { /* private fields */ }
Expand description
Main configuration object for code-generation in Java.
Implementations§
Source§impl<'a> CodeGenerator<'a>
impl<'a> CodeGenerator<'a>
Sourcepub fn new(config: &'a CodeGeneratorConfig) -> Self
pub fn new(config: &'a CodeGeneratorConfig) -> Self
Create a Java code generator for the given config.
Sourcepub fn write_source_files(
&self,
install_dir: PathBuf,
registry: &Registry,
) -> Result<()>
pub fn write_source_files( &self, install_dir: PathBuf, registry: &Registry, ) -> Result<()>
Output class definitions for registry
in separate source files.
Source files will be created in a subdirectory of install_dir
corresponding to the given
package name (if any, otherwise install_dir
it self).
Auto Trait Implementations§
impl<'a> Freeze for CodeGenerator<'a>
impl<'a> RefUnwindSafe for CodeGenerator<'a>
impl<'a> Send for CodeGenerator<'a>
impl<'a> Sync for CodeGenerator<'a>
impl<'a> Unpin for CodeGenerator<'a>
impl<'a> UnwindSafe for CodeGenerator<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more