pub struct JvmMethodBuilder { /* private fields */ }Expand description
JVM 方法构建器
Implementations§
Source§impl JvmMethodBuilder
impl JvmMethodBuilder
pub fn new(name: String, descriptor: String) -> Self
pub fn with_public(self) -> Self
pub fn with_private(self) -> Self
pub fn with_protected(self) -> Self
pub fn with_static(self) -> Self
pub fn with_final(self) -> Self
pub fn with_synchronized(self) -> Self
pub fn with_max_stack(self, max_stack: u16) -> Self
pub fn with_max_locals(self, max_locals: u16) -> Self
pub fn add_instruction(self, instruction: JvmInstruction) -> Self
pub fn add_exception_handler(self, handler: JvmExceptionHandler) -> Self
pub fn add_exception(self, exception: impl Into<String>) -> Self
pub fn nop(self) -> Self
pub fn aconst_null(self) -> Self
pub fn iconst_m1(self) -> Self
pub fn iconst_0(self) -> Self
pub fn iconst_1(self) -> Self
pub fn iconst_2(self) -> Self
pub fn iconst_3(self) -> Self
pub fn iconst_4(self) -> Self
pub fn iconst_5(self) -> Self
pub fn lconst_0(self) -> Self
pub fn lconst_1(self) -> Self
pub fn fconst_0(self) -> Self
pub fn fconst_1(self) -> Self
pub fn fconst_2(self) -> Self
pub fn dconst_0(self) -> Self
pub fn dconst_1(self) -> Self
pub fn bipush(self, value: i8) -> Self
pub fn sipush(self, value: i16) -> Self
pub fn ldc(self, symbol: impl Into<String>) -> Self
pub fn iload(self, index: u16) -> Self
pub fn lload(self, index: u16) -> Self
pub fn fload(self, index: u16) -> Self
pub fn dload(self, index: u16) -> Self
pub fn aload(self, index: u16) -> Self
pub fn iload_0(self) -> Self
pub fn iload_1(self) -> Self
pub fn iload_2(self) -> Self
pub fn iload_3(self) -> Self
pub fn lload_0(self) -> Self
pub fn lload_1(self) -> Self
pub fn lload_2(self) -> Self
pub fn lload_3(self) -> Self
pub fn fload_0(self) -> Self
pub fn fload_1(self) -> Self
pub fn fload_2(self) -> Self
pub fn fload_3(self) -> Self
pub fn dload_0(self) -> Self
pub fn dload_1(self) -> Self
pub fn dload_2(self) -> Self
pub fn dload_3(self) -> Self
pub fn aload_0(self) -> Self
pub fn aload_1(self) -> Self
pub fn aload_2(self) -> Self
pub fn aload_3(self) -> Self
pub fn istore(self, index: u16) -> Self
pub fn lstore(self, index: u16) -> Self
pub fn fstore(self, index: u16) -> Self
pub fn dstore(self, index: u16) -> Self
pub fn astore(self, index: u16) -> Self
pub fn istore_0(self) -> Self
pub fn istore_1(self) -> Self
pub fn istore_2(self) -> Self
pub fn istore_3(self) -> Self
pub fn lstore_0(self) -> Self
pub fn lstore_1(self) -> Self
pub fn lstore_2(self) -> Self
pub fn lstore_3(self) -> Self
pub fn fstore_0(self) -> Self
pub fn fstore_1(self) -> Self
pub fn fstore_2(self) -> Self
pub fn fstore_3(self) -> Self
pub fn dstore_0(self) -> Self
pub fn dstore_1(self) -> Self
pub fn dstore_2(self) -> Self
pub fn dstore_3(self) -> Self
pub fn astore_0(self) -> Self
pub fn astore_1(self) -> Self
pub fn astore_2(self) -> Self
pub fn astore_3(self) -> Self
pub fn iadd(self) -> Self
pub fn ladd(self) -> Self
pub fn fadd(self) -> Self
pub fn dadd(self) -> Self
pub fn isub(self) -> Self
pub fn lsub(self) -> Self
pub fn fsub(self) -> Self
pub fn dsub(self) -> Self
pub fn imul(self) -> Self
pub fn lmul(self) -> Self
pub fn fmul(self) -> Self
pub fn dmul(self) -> Self
pub fn idiv(self) -> Self
pub fn ldiv(self) -> Self
pub fn fdiv(self) -> Self
pub fn ddiv(self) -> Self
pub fn irem(self) -> Self
pub fn lrem(self) -> Self
pub fn frem(self) -> Self
pub fn drem(self) -> Self
pub fn ineg(self) -> Self
pub fn lneg(self) -> Self
pub fn fneg(self) -> Self
pub fn dneg(self) -> Self
pub fn ishl(self) -> Self
pub fn lshl(self) -> Self
pub fn ishr(self) -> Self
pub fn lshr(self) -> Self
pub fn iushr(self) -> Self
pub fn lushr(self) -> Self
pub fn iand(self) -> Self
pub fn land(self) -> Self
pub fn ior(self) -> Self
pub fn lor(self) -> Self
pub fn ixor(self) -> Self
pub fn lxor(self) -> Self
pub fn lcmp(self) -> Self
pub fn fcmpl(self) -> Self
pub fn fcmpg(self) -> Self
pub fn dcmpl(self) -> Self
pub fn dcmpg(self) -> Self
pub fn iinc(self, index: u16, increment: i16) -> Self
pub fn getstatic( self, class: impl Into<String>, name: impl Into<String>, desc: impl Into<String>, ) -> Self
pub fn putstatic( self, class: impl Into<String>, name: impl Into<String>, desc: impl Into<String>, ) -> Self
pub fn getfield( self, class: impl Into<String>, name: impl Into<String>, desc: impl Into<String>, ) -> Self
pub fn putfield( self, class: impl Into<String>, name: impl Into<String>, desc: impl Into<String>, ) -> Self
pub fn invokevirtual( self, class: impl Into<String>, name: impl Into<String>, desc: impl Into<String>, ) -> Self
pub fn invokespecial( self, class: impl Into<String>, name: impl Into<String>, desc: impl Into<String>, ) -> Self
pub fn invokestatic( self, class: impl Into<String>, name: impl Into<String>, desc: impl Into<String>, ) -> Self
pub fn invokeinterface( self, class: impl Into<String>, name: impl Into<String>, desc: impl Into<String>, ) -> Self
pub fn new_instance(self, class: impl Into<String>) -> Self
pub fn dup(self) -> Self
pub fn dup_x1(self) -> Self
pub fn dup_x2(self) -> Self
pub fn dup2(self) -> Self
pub fn dup2_x1(self) -> Self
pub fn dup2_x2(self) -> Self
pub fn swap(self) -> Self
pub fn pop(self) -> Self
pub fn pop2(self) -> Self
pub fn return_void(self) -> Self
pub fn ireturn(self) -> Self
pub fn lreturn(self) -> Self
pub fn freturn(self) -> Self
pub fn dreturn(self) -> Self
pub fn areturn(self) -> Self
pub fn label(self, name: impl Into<String>) -> Self
pub fn goto(self, target: impl Into<String>) -> Self
pub fn ifeq(self, target: impl Into<String>) -> Self
pub fn ifne(self, target: impl Into<String>) -> Self
pub fn build(self) -> JvmMethod
Auto Trait Implementations§
impl Freeze for JvmMethodBuilder
impl RefUnwindSafe for JvmMethodBuilder
impl Send for JvmMethodBuilder
impl Sync for JvmMethodBuilder
impl Unpin for JvmMethodBuilder
impl UnsafeUnpin for JvmMethodBuilder
impl UnwindSafe for JvmMethodBuilder
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