org.jetbrains.jet.cli.js
Class K2JSCompilerArguments

java.lang.Object
  extended by org.jetbrains.jet.cli.common.CompilerArguments
      extended by org.jetbrains.jet.cli.js.K2JSCompilerArguments

public class K2JSCompilerArguments
extends CompilerArguments

NOTE: for now K2JSCompiler supports only minimal amount of parameters required to launch it from the plugin. You can specify path to the file where generated file will be stored, path to zipped library sources.


Field Summary
 boolean help
           
 java.lang.String[] libraryFiles
           
 java.lang.String main
           
 java.lang.String outputFile
           
 java.lang.String[] sourceFiles
           
 boolean tags
           
 java.lang.String target
           
 boolean verbose
           
 boolean version
           
 
Fields inherited from class org.jetbrains.jet.cli.common.CompilerArguments
freeArgs
 
Constructor Summary
K2JSCompilerArguments()
           
 
Method Summary
 MainCallParameters createMainCallParameters()
           
 java.lang.String getSrc()
           
 boolean isHelp()
           
 boolean isTags()
           
 boolean isVerbose()
           
 boolean isVersion()
           
 
Methods inherited from class org.jetbrains.jet.cli.common.CompilerArguments
getCompilerPlugins, setCompilerPlugins
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputFile

@Argument(value="output",
          description="Output file path")
public java.lang.String outputFile

libraryFiles

@Argument(value="libraryFiles",
          description="Path to zipped lib sources or kotlin files")
public java.lang.String[] libraryFiles

sourceFiles

@Argument(value="sourceFiles",
          description="Source files (dir or file)")
public java.lang.String[] sourceFiles

target

@Argument(value="target",
          description="Generate js files for specific ECMA version (3 or 5, default ECMA 3)")
public java.lang.String target

tags

@Argument(value="tags",
          description="Demarcate each compilation message (error, warning, etc) with an open and close tag")
public boolean tags

verbose

@Argument(value="verbose",
          description="Enable verbose logging output")
public boolean verbose

version

@Argument(value="version",
          description="Display compiler version")
public boolean version

main

@Nullable
@Argument(value="main",
          description="Whether a main function should be called; either \'call\' or \'noCall\', default \'call\' (main function will be auto detected)")
public java.lang.String main

help

@Argument(value="help",
          alias="h",
          description="Show help")
public boolean help
Constructor Detail

K2JSCompilerArguments

public K2JSCompilerArguments()
Method Detail

isHelp

public boolean isHelp()
Specified by:
isHelp in class CompilerArguments

isTags

public boolean isTags()
Specified by:
isTags in class CompilerArguments

isVersion

public boolean isVersion()
Specified by:
isVersion in class CompilerArguments

isVerbose

public boolean isVerbose()
Specified by:
isVerbose in class CompilerArguments

getSrc

public java.lang.String getSrc()
Specified by:
getSrc in class CompilerArguments

createMainCallParameters

public MainCallParameters createMainCallParameters()