pub struct JavaClassGenerator { /* private fields */ }
Expand description
Complete Java class file generator
Implementations§
Source§impl JavaClassGenerator
impl JavaClassGenerator
pub fn new(class_name: String) -> Self
Sourcepub fn generate_dice_class(
&mut self,
expression: &str,
) -> Result<Vec<u8>, Box<dyn Error>>
pub fn generate_dice_class( &mut self, expression: &str, ) -> Result<Vec<u8>, Box<dyn Error>>
Generate Java class file from Dice expression
Sourcepub fn generate_dice_instructions(
&mut self,
expression: &str,
) -> Result<Vec<JvmInstruction>, Box<dyn Error>>
pub fn generate_dice_instructions( &mut self, expression: &str, ) -> Result<Vec<JvmInstruction>, Box<dyn Error>>
Generate JVM instruction sequence from Dice expression (for VM execution)
pub fn constant_pool(&self) -> &ConstantPool
Auto Trait Implementations§
impl Freeze for JavaClassGenerator
impl RefUnwindSafe for JavaClassGenerator
impl Send for JavaClassGenerator
impl Sync for JavaClassGenerator
impl Unpin for JavaClassGenerator
impl UnwindSafe for JavaClassGenerator
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