pub struct JavaParser { /* private fields */ }
Expand description
Java parser
Implementations§
Source§impl JavaParser
impl JavaParser
Sourcepub fn detect_language(path: &Path) -> Language
pub fn detect_language(path: &Path) -> Language
Get the language for a file based on its extension
Sourcepub fn parse(&mut self, context: &ParseContext) -> Result<ParseResult>
pub fn parse(&mut self, context: &ParseContext) -> Result<ParseResult>
Parse a Java file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JavaParser
impl RefUnwindSafe for JavaParser
impl Send for JavaParser
impl Sync for JavaParser
impl Unpin for JavaParser
impl UnwindSafe for JavaParser
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