pub struct PoolClass {
pub name: String,
pub access: u32,
pub super_name: Option<String>,
pub interfaces: Vec<String>,
pub source_file: Option<String>,
pub static_fields: Vec<PoolField>,
pub instance_fields: Vec<PoolField>,
pub direct_methods: Vec<PoolMethod>,
pub virtual_methods: Vec<PoolMethod>,
pub static_values: Vec<StaticValue>,
pub nesting: ResolvedNesting,
pub dex_idx: usize,
}Expand description
A class materialized from one class_def_item (with ids resolved to
names and the class data expanded).
Fields§
§name: String§access: u32§super_name: Option<String>None for java/lang/Object roots.
interfaces: Vec<String>§source_file: Option<String>§static_fields: Vec<PoolField>§instance_fields: Vec<PoolField>§direct_methods: Vec<PoolMethod>§virtual_methods: Vec<PoolMethod>§static_values: Vec<StaticValue>Static initial values aligned with the head of static_fields.
nesting: ResolvedNestingNesting evidence with annotation ids resolved to names.
dex_idx: usizeWhich DEX image the class body lives in (provenance header).
Implementations§
Source§impl PoolClass
impl PoolClass
pub fn is_interface(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn is_synthetic(&self) -> bool
pub fn is_static_nested(&self) -> bool
Sourcepub fn all_methods(&self) -> impl Iterator<Item = &PoolMethod>
pub fn all_methods(&self) -> impl Iterator<Item = &PoolMethod>
All methods in declaration order.
Sourcepub fn find_method(&self, name: &str, desc: &str) -> Option<&PoolMethod>
pub fn find_method(&self, name: &str, desc: &str) -> Option<&PoolMethod>
Find a method by name + descriptor.
Sourcepub fn ctors_by_arity(&self, arity: usize) -> Vec<&PoolMethod>
pub fn ctors_by_arity(&self, arity: usize) -> Vec<&PoolMethod>
Constructors <init> matching arity descriptor arguments.
pub fn field_flags_of(&self, name: &str) -> Option<u32>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolClass
impl RefUnwindSafe for PoolClass
impl Send for PoolClass
impl Sync for PoolClass
impl Unpin for PoolClass
impl UnsafeUnpin for PoolClass
impl UnwindSafe for PoolClass
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