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>,
    pub parameters: Tokens<'el, Java<'el>>,
    pub comments: Vec<Cons<'el>>,
    pub throws: Option<Tokens<'el, Java<'el>>>,
    // some fields omitted
}

Model for Java Methods.

Fields

Method modifiers.

Arguments for the constructor.

Body of the constructor.

Return type.

Generic parameters.

Comments associated with this method.

Exception thrown by the method.

Methods

impl<'el> Method<'el>
[src]

Build a new empty constructor.

Push an annotation.

Name of method.

Trait Implementations

impl<'el> Debug for Method<'el>
[src]

Formats the value using the given formatter. Read more

impl<'el> Clone for Method<'el>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'el> From<Method<'el>> for Tokens<'el, Java<'el>>
[src]

Performs the conversion.

impl<'el> IntoTokens<'el, Java<'el>> for Method<'el>
[src]

Convert the type into tokens.

Auto Trait Implementations

impl<'el> !Send for Method<'el>

impl<'el> !Sync for Method<'el>