pub struct JvmProgramBuilder { /* private fields */ }Expand description
JVM 程序构建器
Implementations§
Source§impl JvmProgramBuilder
impl JvmProgramBuilder
pub fn new(name: impl Into<String>) -> Self
pub fn with_version(self, major: u16, minor: u16) -> Self
pub fn with_access_flags(self, flags: JvmAccessFlags) -> Self
pub fn with_public(self) -> Self
pub fn with_super_class(self, super_class: impl Into<String>) -> Self
pub fn add_interface(self, interface: impl Into<String>) -> Self
pub fn with_source_file(self, source_file: impl Into<String>) -> Self
pub fn add_method<F>( self, name: impl Into<String>, descriptor: impl Into<String>, f: F, ) -> Self
pub fn build(self) -> JvmProgram
Auto Trait Implementations§
impl Freeze for JvmProgramBuilder
impl RefUnwindSafe for JvmProgramBuilder
impl Send for JvmProgramBuilder
impl Sync for JvmProgramBuilder
impl Unpin for JvmProgramBuilder
impl UnwindSafe for JvmProgramBuilder
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