JavaPreprocessor

scala.build.preprocessing.JavaPreprocessor
final case class JavaPreprocessor(archiveCache: ArchiveCache[Task], javaClassNameVersionOpt: Option[String], javaCommand: () => String) extends Preprocessor

Java source preprocessor.

Doesn't modify Java sources. This only extracts using directives from them, and for unnamed sources (like stdin), tries to infer a class name from the sources themselves.

Value parameters

archiveCache

when using a java-class-name external binary to infer a class name (see JavaParserProxy), a cache to download that binary with

javaClassNameVersionOpt

when using a java-class-name external binary to infer a class name (see JavaParserProxy), this forces the java-class-name version to download

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Preprocessor
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def preprocess(input: SingleElement, logger: Logger, maybeRecoverOnError: BuildException => Option[BuildException], allowRestrictedFeatures: Boolean, suppressWarningOptions: SuppressWarningOptions)(using ScalaCliInvokeData): Option[Either[BuildException, Seq[PreprocessedSource]]]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product