org.jetbrains.k2js.config
Class Config
java.lang.Object
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.
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)
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()