pub struct ClassDefinitionImpl { /* private fields */ }Implementations§
Source§impl ClassDefinitionImpl
impl ClassDefinitionImpl
pub fn new( name: &str, super_class_name: Option<String>, interfaces: Vec<String>, access_flags: ClassAccessFlags, methods: Vec<MethodImpl>, fields: Vec<FieldImpl>, ) -> Self
pub fn from_class_proto<C, Context>( proto: JavaClassProto<C>, context: Context, ) -> Self
pub fn from_classfile(data: &[u8]) -> Result<Self, ClassDefinitionError>
pub fn fields(&self) -> &[FieldImpl]
Trait Implementations§
Source§impl ClassDefinition for ClassDefinitionImpl
impl ClassDefinition for ClassDefinitionImpl
fn name(&self) -> Cow<'_, str>
fn super_class_name(&self) -> Option<String>
fn interface_names(&self) -> Vec<String>
fn access_flags(&self) -> ClassAccessFlags
fn instantiate<'life0, 'life1, 'async_trait>(
&'life0 self,
_: &'life1 Jvm,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ClassInstance>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn prepare<'life0, 'life1, 'async_trait>(
&'life0 self,
jvm: &'life1 Jvm,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn method( &self, name: &str, descriptor: &str, is_static: bool, ) -> Option<Box<dyn Method>>
fn field( &self, name: &str, descriptor: &str, is_static: bool, ) -> Option<Box<dyn Field>>
fn fields(&self) -> Vec<Box<dyn Field>>
fn get_static_field(&self, field: &dyn Field) -> Result<JavaValue>
fn put_static_field( &mut self, field: &dyn Field, value: JavaValue, ) -> Result<()>
fn as_array_class_definition(&self) -> Option<&dyn ArrayClassDefinition>
Source§impl Clone for ClassDefinitionImpl
impl Clone for ClassDefinitionImpl
Auto Trait Implementations§
impl !RefUnwindSafe for ClassDefinitionImpl
impl !UnwindSafe for ClassDefinitionImpl
impl Freeze for ClassDefinitionImpl
impl Send for ClassDefinitionImpl
impl Sync for ClassDefinitionImpl
impl Unpin for ClassDefinitionImpl
impl UnsafeUnpin for ClassDefinitionImpl
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