public interface Scalafix
classloadInstance(ClassLoader).| Modifier and Type | Method and Description |
|---|---|
static Scalafix |
classloadInstance(java.lang.ClassLoader classLoader)
JVM runtime reflection method helper to classload an instance of
Scalafix. |
java.lang.String |
mainHelp(int screenWidth)
Get --help message for running the Scalafix command-line interface.
|
ScalafixMainArgs |
newMainArgs() |
java.lang.String |
scala211()
The most recent Scala 2.11 version in
supportedScalaVersions() |
java.lang.String |
scala212()
The most recent Scala 2.12 version in
supportedScalaVersions() |
java.lang.String |
scalafixVersion()
The release version of the current Scalafix API instance.
|
java.lang.String |
scalametaVersion()
The recommended Scalameta version to match the current Scalafix API instance.
|
java.lang.String[] |
supportedScalaVersions()
The exact Scala versions that are supported by the recommended
scalametaVersion() |
ScalafixMainArgs newMainArgs()
ScalafixMainArgs that can be later passed to #runMain(ScalafixMainArgs) .java.lang.String mainHelp(int screenWidth)
screenWidth - The width of the screen, used for wrapping long sentences
into multiple lines.java.lang.String scalafixVersion()
java.lang.String scalametaVersion()
java.lang.String[] supportedScalaVersions()
scalametaVersion()java.lang.String scala211()
supportedScalaVersions()java.lang.String scala212()
supportedScalaVersions()static Scalafix classloadInstance(java.lang.ClassLoader classLoader) throws ScalafixException
Scalafix.classLoader - Classloader containing the full Scalafix classpath, including the scalafix-cli module.Scalafix interface.ScalafixException - in case of errors during classloading, most likely caused
by an incorrect classloader argument.