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.


Field Summary
protected  java.util.List<KotlinJavascriptMetadata> metadata
           
 
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)
           
 java.util.List<ModuleDescriptorImpl> getModuleDescriptors()
           
 java.lang.String getModuleId()
           
 com.intellij.openapi.project.Project getProject()
           
 java.util.List<JetFile> getSourceFilesFromLibraries()
           
 EcmaVersion getTarget()
           
protected abstract  void init(java.util.List<JetFile> sourceFilesInLibraries, java.util.List<KotlinJavascriptMetadata> metadata)
           
 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
 

Field Detail

metadata

@NotNull
protected final java.util.List<KotlinJavascriptMetadata> metadata
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)

init

protected abstract void init(@NotNull
                             java.util.List<JetFile> sourceFilesInLibraries,
                             @NotNull
                             java.util.List<KotlinJavascriptMetadata> metadata)

getModuleDescriptors

@NotNull
public java.util.List<ModuleDescriptorImpl> getModuleDescriptors()

getSourceFilesFromLibraries

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

isTestConfig

public boolean isTestConfig()

withJsLibAdded

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