org.jetbrains.k2js.config
Class Config

java.lang.Object
  extended by org.jetbrains.k2js.config.Config
Direct Known Subclasses:
ClassPathLibraryDefintionsConfig, LibrarySourcesConfig

public abstract class Config
extends java.lang.Object

Base class representing a configuration of translator.


Field Summary
static java.util.List<java.lang.String> LIB_FILE_NAMES
           
static java.util.List<java.lang.String> LIB_FILE_NAMES_DEPENDENT_ON_STDLIB
          the library files which depend on the STDLIB files to be able to compile
static java.util.List<java.lang.String> LIB_FILES_WITH_CODE
           
static java.util.List<java.lang.String> LIB_FILES_WITH_DECLARATIONS
           
static java.lang.String LIBRARIES_LOCATION
           
static java.lang.String REWRITABLE_MODULE_NAME
           
static java.util.List<java.lang.String> STDLIB_FILE_NAMES
          The file names in the standard library to compile
static java.lang.String STDLIB_LOCATION
          The location of the stdlib sources
 
Constructor Summary
Config(com.intellij.openapi.project.Project project, java.lang.String moduleId, EcmaVersion ecmaVersion)
           
Config(com.intellij.openapi.project.Project project, java.lang.String moduleId, EcmaVersion ecmaVersion, boolean sourcemap)
           
 
Method Summary
protected abstract  java.util.List<JetFile> generateLibFiles()
           
static Config getEmptyConfig(com.intellij.openapi.project.Project project)
           
static Config getEmptyConfig(com.intellij.openapi.project.Project project, EcmaVersion ecmaVersion)
           
 java.util.List<JetFile> getLibFiles()
           
 BindingContext getLibraryContext()
           
 ModuleDescriptor getLibraryModule()
           
 java.lang.String getModuleId()
           
 com.intellij.openapi.project.Project getProject()
           
 EcmaVersion getTarget()
           
 JSTester getTester()
           
 boolean isSourcemap()
           
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

REWRITABLE_MODULE_NAME

@NotNull
public static final java.lang.String REWRITABLE_MODULE_NAME
See Also:
Constant Field Values

LIB_FILES_WITH_DECLARATIONS

@NotNull
public static final java.util.List<java.lang.String> LIB_FILES_WITH_DECLARATIONS

LIB_FILES_WITH_CODE

@NotNull
public static final java.util.List<java.lang.String> LIB_FILES_WITH_CODE

LIB_FILE_NAMES

@NotNull
public static final java.util.List<java.lang.String> LIB_FILE_NAMES

LIB_FILE_NAMES_DEPENDENT_ON_STDLIB

@NotNull
public static final java.util.List<java.lang.String> LIB_FILE_NAMES_DEPENDENT_ON_STDLIB
the library files which depend on the STDLIB files to be able to compile


LIBRARIES_LOCATION

public static final java.lang.String LIBRARIES_LOCATION
See Also:
Constant Field Values

STDLIB_FILE_NAMES

@NotNull
public static final java.util.List<java.lang.String> STDLIB_FILE_NAMES
The file names in the standard library to compile


STDLIB_LOCATION

public static final java.lang.String STDLIB_LOCATION
The location of the stdlib sources

See Also:
Constant Field Values
Constructor Detail

Config

public Config(@NotNull
              com.intellij.openapi.project.Project project,
              @NotNull
              java.lang.String moduleId,
              @NotNull
              EcmaVersion ecmaVersion)

Config

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

getEmptyConfig

@NotNull
public static Config getEmptyConfig(@NotNull
                                            com.intellij.openapi.project.Project project,
                                            @NotNull
                                            EcmaVersion ecmaVersion)

getEmptyConfig

@NotNull
public static Config getEmptyConfig(@NotNull
                                            com.intellij.openapi.project.Project project)

isSourcemap

public boolean isSourcemap()

getProject

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

getTarget

@NotNull
public EcmaVersion getTarget()

getModuleId

@NotNull
public java.lang.String getModuleId()

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)

getTester

@Nullable
public JSTester getTester()