Struct codeviz::java::MethodSpec
[−]
[src]
pub struct MethodSpec {
pub modifiers: Modifiers,
pub name: String,
pub annotations: Vec<AnnotationSpec>,
pub arguments: Vec<ArgumentSpec>,
pub returns: Option<Type>,
pub throws: Vec<ClassType>,
pub elements: Elements,
}Fields
modifiers: Modifiers
name: String
annotations: Vec<AnnotationSpec>
arguments: Vec<ArgumentSpec>
returns: Option<Type>
throws: Vec<ClassType>
elements: Elements
Methods
impl MethodSpec[src]
fn new(modifiers: Modifiers, name: &str) -> MethodSpec
fn push_annotation<A>(&mut self, annotation: A) where
A: Into<AnnotationSpec>,
A: Into<AnnotationSpec>,
fn push_argument<A>(&mut self, argument: A) where
A: Into<ArgumentSpec>,
A: Into<ArgumentSpec>,
fn returns<T>(&mut self, returns: T) where
T: Into<Type>,
T: Into<Type>,
fn throws<T>(&mut self, throws: T) where
T: Into<ClassType>,
T: Into<ClassType>,
fn push<E>(&mut self, element: E) where
E: Into<Element>,
E: Into<Element>,
Trait Implementations
impl Debug for MethodSpec[src]
impl Clone for MethodSpec[src]
fn clone(&self) -> MethodSpec
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more