Function parse_file

Source
pub fn parse_file<P: AsRef<Path>>(path: P) -> Result<JavaClass, Error>
Expand description

Parses the contents of a file into a java class

§Error

Will return an error if the file does not exist, or the contents of the file doesn’t resolve to a valid java class.

This is a wrapper over the JavaClassParser::parse_file method.