JavaParserProxy
trait JavaParserProxy
Helper to get class names from Java sources
See JavaParserProxyJvm for the implementation that runs things in memory using java-class-name from the class path, and JavaParserProxyBinary for the implementation that downloads and runs a java-class-name binary.
Value members
Abstract methods
Extracts the class name of a Java source, using the dotty Java parser.
Extracts the class name of a Java source, using the dotty Java parser.
- Value parameters:
- content
the Java source to extract a class name from
- Returns:
either some class name (if one was found) or none (if none was found), or a BuildException