pub struct Class<'el> {
pub modifiers: Vec<Modifier>,
pub fields: Vec<Field<'el>>,
pub constructors: Vec<Constructor<'el>>,
pub methods: Vec<Method<'el>>,
pub body: Tokens<'el, Java<'el>>,
pub extends: Option<Java<'el>>,
pub implements: Vec<Java<'el>>,
pub parameters: Tokens<'el, Java<'el>>,
/* private fields */
}
Expand description
Model for Java Classs.
Fields§
§modifiers: Vec<Modifier>
Class modifiers.
fields: Vec<Field<'el>>
Declared methods.
constructors: Vec<Constructor<'el>>
Declared methods.
methods: Vec<Method<'el>>
Declared methods.
body: Tokens<'el, Java<'el>>
Extra body (at the end of the class).
extends: Option<Java<'el>>
What this class extends.
implements: Vec<Java<'el>>
What this class implements.
parameters: Tokens<'el, Java<'el>>
Generic parameters.
Implementations§
Trait Implementations§
Source§impl<'el> IntoTokens<'el, Java<'el>> for Class<'el>
impl<'el> IntoTokens<'el, Java<'el>> for Class<'el>
Source§fn into_tokens(self) -> Tokens<'el, Java<'el>>
fn into_tokens(self) -> Tokens<'el, Java<'el>>
Convert the type into tokens.
Auto Trait Implementations§
impl<'el> Freeze for Class<'el>
impl<'el> RefUnwindSafe for Class<'el>
impl<'el> !Send for Class<'el>
impl<'el> !Sync for Class<'el>
impl<'el> Unpin for Class<'el>
impl<'el> UnwindSafe for Class<'el>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more