JavaParserProxyJvm

scala.build.internal.JavaParserProxyJvm

A JavaParserProxy that relies on java-class-name in the class path, rather than downloading it and running it as an external binary.

Should be used from Scala CLI when it's run on the JVM.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override 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

Definition Classes