pub struct JavaCodeGenerator {
pub version: String,
pub package: Option<String>,
}Fields§
§version: String§package: Option<String>Java package for document-specific output (<package>/<Type>.java,
<package>/<Stem>Workflow.java, <package>/<Tree>Handlers.java).
None derives it from info.domain (falling back to
etdl.generated when that doesn’t yield a usable package name).
The fixed etdl.runtime package is never affected by this field.
Implementations§
Trait Implementations§
Source§impl CodeGenerator for JavaCodeGenerator
impl CodeGenerator for JavaCodeGenerator
Source§fn target_name(&self) -> &'static str
fn target_name(&self) -> &'static str
Short, stable identifier used on the CLI (
--target <name>) and in
the target registry (etdl-cli’s TargetRegistry). Lowercase,
matches the --target value exactly (e.g. "rust", "java").Source§fn generate_all(
&self,
doc: &EtlDocument,
fault_tree_probs: &BTreeMap<String, f64>,
registry: &AsyncApiRegistry,
stem: &str,
_diagnostics: &mut Vec<Diagnostic>,
) -> Result<Vec<GeneratedFile>, String>
fn generate_all( &self, doc: &EtlDocument, fault_tree_probs: &BTreeMap<String, f64>, registry: &AsyncApiRegistry, stem: &str, _diagnostics: &mut Vec<Diagnostic>, ) -> Result<Vec<GeneratedFile>, String>
Generate this target’s output for
doc. stem is the input
document’s filename without extension (what today’s Rust target
already names its single output file after); other targets may use
it as a package/module root name instead of a literal filename.Auto Trait Implementations§
impl Freeze for JavaCodeGenerator
impl RefUnwindSafe for JavaCodeGenerator
impl Send for JavaCodeGenerator
impl Sync for JavaCodeGenerator
impl Unpin for JavaCodeGenerator
impl UnsafeUnpin for JavaCodeGenerator
impl UnwindSafe for JavaCodeGenerator
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