pub struct Method<'el> {
pub modifiers: Vec<Modifier>,
pub arguments: Vec<Argument<'el>>,
pub body: Tokens<'el, Java<'el>>,
pub returns: Java<'el>,
pub parameters: Tokens<'el, Java<'el>>,
pub comments: Vec<Cons<'el>>,
pub throws: Option<Tokens<'el, Java<'el>>>,
/* private fields */
}
Expand description
Model for Java Methods.
Fields§
§modifiers: Vec<Modifier>
Method modifiers.
arguments: Vec<Argument<'el>>
Arguments for the constructor.
body: Tokens<'el, Java<'el>>
Body of the constructor.
returns: Java<'el>
Return type.
parameters: Tokens<'el, Java<'el>>
Generic parameters.
comments: Vec<Cons<'el>>
Comments associated with this method.
throws: Option<Tokens<'el, Java<'el>>>
Exception thrown by the method.
Implementations§
Trait Implementations§
Source§impl<'el> IntoTokens<'el, Java<'el>> for Method<'el>
impl<'el> IntoTokens<'el, Java<'el>> for Method<'el>
Source§fn into_tokens(self) -> Tokens<'el, Java<'el>>
fn into_tokens(self) -> Tokens<'el, Java<'el>>
Convert the type into tokens.
Auto Trait Implementations§
impl<'el> Freeze for Method<'el>
impl<'el> RefUnwindSafe for Method<'el>
impl<'el> !Send for Method<'el>
impl<'el> !Sync for Method<'el>
impl<'el> Unpin for Method<'el>
impl<'el> UnwindSafe for Method<'el>
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