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[src]
fn push_annotation<A>(&mut self, annotation: A) where
A: Into<AnnotationSpec>, [src]
A: Into<AnnotationSpec>,
fn push_argument<A>(&mut self, argument: A) where
A: Into<ArgumentSpec>, [src]
A: Into<ArgumentSpec>,
fn returns<T>(&mut self, returns: T) where
T: Into<Type>, [src]
T: Into<Type>,
fn throws<T>(&mut self, throws: T) where
T: Into<ClassType>, [src]
T: Into<ClassType>,
fn push<E>(&mut self, element: E) where
E: Into<Element>, [src]
E: Into<Element>,
Trait Implementations
impl Debug for MethodSpec[src]
impl Clone for MethodSpec[src]
fn clone(&self) -> MethodSpec[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