pub struct JavaMethod {
pub name: String,
pub return_type: JavaType,
pub params: Vec<(String, JavaType)>,
pub body: Vec<JavaStmt>,
pub visibility: Visibility,
pub is_static: bool,
pub is_final: bool,
pub is_abstract: bool,
pub annotations: Vec<String>,
pub throws: Vec<String>,
}Expand description
A Java method definition.
Fields§
§name: String§return_type: JavaType§params: Vec<(String, JavaType)>§body: Vec<JavaStmt>§visibility: Visibility§is_static: bool§is_final: bool§is_abstract: bool§annotations: Vec<String>§throws: Vec<String>Checked exceptions declared in throws
Implementations§
Trait Implementations§
Source§impl Clone for JavaMethod
impl Clone for JavaMethod
Source§fn clone(&self) -> JavaMethod
fn clone(&self) -> JavaMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JavaMethod
impl RefUnwindSafe for JavaMethod
impl Send for JavaMethod
impl Sync for JavaMethod
impl Unpin for JavaMethod
impl UnsafeUnpin for JavaMethod
impl UnwindSafe for JavaMethod
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