public class CandyProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CANDIES_DIR_NAME
The name of the directory that will contain the candies.
|
static String |
CANDIES_SOURCES_DIR_NAME
This directory will contain the sources.
|
static String |
CANDIES_STORE_FILE_NAME
The name of the file that stores processed candies info.
|
static String |
CANDIES_TSDEFS_DIR_NAME
The name of the directory that contains the TypeScript source files.
|
| Constructor and Description |
|---|
CandyProcessor(File workingDir,
String classPath,
File extractedCandiesJavascriptDir)
Create a candies processor.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getCandiesTsdefsDir()
Returns the directory that contains the orginal TypeScript source code of the
processed (merged) candies.
|
List<File> |
getExtractedJsFiles() |
Map<String,List<File>> |
getExtractedJsFilesByCandy() |
boolean |
hasDeprecatedCandy()
Checks if the candy store contains a deprecated candy.
|
boolean |
isUsingJavaRuntime()
Returns true if the candy store contains the J4TS candy.
|
void |
processCandies(TranspilationHandler transpilationHandler)
Does the processing for the candies jars found in the classpath.
|
void |
touch()
Cleans the candies store so that it will be read from file next time.
|
public static final String CANDIES_DIR_NAME
public static final String CANDIES_SOURCES_DIR_NAME
public static final String CANDIES_STORE_FILE_NAME
public static final String CANDIES_TSDEFS_DIR_NAME
public CandyProcessor(File workingDir, String classPath, File extractedCandiesJavascriptDir)
workingDir - the directory where the processor will save all cache and
temporary data for processingclassPath - the classpath where the processor will seek for JSweet candiesextractedCandiesJavascriptDir - see JSweetTranspiler.extractedCandyJavascriptDirpublic File getCandiesTsdefsDir()
public void processCandies(TranspilationHandler transpilationHandler) throws IOException
IOExceptionpublic boolean isUsingJavaRuntime()
public void touch()
public boolean hasDeprecatedCandy()