Struct interpreter::object::builtins::Class
source · #[repr(C)]pub struct Class { /* private fields */ }
Implementations§
source§impl Class
impl Class
pub fn new( object: Object, name: String, class_file: ClassFile, layout: ClassFileLayout ) -> Self
pub fn new_primitive( object: Object, name: String, layout: ClassFileLayout ) -> Self
pub fn new_array( object: Object, ty_name: String, ty: ArrayType, layout: ClassFileLayout ) -> Self
pub fn instance_layout(&self) -> &ClassFileLayout
pub fn static_field_info(&self, field: NameAndDescriptor) -> Option<&FieldInfo>
pub fn static_field_info_mut( &mut self, field: NameAndDescriptor ) -> Option<&mut FieldInfo>
pub fn native_methods(&self) -> &HashMap<NameAndDescriptor, NativeFunction>
pub fn native_methods_mut( &mut self ) -> &mut HashMap<NameAndDescriptor, NativeFunction>
pub fn class_file(&self) -> &ClassFile
pub fn name(&self) -> &String
pub fn is_initialised(&self) -> bool
pub fn set_initialised(&mut self, value: bool)
pub fn is_assignable_to(&self, _other: &Class) -> bool
pub fn flags(&self) -> ClassFileAccessFlags
pub fn is_interface(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_primitive(&self) -> bool
pub fn super_class(&self) -> RefTo<Class>
pub fn component_type(&self) -> Option<ArrayType>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Class
impl !Send for Class
impl !Sync for Class
impl Unpin for Class
impl !UnwindSafe for Class
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