Struct genco::java::Interface
[−]
[src]
pub struct Interface<'el> { pub modifiers: Vec<Modifier>, pub methods: Vec<Method<'el>>, pub body: Tokens<'el, Java<'el>>, pub extends: Vec<Tokens<'el, Java<'el>>>, // some fields omitted }
Model for Java Interfaces.
Fields
modifiers: Vec<Modifier>
Interface modifiers.
methods: Vec<Method<'el>>
Declared methods.
body: Tokens<'el, Java<'el>>
Extra body (added to end of interface).
extends: Vec<Tokens<'el, Java<'el>>>
What this interface extends.
Methods
impl<'el> Interface<'el>
[src]
fn new<N>(name: N) -> Interface<'el> where
N: Into<Cons<'el>>,
[src]
N: Into<Cons<'el>>,
Build a new empty interface.
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 interface.
Trait Implementations
impl<'el> Debug for Interface<'el>
[src]
impl<'el> Clone for Interface<'el>
[src]
fn clone(&self) -> Interface<'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 Interface<'el>
[src]
fn into_tokens(self) -> Tokens<'el, Java<'el>>
[src]
Convert the type into tokens.