public class K2JVMCompilerArguments extends CompilerArguments
K2JVMCompiler
Modifier and Type | Field and Description |
---|---|
java.lang.String |
annotations |
boolean |
builtins |
java.lang.String |
classpath |
boolean |
help |
boolean |
includeRuntime |
java.lang.String |
jar |
java.lang.String |
kotlinHome |
java.lang.String |
module |
boolean |
noJdk |
boolean |
noJdkAnnotations |
boolean |
noStdlib |
boolean |
notNullAssertions |
boolean |
notNullParamAssertions |
java.lang.String |
outputDir |
boolean |
script |
java.lang.String |
src |
boolean |
tags |
boolean |
verbose |
boolean |
version |
freeArgs
Constructor and Description |
---|
K2JVMCompilerArguments() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClasspath() |
java.lang.String |
getJar() |
java.lang.String |
getKotlinHome() |
java.lang.String |
getModule() |
java.lang.String |
getOutputDir() |
java.util.List<java.lang.String> |
getSourceDirs() |
java.lang.String |
getSrc() |
boolean |
isHelp() |
boolean |
isIncludeRuntime() |
boolean |
isTags() |
boolean |
isVerbose() |
boolean |
isVersion() |
void |
setClasspath(java.lang.String classpath) |
void |
setHelp(boolean help) |
void |
setIncludeRuntime(boolean includeRuntime) |
void |
setJar(java.lang.String jar) |
void |
setKotlinHome(java.lang.String kotlinHome) |
void |
setModule(java.lang.String module) |
void |
setNoStdlib(boolean noStdlib) |
void |
setOutputDir(java.lang.String outputDir) |
void |
setSourceDirs(java.util.List<java.lang.String> sourceDirs) |
void |
setSrc(java.lang.String src) |
void |
setTags(boolean tags) |
getCompilerPlugins, setCompilerPlugins
@Argument(value="jar", description="jar file name") public java.lang.String jar
@Argument(value="src", description="source file or directory") public java.lang.String src
@Argument(value="classpath", description="classpath to use when compiling") public java.lang.String classpath
@Argument(value="annotations", description="paths to external annotations") public java.lang.String annotations
@Argument(value="includeRuntime", description="include Kotlin runtime in to resulting jar") public boolean includeRuntime
@Argument(value="noJdk", description="don\'t include Java runtime into classpath") public boolean noJdk
@Argument(value="noStdlib", description="don\'t include Kotlin runtime into classpath") public boolean noStdlib
@Argument(value="noJdkAnnotations", description="don\'t include JDK external annotations into classpath") public boolean noJdkAnnotations
@Argument(value="notNullAssertions", description="generate not-null assertion after each invokation of method returning not-null") public boolean notNullAssertions
@Argument(value="notNullParamAssertions", description="generate not-null assertions on parameters of methods accessible from Java") public boolean notNullParamAssertions
@Argument(value="builtins", description="compile builtin classes (internal)") public boolean builtins
@Argument(value="output", description="output directory") public java.lang.String outputDir
@Argument(value="module", description="module to compile") public java.lang.String module
@Argument(value="script", description="evaluate script") public boolean script
@Argument(value="tags", description="Demarcate each compilation message (error, warning, etc) with an open and close tag") public boolean tags
@Argument(value="verbose", description="Enable verbose logging output") public boolean verbose
@Argument(value="version", description="Display compiler version") public boolean version
@Argument(value="help", alias="h", description="show help") public boolean help
@Argument(value="kotlinHome", description="Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery") public java.lang.String kotlinHome
public K2JVMCompilerArguments()
public java.util.List<java.lang.String> getSourceDirs()
public void setSourceDirs(java.util.List<java.lang.String> sourceDirs)
public java.lang.String getKotlinHome()
public void setKotlinHome(java.lang.String kotlinHome)
public java.lang.String getClasspath()
public void setClasspath(java.lang.String classpath)
public boolean isHelp()
isHelp
in class CompilerArguments
public void setHelp(boolean help)
public boolean isIncludeRuntime()
public void setIncludeRuntime(boolean includeRuntime)
public java.lang.String getJar()
public void setJar(java.lang.String jar)
public java.lang.String getModule()
public void setModule(java.lang.String module)
public java.lang.String getOutputDir()
public void setOutputDir(java.lang.String outputDir)
public java.lang.String getSrc()
getSrc
in class CompilerArguments
public void setSrc(java.lang.String src)
public boolean isTags()
isTags
in class CompilerArguments
public boolean isVersion()
isVersion
in class CompilerArguments
public boolean isVerbose()
isVerbose
in class CompilerArguments
public void setTags(boolean tags)
public void setNoStdlib(boolean noStdlib)