pub struct MethodEnv<'a> {
pub pool: &'a DexPool,
pub di: usize,
pub dex: &'a DexFile,
pub code: &'a CodeItem,
pub class_name: String,
pub method_name: Arc<str>,
pub desc: MethodDescriptor,
pub debug_locals: Vec<DebugLocal>,
pub is_static: bool,
pub code_units: u32,
}Expand description
Everything one method body needs from its DEX image.
Fields§
§pool: &'a DexPool§di: usizeImage index of dex in the pool (keys the pool’s ref caches).
dex: &'a DexFile§code: &'a CodeItem§class_name: String§method_name: Arc<str>§desc: MethodDescriptor§debug_locals: Vec<DebugLocal>Debug-info local table (empty for release/stripped builds): real source names per (register, pc-range).
is_static: bool§code_units: u32Total code units — the CFG owns the insns stream, so the lifter reads
the extent from here instead of code.insns (hollowed after the
CFG build moved it).
Implementations§
Source§impl<'a> MethodEnv<'a>
impl<'a> MethodEnv<'a>
pub fn type_name(&self, idx: u32) -> String
pub fn java_type(&self, idx: u32) -> JavaType
pub fn type_name_arc(&self, idx: u32) -> Arc<str> ⓘ
pub fn field_ref(&self, idx: u32) -> (Arc<str>, Arc<str>, JavaType)
pub fn method_ref( &self, idx: u32, ) -> (Arc<str>, Arc<str>, Arc<MethodDescriptor>)
Auto Trait Implementations§
impl<'a> Freeze for MethodEnv<'a>
impl<'a> RefUnwindSafe for MethodEnv<'a>
impl<'a> Send for MethodEnv<'a>
impl<'a> Sync for MethodEnv<'a>
impl<'a> Unpin for MethodEnv<'a>
impl<'a> UnsafeUnpin for MethodEnv<'a>
impl<'a> UnwindSafe for MethodEnv<'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