| Package | Description |
|---|---|
| org.jsweet.transpiler |
This package contains the JSweet Java to JavaScript transpiler
implementation.
|
| org.jsweet.transpiler.util |
This package contains utilities for the JSweet transpiler.
|
| Modifier and Type | Method and Description |
|---|---|
Position |
SourcePosition.getEndPosition()
The end position in the source file.
|
Position |
SourcePosition.getStartPosition()
The start position in the source file.
|
| Constructor and Description |
|---|
SourcePosition(File file,
com.sun.tools.javac.tree.JCTree sourceElement,
Position position)
Creates a new source position from a given position (will start and end
at the same position).
|
SourcePosition(File file,
com.sun.tools.javac.tree.JCTree sourceElement,
Position startPosition,
Position endPosition)
Creates a new source position from start and end positions.
|
| Modifier and Type | Method and Description |
|---|---|
Position |
SourceMap.findInputPosition(int outputLine,
int outputColumn)
Finds the input position from an output position.
|
Position |
SourceMap.findInputPosition(Position outputPosition)
Finds the input position from an output position.
|
Position |
SourceMap.Entry.getInputPosition()
The position in the input file.
|
Position |
SourceMap.Entry.getOutputPosition()
The position in the output file.
|
| Modifier and Type | Method and Description |
|---|---|
Stack<Position> |
AbstractTreePrinter.getPositionStack()
The position stack of the scanner.
|
| Modifier and Type | Method and Description |
|---|---|
SourceMap.Entry |
SourceMap.addEntry(Position inputPosition,
Position outputPosition)
Adds an entry to the source map (entry must be added in order).
|
int |
Position.compareTo(Position position) |
Position |
SourceMap.findInputPosition(Position outputPosition)
Finds the input position from an output position.
|
void |
SourceMap.Entry.setOutputPosition(Position position)
Sets the position in the ouput file.
|
| Constructor and Description |
|---|
Position(Position position)
Creates a new position.
|