Skip to main content

ClassCatalog

Struct ClassCatalog 

Source
pub struct ClassCatalog { /* private fields */ }

Implementations§

Source§

impl ClassCatalog

Source

pub fn platform() -> Self

Source

pub fn insert_internal_class(&mut self, internal_name: impl AsRef<str>)

Source

pub fn mark_interface(&mut self, internal_name: impl AsRef<str>)

Source

pub fn insert_parent(&mut self, owner: impl AsRef<str>, parent: impl AsRef<str>)

Source

pub fn insert_field( &mut self, owner: impl AsRef<str>, name: impl AsRef<str>, descriptor: impl AsRef<str>, ty: Ty, access_flags: u16, )

Source

pub fn insert_method( &mut self, owner: impl AsRef<str>, sig: MethodSig, access_flags: u16, is_interface: bool, )

Source

pub fn contains_internal_class(&self, internal_name: &str) -> bool

Source

pub fn contains_package(&self, package: &str) -> bool

Source

pub fn resolve_import(&self, path: &str, is_wildcard: bool) -> bool

Source

pub fn resolve_qualified_name(&self, name: &str) -> Option<&str>

Source

pub fn resolve_java_lang(&self, simple_name: &str) -> Option<&str>

Source

pub fn resolve_simple_name(&self, simple_name: &str) -> Option<&str>

Source

pub fn is_interface(&self, internal_name: &str) -> bool

Source

pub fn functional_interface_method( &self, internal_name: &str, ) -> Option<MethodRef>

Source

pub fn resolve_static_field(&self, owner: &str, name: &str) -> Option<FieldRef>

Source

pub fn resolve_instance_method( &self, receiver: &Ty, name: &str, args: &[Ty], ) -> Option<MethodRef>

Source

pub fn resolve_static_method( &self, owner: &str, name: &str, args: &[Ty], ) -> Option<MethodRef>

Source

pub fn resolve_constructor(&self, owner: &str, args: &[Ty]) -> Option<MethodRef>

Trait Implementations§

Source§

impl Clone for ClassCatalog

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ClassCatalog

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ClassCatalog

Source§

fn default() -> ClassCatalog

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.