pub struct Method {
pub flags: Flags,
pub name: String,
pub deprecated: bool,
/* private fields */
}
Expand description
Java SE 7 § 4.6: method_info, minus the trailing attributes
Fields§
§flags: Flags
§name: String
§deprecated: bool
Implementations§
Source§impl Method
impl Method
pub fn new(flags: Flags, name: String, descriptor: String) -> Result<Self>
pub fn descriptor_str(&self) -> &str
pub fn descriptor(&self) -> Descriptor<'_>
pub fn is_public(&self) -> bool
pub fn is_private(&self) -> bool
pub fn is_protected(&self) -> bool
pub fn is_static(&self) -> bool
pub fn is_final(&self) -> bool
pub fn is_syncronized(&self) -> bool
pub fn is_bridge(&self) -> bool
pub fn is_varargs(&self) -> bool
pub fn is_native(&self) -> bool
pub fn is_abstract(&self) -> bool
pub fn is_strict(&self) -> bool
pub fn is_synthetic(&self) -> bool
pub fn is_constructor(&self) -> bool
pub fn is_static_init(&self) -> bool
pub fn access(&self) -> Option<&'static str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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