JavaParserProxy

scala.build.internal.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.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def className(content: Array[Byte]): Either[BuildException, Option[String]]

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

Attributes

Returns

either some class name (if one was found) or none (if none was found), or a BuildException