| Package | Description |
|---|---|
| org.jsweet.transpiler |
This package contains the JSweet Java to JavaScript transpiler
implementation.
|
| org.jsweet.transpiler.extension |
This package contains the basic extensions of the JSweet transpiler, as
printer adapters.
|
| org.jsweet.transpiler.util |
This package contains utilities for the JSweet transpiler.
|
| Modifier and Type | Method and Description |
|---|---|
static JSweetProblem |
JSweetProblem.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSweetProblem[] |
JSweetProblem.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TranspilationHandler.report(JSweetProblem problem,
SourcePosition sourcePosition,
String message)
This method is called by the transpiler when a problem needs to be
reported.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PrinterAdapter.report(Element element,
JSweetProblem problem,
Object... params)
Reports a problem during the printing phase.
|
protected void |
PrinterAdapter.report(Element element,
Name name,
JSweetProblem problem,
Object... params)
Reports a problem during the printing phase.
|
protected void |
PrinterAdapter.report(ExtendedElement element,
JSweetProblem problem,
Object... params)
Reports a problem during the printing phase.
|
protected void |
PrinterAdapter.report(ExtendedElement element,
Name name,
JSweetProblem problem,
Object... params)
Reports a problem during the printing phase.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTreeScanner.report(com.sun.tools.javac.tree.JCTree tree,
JSweetProblem problem,
Object... params)
Report a JSweet problem on the given program element (tree).
|
void |
AbstractTreeScanner.report(com.sun.tools.javac.tree.JCTree tree,
com.sun.tools.javac.util.Name name,
JSweetProblem problem,
Object... params)
Report a JSweet problem on the given named program element (tree).
|
void |
AbstractDelegatedTranspilationHandler.report(JSweetProblem problem,
SourcePosition sourcePosition,
String message) |
void |
ErrorCountTranspilationHandler.report(JSweetProblem problem,
SourcePosition sourcePosition,
String message)
Count the problems and delegates to the decorated transpilation handler.
|
void |
ConsoleTranspilationHandler.report(JSweetProblem problem,
SourcePosition sourcePosition,
String message) |