| Package | Description |
|---|---|
| org.jsweet.transpiler |
This package contains the JSweet Java to JavaScript transpiler
implementation.
|
| org.jsweet.transpiler.candy |
This package contains the candies processing implementation.
|
| org.jsweet.transpiler.util |
This package contains utilities for the JSweet transpiler.
|
| Modifier and Type | Field and Description |
|---|---|
protected TranspilationHandler |
JSweetDiagnosticHandler.transpilationHandler
The transpilation message/warning/error handler.
|
| Modifier and Type | Method and Description |
|---|---|
GlobalBeforeTranslationScanner |
JSweetFactory.createBeforeTranslationScanner(TranspilationHandler transpilationHandler,
JSweetContext context)
Creates the scanner which is called before translating the program.
|
JSweetDiagnosticHandler |
JSweetFactory.createDiagnosticHandler(TranspilationHandler transpilationHandler,
JSweetContext context)
Creates a diagnostic handler (responsible for reporting Java
errors/warnings).
|
Java2TypeScriptTranslator |
JSweetFactory.createTranslator(PrinterAdapter adapter,
TranspilationHandler transpilationHandler,
JSweetContext context,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit compilationUnit,
boolean fillSourceMap)
Creates the core translator or any subclass.
|
EvaluationResult |
JSweetTranspiler.eval(String engineName,
TranspilationHandler transpilationHandler,
SourceFile... sourceFiles)
Evaluates the given source files with the given evaluation engine.
|
EvaluationResult |
JSweetTranspiler.eval(TranspilationHandler transpilationHandler,
SourceFile... sourceFiles)
Evaluates the given Java source files with the default JavaScript engine
(Nashorn).
|
void |
JSweetTranspiler.initNode(TranspilationHandler transpilationHandler) |
void |
JSweetTranspiler.transpile(TranspilationHandler transpilationHandler,
SourceFile... files)
Transpiles the given Java source files.
|
| Constructor and Description |
|---|
GlobalBeforeTranslationScanner(TranspilationHandler logHandler,
JSweetContext context)
Creates a new global scanner.
|
Java2TypeScriptTranslator(PrinterAdapter adapter,
TranspilationHandler logHandler,
JSweetContext context,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit compilationUnit,
boolean fillSourceMap)
Creates a new TypeScript translator.
|
JSweetDiagnosticHandler(TranspilationHandler transpilationHandler,
JSweetContext context)
Creates a new diagnostic handler.
|
OverloadScanner(TranspilationHandler logHandler,
JSweetContext context)
Creates a new overload scanner.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CandyProcessor.processCandies(TranspilationHandler transpilationHandler)
Does the processing for the candies jars found in the classpath.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDelegatedTranspilationHandler |
class |
ConsoleTranspilationHandler
This is a simple transpilation handler that reports problems to the default
output streams.
|
class |
ErrorCountTranspilationHandler
An error count decorator for a transpilation handler.
|
| Constructor and Description |
|---|
AbstractDelegatedTranspilationHandler(TranspilationHandler delegate) |
AbstractTreePrinter(TranspilationHandler logHandler,
JSweetContext context,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit compilationUnit,
PrinterAdapter adapter,
boolean fillSourceMap)
Creates a new printer.
|
AbstractTreeScanner(TranspilationHandler logHandler,
JSweetContext context,
com.sun.tools.javac.tree.JCTree.JCCompilationUnit compilationUnit)
Creates a new scanner.
|
ErrorCountTranspilationHandler(TranspilationHandler delegate)
Decorates the given transpilation handler.
|