See: Description
| Interface | Description |
|---|---|
| JSweetOptions |
This interface holds all the JSweet transpiler configuration and options.
|
| TranspilationHandler |
Objects implementing this interface handle transpilation errors and warnings.
|
| TypeScript2JavaScriptTranspiler.OnTsTranspilationCompletedCallback |
| Class | Description |
|---|---|
| GlobalBeforeTranslationScanner |
This AST scanner performs global analysis and fills up the context with
information that will be used by the translator.
|
| Java2TypeScriptTranslator |
This is a TypeScript printer for translating the Java AST to a TypeScript
program.
|
| Java2TypeScriptTranslator.ClassScope | |
| JSweetContext |
The transpiler context, which is an extension of the Java compiler context.
|
| JSweetDiagnosticHandler |
This class takes care of formatting and reporting errors reported by Javac.
|
| JSweetFactory |
The factory object is the one creating instances for key JSweet transpilation
elements.
|
| JSweetTranspiler |
The actual JSweet transpiler.
|
| ModuleImportDescriptor |
This class describes a module import.
|
| OverloadScanner |
This AST scanner detects method overloads and gather them into
OverloadScanner.Overload objects. |
| OverloadScanner.Overload |
Gathers methods overloading each other.
|
| SourceFile |
A source file represents a Java source file and holds information on the
transpiled output files (Typescript and Javascript files).
|
| SourcePosition |
A non-mutable position in a source file.
|
| StaticInitilializerAnalyzer |
This AST scanner creates a class dependency graph for each package, based on
static field initializers.
|
| TypeChecker |
This helper class performs extra type checking for the JSweet transpiler
(additionally to Java default type checking).
|
| TypeScript2JavaScriptTranspiler | |
| TypeScript2JavaScriptWithTscTranspiler | |
| TypeScript2JavaScriptWithTsserverTranspiler |
| Enum | Description |
|---|---|
| EcmaScriptComplianceLevel |
An enumeration for the EcmaScript versions.
|
| Java2TypeScriptTranslator.ComparisonMode |
A state flag indicating the comparison mode to be used by this printer for
printing comparison operators.
|
| JSweetProblem |
This enumeration holds all the possible JSweet transpilation problems
(warnings and errors) and the associated messages.
|
| ModuleKind |
An enumeration of the support module kinds.
|
| ModuleResolution |
An enumeration of the support module resolution.
|
| Severity |
The severity of a tranpilation event.
|
The entry point is JSweetTranspiler with the
JSweetTranspiler.transpile(TranspilationHandler, SourceFile...)
function.
The JSweet transpiler transpiles to TypeScript and uses tsc to
transpile to JavaScript.