Struct genco::java::Constructor [−][src]
pub struct Constructor<'el> { pub modifiers: Vec<Modifier>, pub arguments: Vec<Argument<'el>>, pub body: Tokens<'el, Java<'el>>, pub throws: Option<Tokens<'el, Java<'el>>>, // some fields omitted }
Model for Java Constructors.
Fields
modifiers: Vec<Modifier>
Constructor modifiers.
arguments: Vec<Argument<'el>>
Arguments for the constructor.
body: Tokens<'el, Java<'el>>
Body of the constructor.
throws: Option<Tokens<'el, Java<'el>>>
Exception thrown by the constructor.
Methods
impl<'el> Constructor<'el>
[src]
impl<'el> Constructor<'el>
pub fn new() -> Constructor<'el>
[src]
pub fn new() -> Constructor<'el>
Build a new empty constructor.
pub fn annotation<A>(&mut self, annotation: A) where
A: IntoTokens<'el, Java<'el>>,
[src]
pub fn annotation<A>(&mut self, annotation: A) where
A: IntoTokens<'el, Java<'el>>,
Push an annotation.
Trait Implementations
impl<'el> Debug for Constructor<'el>
[src]
impl<'el> Debug for Constructor<'el>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'el> Clone for Constructor<'el>
[src]
impl<'el> Clone for Constructor<'el>
fn clone(&self) -> Constructor<'el>
[src]
fn clone(&self) -> Constructor<'el>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'el> !Send for Constructor<'el>
impl<'el> !Send for Constructor<'el>
impl<'el> !Sync for Constructor<'el>
impl<'el> !Sync for Constructor<'el>