Struct genco::java::Method
[−]
[src]
pub struct Method<'el> { pub modifiers: Vec<Modifier>, pub arguments: Vec<Argument<'el>>, pub body: Tokens<'el, Java<'el>>, pub returns: Java<'el>, // some fields omitted }
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.
Methods
impl<'el> Method<'el>
[src]
fn new<N>(name: N) -> Method<'el> where
N: Into<Cons<'el>>,
[src]
N: Into<Cons<'el>>,
Build a new empty constructor.
fn annotation<A>(&mut self, annotation: A) where
A: IntoTokens<'el, Java<'el>>,
[src]
A: IntoTokens<'el, Java<'el>>,
Push an annotation.
fn name(&self) -> Cons<'el>
[src]
Name of method.
Trait Implementations
impl<'el> Debug for Method<'el>
[src]
impl<'el> Clone for Method<'el>
[src]
fn clone(&self) -> Method<'el>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'el> IntoTokens<'el, Java<'el>> for Method<'el>
[src]
fn into_tokens(self) -> Tokens<'el, Java<'el>>
[src]
Convert the type into tokens.