pub struct MethodDescriptor { /* private fields */ }Expand description
A parsed JVM method descriptor.
Implementations§
Source§impl MethodDescriptor
impl MethodDescriptor
Sourcepub fn parse(input: &str) -> Result<Self, DescriptorError>
pub fn parse(input: &str) -> Result<Self, DescriptorError>
Parses one complete JVM method descriptor.
For example, (I)Ljava/lang/String; describes a method that accepts an
integer and returns a string.
Sourcepub fn parameters(&self) -> &[TypeDescriptor]
pub fn parameters(&self) -> &[TypeDescriptor]
Returns parameter descriptors in declaration order.
Sourcepub const fn return_type(&self) -> &ReturnType
pub const fn return_type(&self) -> &ReturnType
Returns the method’s return descriptor.
Sourcepub fn parameter_slot_count(&self) -> u16
pub fn parameter_slot_count(&self) -> u16
Returns the combined JVM slot width of all parameters.
This does not include an instance method’s implicit this parameter.
Trait Implementations§
Source§impl Clone for MethodDescriptor
impl Clone for MethodDescriptor
Source§impl Debug for MethodDescriptor
impl Debug for MethodDescriptor
impl Eq for MethodDescriptor
Source§impl Hash for MethodDescriptor
impl Hash for MethodDescriptor
Source§impl PartialEq for MethodDescriptor
impl PartialEq for MethodDescriptor
impl StructuralPartialEq for MethodDescriptor
Auto Trait Implementations§
impl Forget for MethodDescriptor
impl Freeze for MethodDescriptor
impl Move for MethodDescriptor
impl RefUnwindSafe for MethodDescriptor
impl Send for MethodDescriptor
impl Sync for MethodDescriptor
impl Unpin for MethodDescriptor
impl UnsafeUnpin for MethodDescriptor
impl UnwindSafe for MethodDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.