pub struct ClassCatalog { /* private fields */ }Implementations§
Source§impl ClassCatalog
impl ClassCatalog
pub fn platform() -> Self
pub fn insert_internal_class(&mut self, internal_name: impl AsRef<str>)
pub fn mark_interface(&mut self, internal_name: impl AsRef<str>)
pub fn insert_parent(&mut self, owner: impl AsRef<str>, parent: impl AsRef<str>)
pub fn insert_field( &mut self, owner: impl AsRef<str>, name: impl AsRef<str>, descriptor: impl AsRef<str>, ty: Ty, access_flags: u16, )
pub fn insert_method( &mut self, owner: impl AsRef<str>, sig: MethodSig, access_flags: u16, is_interface: bool, )
pub fn contains_internal_class(&self, internal_name: &str) -> bool
pub fn contains_package(&self, package: &str) -> bool
pub fn resolve_import(&self, path: &str, is_wildcard: bool) -> bool
pub fn resolve_qualified_name(&self, name: &str) -> Option<&str>
pub fn resolve_java_lang(&self, simple_name: &str) -> Option<&str>
pub fn resolve_simple_name(&self, simple_name: &str) -> Option<&str>
pub fn is_interface(&self, internal_name: &str) -> bool
pub fn functional_interface_method( &self, internal_name: &str, ) -> Option<MethodRef>
pub fn resolve_static_field(&self, owner: &str, name: &str) -> Option<FieldRef>
pub fn resolve_instance_method( &self, receiver: &Ty, name: &str, args: &[Ty], ) -> Option<MethodRef>
pub fn resolve_static_method( &self, owner: &str, name: &str, args: &[Ty], ) -> Option<MethodRef>
pub fn resolve_constructor(&self, owner: &str, args: &[Ty]) -> Option<MethodRef>
Trait Implementations§
Source§impl Clone for ClassCatalog
impl Clone for ClassCatalog
Source§fn clone(&self) -> ClassCatalog
fn clone(&self) -> ClassCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClassCatalog
impl Debug for ClassCatalog
Source§impl Default for ClassCatalog
impl Default for ClassCatalog
Source§fn default() -> ClassCatalog
fn default() -> ClassCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClassCatalog
impl RefUnwindSafe for ClassCatalog
impl Send for ClassCatalog
impl Sync for ClassCatalog
impl Unpin for ClassCatalog
impl UnsafeUnpin for ClassCatalog
impl UnwindSafe for ClassCatalog
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