org.jetbrains.kotlin.cli.common
Class CLICompiler<A extends CommonCompilerArguments>

java.lang.Object
  extended by org.jetbrains.kotlin.cli.common.CLICompiler<A>
Direct Known Subclasses:
K2JSCompiler

public abstract class CLICompiler<A extends CommonCompilerArguments>
extends java.lang.Object


Constructor Summary
CLICompiler()
           
 
Method Summary
protected abstract  A createArguments()
           
protected abstract  ExitCode doExecute(A arguments, Services services, MessageCollector messageCollector, com.intellij.openapi.Disposable rootDisposable)
           
static void doMain(CLICompiler compiler, java.lang.String[] args)
          Useful main for derived command line tools
static ExitCode doMainNoExit(CLICompiler compiler, java.lang.String[] args)
           
 ExitCode exec(MessageCollector messageCollector, Services services, A arguments)
           
 ExitCode exec(java.io.PrintStream errStream, java.lang.String... args)
           
 ExitCode execAndOutputXml(java.io.PrintStream errStream, Services services, java.lang.String... args)
           
 ExitCode execFullPathsInMessages(java.io.PrintStream errStream, java.lang.String[] args)
           
 void parseArguments(java.lang.String[] args, A arguments)
           
protected static void setupCommonArgumentsAndServices(CompilerConfiguration configuration, CommonCompilerArguments arguments, Services services)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLICompiler

public CLICompiler()
Method Detail

exec

@NotNull
public ExitCode exec(@NotNull
                             java.io.PrintStream errStream,
                             @NotNull
                             java.lang.String... args)

execAndOutputXml

@NotNull
public ExitCode execAndOutputXml(@NotNull
                                         java.io.PrintStream errStream,
                                         @NotNull
                                         Services services,
                                         @NotNull
                                         java.lang.String... args)

execFullPathsInMessages

@NotNull
public ExitCode execFullPathsInMessages(@NotNull
                                                java.io.PrintStream errStream,
                                                @NotNull
                                                java.lang.String[] args)

parseArguments

public void parseArguments(@NotNull
                           java.lang.String[] args,
                           @NotNull
                           A arguments)

createArguments

@NotNull
protected abstract A createArguments()

exec

@NotNull
public ExitCode exec(@NotNull
                             MessageCollector messageCollector,
                             @NotNull
                             Services services,
                             @NotNull
                             A arguments)

setupCommonArgumentsAndServices

protected static void setupCommonArgumentsAndServices(@NotNull
                                                      CompilerConfiguration configuration,
                                                      @NotNull
                                                      CommonCompilerArguments arguments,
                                                      @NotNull
                                                      Services services)

doExecute

@NotNull
protected abstract ExitCode doExecute(@NotNull
                                              A arguments,
                                              @NotNull
                                              Services services,
                                              @NotNull
                                              MessageCollector messageCollector,
                                              @NotNull
                                              com.intellij.openapi.Disposable rootDisposable)

doMain

public static void doMain(@NotNull
                          CLICompiler compiler,
                          @NotNull
                          java.lang.String[] args)
Useful main for derived command line tools


doMainNoExit

@NotNull
public static ExitCode doMainNoExit(@NotNull
                                            CLICompiler compiler,
                                            @NotNull
                                            java.lang.String[] args)