org.jetbrains.kotlin.js.config
Class Config

java.lang.Object
  extended by org.jetbrains.kotlin.js.config.Config
Direct Known Subclasses:
LibrarySourcesConfig

public abstract class Config
extends java.lang.Object

Base class representing a configuration of translator.


Constructor Summary
Config(com.intellij.openapi.project.Project project, java.lang.String moduleId, EcmaVersion ecmaVersion, boolean sourcemap, boolean inlineEnabled)
           
 
Method Summary
abstract  boolean checkLibFilesAndReportErrors(kotlin.Function1<java.lang.String,kotlin.Unit> report)
           
protected abstract  java.util.List<JetFile> generateLibFiles()
           
 java.util.List<JetFile> getLibFiles()
           
 BindingContext getLibraryContext()
           
 ModuleDescriptor getLibraryModule()
           
 java.lang.String getModuleId()
           
 com.intellij.openapi.project.Project getProject()
           
 EcmaVersion getTarget()
           
 boolean isInlineEnabled()
           
 boolean isSourcemap()
           
 boolean isTestConfig()
           
static java.util.Collection<JetFile> withJsLibAdded(java.util.Collection<JetFile> files, Config config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Config

public Config(@NotNull
              com.intellij.openapi.project.Project project,
              @NotNull
              java.lang.String moduleId,
              @NotNull
              EcmaVersion ecmaVersion,
              boolean sourcemap,
              boolean inlineEnabled)
Method Detail

isSourcemap

public boolean isSourcemap()

isInlineEnabled

public boolean isInlineEnabled()

getProject

@NotNull
public com.intellij.openapi.project.Project getProject()

getTarget

@NotNull
public EcmaVersion getTarget()

getModuleId

@NotNull
public java.lang.String getModuleId()

checkLibFilesAndReportErrors

public abstract boolean checkLibFilesAndReportErrors(@NotNull
                                                     kotlin.Function1<java.lang.String,kotlin.Unit> report)

generateLibFiles

@NotNull
protected abstract java.util.List<JetFile> generateLibFiles()

getLibFiles

@NotNull
public final java.util.List<JetFile> getLibFiles()

getLibraryContext

@Nullable
public BindingContext getLibraryContext()

getLibraryModule

@Nullable
public ModuleDescriptor getLibraryModule()

withJsLibAdded

@NotNull
public static java.util.Collection<JetFile> withJsLibAdded(@NotNull
                                                                   java.util.Collection<JetFile> files,
                                                                   @NotNull
                                                                   Config config)

isTestConfig

public boolean isTestConfig()