Skip navigation links
http://www.jsweet.org
A B C D E F G H I J L M N O P R S T U V W 

A

AbstractDelegatedTranspilationHandler - Class in org.jsweet.transpiler.util
 
AbstractDelegatedTranspilationHandler(TranspilationHandler) - Constructor for class org.jsweet.transpiler.util.AbstractDelegatedTranspilationHandler
 
AbstractTreePrinter - Class in org.jsweet.transpiler.util
A tree printer is a kind of tree scanner specialized in pretty printing the scanned AST of a compilation unit (source file).
AbstractTreePrinter(TranspilationHandler, JSweetContext, JCTree.JCCompilationUnit, PrinterAdapter, boolean) - Constructor for class org.jsweet.transpiler.util.AbstractTreePrinter
Creates a new printer.
AbstractTreeScanner - Class in org.jsweet.transpiler.util
A Java AST scanner for JSweet.
AbstractTreeScanner(TranspilationHandler, JSweetContext, JCTree.JCCompilationUnit) - Constructor for class org.jsweet.transpiler.util.AbstractTreeScanner
Creates a new scanner.
adaptDocComment(Element, String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adapts the JavaDoc comment for a given element.
adaptDocComment(JSweetContext, JCTree.JCCompilationUnit, JCTree, String) - Static method in class org.jsweet.transpiler.util.JSDoc
Adapts the JavaDoc comment for a given element to conform to JSDoc.
add(T) - Method in class org.jsweet.transpiler.util.DirectedGraph
Adds an element to the nodes.
add(T...) - Method in class org.jsweet.transpiler.util.DirectedGraph
Add a set of elements to the nodes of this graph.
addAll(Collection<? extends T>) - Method in class org.jsweet.transpiler.util.DirectedGraph
Adds a set of elements to the nodes of this graph.
addAnnotation(Class<? extends Annotation>, String...) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adds an annotation on the AST through global filters.
addAnnotation(String, String...) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adds an annotation on the AST through global filters.
addAnnotation(Class<? extends Annotation>, String...) - Method in class org.jsweet.transpiler.JSweetContext
Adds an annotation on the AST through global filters.
addAnnotation(String, String...) - Method in class org.jsweet.transpiler.JSweetContext
Adds an annotation on the AST through global filters.
addAnnotationManager(AnnotationManager) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adds an annotation manager that will tune (add or remove) annotations on the AST.
addAnnotationManager(AnnotationManager) - Method in class org.jsweet.transpiler.JSweetContext
Adds an annotation manager that will tune (add or remove) annotations on the AST.
addAnnotationWithValue(Class<? extends Annotation>, Object, String...) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adds an annotation on the AST through global filters.
addAnnotationWithValue(Class<? extends Annotation>, Object, String...) - Method in class org.jsweet.transpiler.JSweetContext
Adds an annotation on the AST through global filters.
addClassNameMapping(Symbol.ClassSymbol, String) - Method in class org.jsweet.transpiler.JSweetContext
Adds a name mapping to a class (rename it to avoid name clashes).
addDefaultMethod(JCTree.JCCompilationUnit, JCTree.JCClassDecl, JCTree.JCMethodDecl) - Method in class org.jsweet.transpiler.JSweetContext
Stores a default method AST for the given type.
addEdge(T, T) - Method in class org.jsweet.transpiler.util.DirectedGraph
Add an edge between the given elements (nodes).
addEdge(T) - Method in class org.jsweet.transpiler.util.DirectedGraph.Node
Adds an edge starting from this node and going to a node holding the given element.
addEdges(T, T...) - Method in class org.jsweet.transpiler.util.DirectedGraph
Adds some edges form the source elements to the given destination elements.
addEdges(T...) - Method in class org.jsweet.transpiler.util.DirectedGraph.Node
Adds edges starting from this node and going to nodes holding the given elements.
addEntry(Position, Position) - Method in class org.jsweet.transpiler.util.SourceMap
Adds an entry to the source map (entry must be added in order).
addExportedElement(String, Symbol, JCTree.JCCompilationUnit) - Method in class org.jsweet.transpiler.JSweetContext
Adds an exported element for a module.
addExtraPath(String) - Static method in class org.jsweet.transpiler.util.ProcessUtil
 
addFieldNameMapping(Symbol.VarSymbol, String) - Method in class org.jsweet.transpiler.JSweetContext
Adds a name mapping to a field (rename it to avoid name clashes).
addFiles(String, File, Collection<File>) - Static method in class org.jsweet.transpiler.util.Util
Recursively adds files to the given list.
addFiles(Predicate<File>, File, Collection<File>) - Static method in class org.jsweet.transpiler.util.Util
Recursively adds files to the given list.
addFooterStatement(String) - Method in class org.jsweet.transpiler.JSweetContext
Adds a footer statement.
addGlobalsMapping(String, String) - Method in class org.jsweet.transpiler.JSweetContext
Adds a globals mapping.
addHeader(String, String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
This method sets a header to the currently printed file.
addHeader(String, String) - Method in class org.jsweet.transpiler.JSweetContext
Sets a header (associated to a key).
addJdkSubclass(String, TypeMirror) - Method in class org.jsweet.transpiler.JSweetContext
Maps the name of a class to the JDK type it extends.
addJsLibFiles(File...) - Method in class org.jsweet.transpiler.JSweetTranspiler
Add JavaScript libraries that are used for the JavaScript evaluation.
AddPrefixToNonPublicMembersAdapter - Class in org.jsweet.transpiler.extension
This simple adapter renames non-public members by adding two underscores as a prefix.
AddPrefixToNonPublicMembersAdapter(PrinterAdapter) - Constructor for class org.jsweet.transpiler.extension.AddPrefixToNonPublicMembersAdapter
Builds the adapter and delegate to the given parent.
addTopFooterStatement(String) - Method in class org.jsweet.transpiler.JSweetContext
Adds a footer statement at the first position.
addTsDefDir(File) - Method in class org.jsweet.transpiler.JSweetTranspiler
Adds a directory that contains TypeScript definition files (sub-directories are scanned recursively to find all .d.ts files).
addTypeMapping(String, String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adds a type mapping so that this adapter substitutes the source type with the target type during the transpilation process.
addTypeMapping(BiFunction<ExtendedElement, String, Object>) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adds a type mapping so that this adapter substitutes the source type tree with a target type during the transpilation process.
addTypeMapping(String, String) - Method in class org.jsweet.transpiler.JSweetContext
Adds a type mapping in the context.
addTypeMapping(BiFunction<ExtendedElement, String, Object>) - Method in class org.jsweet.transpiler.JSweetContext
Adds a functional type mapping.
addTypeMappings(Map<String, String>) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adds a set of name-based type mappings.
addTypeMappings(Map<String, String>) - Method in class org.jsweet.transpiler.JSweetContext
Adds a set of name-based type mappings.
afterType(TypeElement) - Method in class org.jsweet.transpiler.extension.DisallowGlobalVariablesAdapter
Reports an error when static non-final variables are found in Globals classes (except when Globals are part of a def.* package).
afterType(TypeElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
This method is called after a type was printed.
ANNOTATION_AMBIENT - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Ambient annotation (see JSweet core API).
ANNOTATION_ASYNC - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Async annotation (see JSweet core API).
ANNOTATION_DECORATOR - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Decorator annotation (see JSweet core API).
ANNOTATION_DISABLED - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Disabled annotation (see JSweet core API).
ANNOTATION_ERASED - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Erased annotation (see JSweet core API).
ANNOTATION_FUNCTIONAL_INTERFACE - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the built-in Java FunctionalInterface annotation.
ANNOTATION_GENERATOR - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Generator annotation (see JSweet core API).
ANNOTATION_INTERFACE - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Interface annotation (see JSweet core API).
ANNOTATION_MIXIN - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Mixin annotation (see JSweet core API).
ANNOTATION_MODULE - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Module annotation (see JSweet core API).
ANNOTATION_NAME - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Name annotation (see JSweet core API).
ANNOTATION_NO_DEBUG - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @SNoDebug annotation (see JSweet core API).
ANNOTATION_OBJECT_TYPE - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @ObjectType annotation (see JSweet core API).
ANNOTATION_OPTIONAL - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Optional annotation (see JSweet core API).
ANNOTATION_REPLACE - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Replace annotation (see JSweet core API).
ANNOTATION_ROOT - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @Root annotation (see JSweet core API).
ANNOTATION_STRING_TYPE - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @StringType annotation (see JSweet core API).
ANNOTATION_SYNTACTIC_ITERABLE - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @SyntacticIterable annotation (see JSweet core API).
ANNOTATION_WRAP_PARAMETERS - Static variable in class org.jsweet.JSweetConfig
Fully-qualified name for the JSweet @WrapParameters annotation (see JSweet core API).
AnnotationManager - Class in org.jsweet.transpiler.extension
This class has to be overridden to adapt the way annotations are introspected on the Java AST.
AnnotationManager() - Constructor for class org.jsweet.transpiler.extension.AnnotationManager
 
AnnotationManager.Action - Enum in org.jsweet.transpiler.extension
The action to be returned by the manager to add or remove annotations.
ANONYMOUS_DEPRECATED_FUNCTION_NAME - Static variable in class org.jsweet.JSweetConfig
 
ANONYMOUS_DEPRECATED_STATIC_FUNCTION_NAME - Static variable in class org.jsweet.JSweetConfig
 
ANONYMOUS_FUNCTION_NAME - Static variable in class org.jsweet.JSweetConfig
 
ANONYMOUS_PREFIX - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A prefix/separator for anonymous classes.
ANONYMOUS_STATIC_FUNCTION_NAME - Static variable in class org.jsweet.JSweetConfig
 
APPLICATION_PROPERTIES - Static variable in class org.jsweet.JSweetConfig
The properties coming from application.properties.
ArrayAccessElement - Interface in org.jsweet.transpiler.model
An AST node for a Java array access expression, of the form indexed[index].
AssignmentElement - Interface in org.jsweet.transpiler.model
An AST node for a Java assignment statement/expression, of the form assignedVariable = value.
AssignmentWithOperatorElement - Interface in org.jsweet.transpiler.model
An AST node for a Java assignment with operator statement/expression, of the form assignedVariable += value.
AUTHORIZED_OBJECT_METHODS - Static variable in class org.jsweet.transpiler.TypeChecker
Methods that can be invoked on java.lang.Object from JSweet.
AUTHORIZED_STRING_METHODS - Static variable in class org.jsweet.transpiler.TypeChecker
Methods that can be invoked on java.lang.String from JSweet.
authorPattern - Static variable in class org.jsweet.transpiler.util.JSDoc
A regexp that matches JavaDoc @author expressions.

B

BASE_INDENT_MARKER - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A regular expression for matching base indent markers in @Replace expression.
baseThrowables - Variable in class org.jsweet.transpiler.JSweetContext
 
BigDecimalAdapter - Class in org.jsweet.transpiler.extension
This optional adapter tunes the JavaScript generation to map the Java's BigDecimal API to the Big JavaScript library.
BigDecimalAdapter(PrinterAdapter) - Constructor for class org.jsweet.transpiler.extension.BigDecimalAdapter
 
BinaryOperatorElement - Interface in org.jsweet.transpiler.model
The model element that represents a binary operator (+, *, &&, ...).
BODY_MARKER - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A regular expression for matching body markers in @Replace expression.
buildEdges(Comparator<U>) - Method in class org.jsweet.transpiler.util.DirectedGraph
Automatically builds the edges between all the nodes of the graph by using the given comparator.
bundle - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'bundle' option.
bundleMode - Variable in class org.jsweet.transpiler.JSweetContext
A flag that indicates if we are building a bundle.

C

calculate(Types, Symtab) - Method in class org.jsweet.transpiler.OverloadScanner.Overload
Checks the validity of the overload and calculates the default values.
call(boolean, ErrorCountTranspilationHandler, Collection<SourceFile>) - Method in interface org.jsweet.transpiler.TypeScript2JavaScriptTranspiler.OnTsTranspilationCompletedCallback
 
CANDIES_DIR_NAME - Static variable in class org.jsweet.transpiler.candy.CandyProcessor
The name of the directory that will contain the candies.
CANDIES_SOURCES_DIR_NAME - Static variable in class org.jsweet.transpiler.candy.CandyProcessor
This directory will contain the sources.
CANDIES_STORE_FILE_NAME - Static variable in class org.jsweet.transpiler.candy.CandyProcessor
The name of the file that stores processed candies info.
CANDIES_TSDEFS_DIR_NAME - Static variable in class org.jsweet.transpiler.candy.CandyProcessor
The name of the directory that contains the TypeScript source files.
candiesJsOut - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'candiesJsOut' option.
CandyDescriptor - Class in org.jsweet.transpiler.candy
A candy descriptor for the candies store.
CandyDescriptor(String, String, long, String, String, String, String, List<String>) - Constructor for class org.jsweet.transpiler.candy.CandyDescriptor
 
CandyProcessor - Class in org.jsweet.transpiler.candy
The candy processor extracts and processes what is required from the candy jars.
CandyProcessor(File, String, File) - Constructor for class org.jsweet.transpiler.candy.CandyProcessor
Create a candies processor.
CaseElement - Interface in org.jsweet.transpiler.model
An AST node for the Java case statement.
checkAndCompileExtension(File, String) - Method in class org.jsweet.transpiler.extension.ExtensionManager
Checks if some Java source files are to be compiled in the extension directory, and compile them if necessary.
checkApply(JCTree.JCMethodInvocation, Symbol.MethodSymbol) - Method in class org.jsweet.transpiler.TypeChecker
Checks that the given invocation conforms to JSweet contraints.
checkSelect(JCTree.JCFieldAccess) - Method in class org.jsweet.transpiler.TypeChecker
Checks that the given field access conforms to JSweet contraints.
checkType(JCTree, Name, JCTree.JCExpression) - Method in class org.jsweet.transpiler.TypeChecker
Checks that the given type is JSweet compatible.
checkUnionTypeAssignment(Types, JCTree, JCTree.JCMethodInvocation) - Method in class org.jsweet.transpiler.TypeChecker
Checks that the given union type assignment conforms to JSweet contraints.
CLASS_NAME_IN_CONSTRUCTOR - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
The name of the field where the class name is stored in the class constructor.
CLASS_NAME_MARKER - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A regular expression for matching class name markers in @Replace expression.
classesWithWrongConstructorOverload - Variable in class org.jsweet.transpiler.JSweetContext
Contains the classes that have a wrong constructor overload.
ClassScope() - Constructor for class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
clear() - Method in class org.jsweet.transpiler.util.DirectedGraph
Clears all the nodes of this graph.
clearFooterStatements() - Method in class org.jsweet.transpiler.JSweetContext
Clears the footer statements.
clearHeaders() - Method in class org.jsweet.transpiler.JSweetContext
Clear the headers.
clearImportedNames(String) - Method in class org.jsweet.transpiler.JSweetContext
Clears the names imported by the given module.
clearJsLibFiles() - Method in class org.jsweet.transpiler.JSweetTranspiler
Clears JavaScript libraries that are used for the JavaScript evaluation.
clearTsDefDirs() - Method in class org.jsweet.transpiler.JSweetTranspiler
compareTo(Position) - Method in class org.jsweet.transpiler.util.Position
 
compareTo(SourceMap.Entry) - Method in class org.jsweet.transpiler.util.SourceMap.Entry
 
compilationUnit - Variable in class org.jsweet.transpiler.util.AbstractTreeScanner
Holds the compilation being currently scanned.
CompilationUnitElement - Interface in org.jsweet.transpiler.model
This element corresponds to a source file that contains the compiled source code.
compilationUnits - Variable in class org.jsweet.transpiler.JSweetContext
The compilation units that correspond to the source files.
compiler - Variable in class org.jsweet.transpiler.util.JavaCompilationEnvironment
The Java compiler.
CONFIGURATION_FILE_NAME - Static variable in class org.jsweet.JSweetConfig
The default configuration file name.
ConsoleTranspilationHandler - Class in org.jsweet.transpiler.util
This is a simple transpilation handler that reports problems to the default output streams.
ConsoleTranspilationHandler() - Constructor for class org.jsweet.transpiler.util.ConsoleTranspilationHandler
Creates a transpilation handled reporting to the console.
contains(Object) - Method in class org.jsweet.transpiler.util.DirectedGraph
Tells if this graph contains the given object as a node.
containsAll(Collection<?>) - Method in class org.jsweet.transpiler.util.DirectedGraph
Tells if this graph contains the given collection as a node.
containsAssignableType(Types, List<Type>, Type) - Static method in class org.jsweet.transpiler.util.Util
Tells if the given list contains an type which is assignable from type.
containsFile(File, File[]) - Static method in class org.jsweet.transpiler.util.Util
Tells if the given directory or any of its sub-directory contains one of the given files.
containsMethods(JCTree.JCClassDecl) - Static method in class org.jsweet.transpiler.util.Util
Tells if the given type declaration contains some method declarations.
context - Variable in class org.jsweet.transpiler.extension.PrinterAdapter
 
context - Variable in class org.jsweet.transpiler.JSweetDiagnosticHandler
The transpilation context.
context - Variable in class org.jsweet.transpiler.util.AbstractTreeScanner
The transpiler context.
context - Variable in class org.jsweet.transpiler.util.JavaCompilationEnvironment
The compilation context.
coreMethod - Variable in class org.jsweet.transpiler.OverloadScanner.Overload
The core method of the overload, that is to say the one holding the implementation.
countStaticInitializer(Symbol.ClassSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Increments the count of static initialization blocks for the given class.
create(JCTree) - Method in class org.jsweet.transpiler.model.ExtendedElementFactory
Creates an extended element out of a javac tree.
create(JSweetOptions, String) - Static method in class org.jsweet.transpiler.util.JavaCompilationEnvironment
Creates a new compilation environment with the given options and classpath.
createAdapter(JSweetContext) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesFactory
 
createAdapter(JSweetContext) - Method in class org.jsweet.transpiler.JSweetFactory
Creates the printer adapter or any subclass.
createBeforeTranslationScanner(TranspilationHandler, JSweetContext) - Method in class org.jsweet.transpiler.JSweetFactory
Creates the scanner which is called before translating the program.
createContext(JSweetOptions) - Method in class org.jsweet.transpiler.JSweetFactory
Creates the transpiler's context or any subclass.
createDiagnosticHandler(TranspilationHandler, JSweetContext) - Method in class org.jsweet.transpiler.JSweetFactory
Creates a diagnostic handler (responsible for reporting Java errors/warnings).
createTranslator(PrinterAdapter, TranspilationHandler, JSweetContext, JCTree.JCCompilationUnit, boolean) - Method in class org.jsweet.transpiler.JSweetFactory
Creates the core translator or any subclass.

D

declaration - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'declaration' option.
defaultValues - Variable in class org.jsweet.transpiler.OverloadScanner.Overload
The default values for the parameters of the core method.
delegateToEmulLayer(String, String, InvocationElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
delegateToEmulLayer(String, VariableAccessElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
delegateToEmulLayerStatic(String, String, ExtendedElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
DEPRECATED_UTIL_CLASSNAME - Static variable in class org.jsweet.JSweetConfig
The constant for predefined utilities.
deprecatedApply - Variable in class org.jsweet.transpiler.JSweetContext
A flag that indicates if the transpiler should transform old-fashionned apply method to lambda or use the new convention ($apply)
diagnosticSource - Variable in class org.jsweet.transpiler.util.AbstractTreeScanner
The javac diagnostic source object (useful to get line information for instance).
DirectedGraph<T> - Class in org.jsweet.transpiler.util
This class defines a directed graph collection type, that is to say a set of elements (aka nodes) linked together with directed edges.
DirectedGraph() - Constructor for class org.jsweet.transpiler.util.DirectedGraph
Constructs an empty graph collection.
DirectedGraph.Edge<T> - Class in org.jsweet.transpiler.util
A generic object representing an edge in the graph.
DirectedGraph.Node<T> - Class in org.jsweet.transpiler.util
An object representing the nodes of the graph.
disableSinglePrecisionFloats - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'disableSinglePrecisionFloats' option.
DisallowGlobalVariablesAdapter - Class in org.jsweet.transpiler.extension
This simple adapter reports errors when global variables are found.
DisallowGlobalVariablesAdapter(PrinterAdapter) - Constructor for class org.jsweet.transpiler.extension.DisallowGlobalVariablesAdapter
Builds an adapter that will delegate to the given parent.
docComments - Variable in class org.jsweet.transpiler.JSweetContext
 
DOM_PACKAGE - Static variable in class org.jsweet.JSweetConfig
The constant for the JSweet dom package.
doTranspile(ErrorCountTranspilationHandler, Collection<File>, Collection<SourceFile>, JSweetOptions, boolean, TypeScript2JavaScriptTranspiler.OnTsTranspilationCompletedCallback) - Method in class org.jsweet.transpiler.TypeScript2JavaScriptTranspiler
 
doTranspile(ErrorCountTranspilationHandler, Collection<File>, Collection<SourceFile>, JSweetOptions, boolean, TypeScript2JavaScriptTranspiler.OnTsTranspilationCompletedCallback) - Method in class org.jsweet.transpiler.TypeScript2JavaScriptWithTscTranspiler
 
doTranspile(ErrorCountTranspilationHandler, Collection<File>, Collection<SourceFile>, JSweetOptions, boolean, TypeScript2JavaScriptTranspiler.OnTsTranspilationCompletedCallback) - Method in class org.jsweet.transpiler.TypeScript2JavaScriptWithTsserverTranspiler
 
dtsout - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'dtsout' option.
dumpCycles(List<DirectedGraph.Node<T>>, Function<T, String>) - Static method in class org.jsweet.transpiler.util.DirectedGraph
Dumps the found cycles to System.out.
dumpOverloads(PrintStream) - Method in class org.jsweet.transpiler.JSweetContext
Dump all the overloads gathered by OverloadScanner.
dumpStackTrace() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Pretty prints the current scanning trace.

E

EcmaScriptComplianceLevel - Enum in org.jsweet.transpiler
An enumeration for the EcmaScript versions.
Edge(DirectedGraph.Node<T>, DirectedGraph.Node<T>) - Constructor for class org.jsweet.transpiler.util.DirectedGraph.Edge
Creates a new edge.
element - Variable in class org.jsweet.transpiler.util.DirectedGraph.Node
The actual element (data) hold by this node.
enableAssertions - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'enableAssertions' option.
encoding - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'encoding' option.
endIndent() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Decrements the current indentation value.
endIndent() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Decrements the current indentation value.
enter(JCTree) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Enters the given tree (se AbstractTreeScanner.scan(JCTree).
enter(JCTree) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Enters a tree element (to be scanned for printing).
enterComparisonMode(Java2TypeScriptTranslator.ComparisonMode) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Selects a comparison mode for subsequently printed comparison operators.
enterScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Enters a new class scope.
entryFiles - Variable in class org.jsweet.transpiler.JSweetContext
Source files containing a main method.
ENUM_WRAPPER_CLASS_NAME - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
The field name for storing the enum's name.
ENUM_WRAPPER_CLASS_ORDINAL - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
The field name for storing the enum's ordinal.
ENUM_WRAPPER_CLASS_SUFFIX - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A suffix for name of classes that wrap regular TypeScript enums.
ENUM_WRAPPER_CLASS_WRAPPERS - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
The name of the variable that contains the enum wrapper instances.
equals(Object) - Method in class org.jsweet.transpiler.candy.CandyDescriptor
 
equals(Object) - Method in class org.jsweet.transpiler.util.DirectedGraph.Edge
 
equals(Object) - Method in class org.jsweet.transpiler.util.DirectedGraph
Equals two graphs.
eraseSuperClass(TypeElement, TypeElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Tells if a super class has to be erased in the generated source.
eraseSuperClass(TypeElement, TypeElement) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
eraseSuperInterface(TypeElement, TypeElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Tells if a super interface has to be erased in the generated source.
eraseSuperInterface(TypeElement, TypeElement) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
ErrorCountTranspilationHandler - Class in org.jsweet.transpiler.util
An error count decorator for a transpilation handler.
ErrorCountTranspilationHandler(TranspilationHandler) - Constructor for class org.jsweet.transpiler.util.ErrorCountTranspilationHandler
Decorates the given transpilation handler.
escapeRegex(String) - Static method in class org.jsweet.transpiler.util.Util
This function will escape special characters within a string to ensure that the string will not be parsed as a regular expression.
eval(TranspilationHandler, SourceFile...) - Method in class org.jsweet.transpiler.JSweetTranspiler
Evaluates the given Java source files with the default JavaScript engine (Nashorn).
eval(String, TranspilationHandler, SourceFile...) - Method in class org.jsweet.transpiler.JSweetTranspiler
Evaluates the given source files with the given evaluation engine.
EvalOptions - Class in org.jsweet.transpiler.eval
 
EvalOptions(boolean, File) - Constructor for class org.jsweet.transpiler.eval.EvalOptions
 
EvaluationResult - Interface in org.jsweet.transpiler.util
An evaluation result of a JSweet program.
execute() - Method in class org.jsweet.JSweetFileWatcher
Starts this watcher.
exit() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Exits the currently scanned tree.
exit() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Exits a tree element (to be scanned for printing).
exitComparisonMode() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Exits a comparison mode and go back to the previous one.
exitScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Exits a class scope.
EXPORTED_VAR_BEGIN - Static variable in class org.jsweet.transpiler.JSweetTranspiler
A constant that is used for exporting variables.
EXPORTED_VAR_END - Static variable in class org.jsweet.transpiler.JSweetTranspiler
A constant that is used for exporting variables.
EXPORTED_VAR_REGEXP - Static variable in class org.jsweet.transpiler.JSweetTranspiler
 
ExtendedElement - Interface in org.jsweet.transpiler.model
The root class for AST nodes that represent Java program elements (expressions and statements) that are not accessible through the regular Element API.
ExtendedElementFactory - Class in org.jsweet.transpiler.model
A factory to create extended elements.
ExtendedElementFactory() - Constructor for class org.jsweet.transpiler.model.ExtendedElementFactory
 
EXTENSION_DIR - Static variable in class org.jsweet.JSweetConfig
 
ExtensionManager - Class in org.jsweet.transpiler.extension
This class deals with the extension directory, which can contain classes to tune the transpiler's default behavior.
ExtensionManager(String) - Constructor for class org.jsweet.transpiler.extension.ExtensionManager
Creates a new extension manager for the given directory.
extraSystemPath - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'extraSystemPath' option.
extTypesMapping - Variable in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 

F

FIELD_METHOD_CLASH_RESOLVER_PREFIX - Static variable in class org.jsweet.JSweetConfig
The prefix to add to variables that clash with methods.
fileManager - Variable in class org.jsweet.transpiler.util.JavaCompilationEnvironment
The Java file manager.
fillAllVariableAccesses(Map<String, Symbol.VarSymbol>, JCTree) - Static method in class org.jsweet.transpiler.util.Util
Fills the given map with all the variables beeing accessed within the given code tree.
fillAllVariablesInScope(Map<String, Symbol.VarSymbol>, Stack<JCTree>, JCTree, JCTree) - Static method in class org.jsweet.transpiler.util.Util
Finds all the variables accessible within the current scanning scope.
findDefaultMethodsInType(Set<Map.Entry<JCTree.JCClassDecl, JCTree.JCMethodDecl>>, JSweetContext, Symbol.ClassSymbol) - Static method in class org.jsweet.transpiler.util.Util
Fills the given set with all the default methods found in the current type and super interfaces.
findExecutableDeclarationInType(TypeElement, MethodInvocationElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Looks-up the executable that is invoked by the given invocation.
findFieldDeclaration(Symbol.ClassSymbol, Name) - Static method in class org.jsweet.transpiler.util.Util
Finds the field in the given type that matches the given name.
findFirstDeclarationInClassAndSuperClasses(Symbol.TypeSymbol, String, ElementKind) - Static method in class org.jsweet.transpiler.util.Util
Find first declaration (of any kind) matching the given name.
findFirstDeclarationInType(Element, String) - Static method in class org.jsweet.transpiler.util.Util
Find first declaration (of any kind) matching the given name.
findFirstMethodDeclaration(JCTree.JCClassDecl, String) - Static method in class org.jsweet.transpiler.util.Util
 
findFirstMethodDeclarationInType(Element, String) - Static method in class org.jsweet.transpiler.util.Util
Finds first method matching name (no super types lookup).
findGlobalExecutable(String, String) - Static method in class org.jsweet.transpiler.util.ProcessUtil
 
findInnerClassDeclaration(Symbol.ClassSymbol, String) - Static method in class org.jsweet.transpiler.util.Util
Finds the first inner class declaration of the given name in the given class hierarchy.
findInputPosition(Position) - Method in class org.jsweet.transpiler.util.SourceMap
Finds the input position from an output position.
findInputPosition(int, int) - Method in class org.jsweet.transpiler.util.SourceMap
Finds the input position from an output position.
findMethodDeclarationInType(Types, Symbol.TypeSymbol, JCTree.JCMethodInvocation) - Static method in class org.jsweet.transpiler.util.Util
Finds the method declaration within the given type, for the given invocation.
findMethodDeclarationInType(Types, Symbol.TypeSymbol, String, Type.MethodType) - Static method in class org.jsweet.transpiler.util.Util
Finds the method in the given type that matches the given name and signature.
findMethodDeclarationInType(Types, Symbol.TypeSymbol, String, Type.MethodType, boolean) - Static method in class org.jsweet.transpiler.util.Util
Finds the method in the given type that matches the given name and signature.
findMethodDeclarations(JCTree.JCClassDecl) - Static method in class org.jsweet.transpiler.util.Util
 
findMethodDeclarationsInType(Symbol.TypeSymbol, Collection<String>, Set<String>, List<Symbol.MethodSymbol>) - Static method in class org.jsweet.transpiler.util.Util
Finds methods by name.
findOriginPosition(SourcePosition, SourceFile[]) - Static method in class org.jsweet.transpiler.SourceFile
 
findOriginPosition(SourcePosition, Collection<SourceFile>) - Static method in class org.jsweet.transpiler.SourceFile
Finds the mapped position in one of the origin Java source file.
findParameter(JCTree.JCMethodDecl, String) - Static method in class org.jsweet.transpiler.util.Util
Finds and returns the parameter matching the given name if any.
findTypeDeclarationsInCompilationUnits(List<JCTree.JCCompilationUnit>) - Static method in class org.jsweet.transpiler.util.Util
 
footer - Variable in class org.jsweet.transpiler.util.AbstractTreePrinter
A footer to be printed at the end of the output.
FORBIDDEN_JDK_FUNCTIONAL_METHODS - Static variable in class org.jsweet.transpiler.TypeChecker
Methods that cannot be invoked on java.util.function classes from JSweet.
ForeachLoopElement - Interface in org.jsweet.transpiler.model
An AST node for a Java for each loop statement, of the form for(var : iterable) body.
format(JCDiagnostic, Locale) - Method in class org.jsweet.transpiler.JSweetDiagnosticHandler
 
from - Variable in class org.jsweet.transpiler.util.DirectedGraph.Edge
The node this edge starts from
fromCandyJar(JarFile, String) - Static method in class org.jsweet.transpiler.candy.CandyDescriptor
 
FUNCTION_CLASSES_PACKAGE - Static variable in class org.jsweet.JSweetConfig
The constant for the function classes package.

G

GENERATOR_PREFIX - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A prefix for generators.
get(String) - Method in interface org.jsweet.transpiler.util.EvaluationResult
Get access to the value of an exported variable (exported with a call to the jsweet.util.Lang.$export function).
getAccessedSymbol(JCTree) - Static method in class org.jsweet.transpiler.util.Util
Gets the symbol on JCFieldAccess or JCIdent if possible, or return null.
getActualName(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets the actual name of a symbol from a JSweet convention, so including potential jsweet.lang.Name annotation.
getAdapter() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets the adapter attached to this printer.
getAdapters() - Method in interface org.jsweet.transpiler.JSweetOptions
A list of adapter class names (fully qualified) to be used to extend the transpiler behavior.
getAdapters() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getAllOverloads() - Method in class org.jsweet.transpiler.JSweetContext
Returns all the overloads in this context.
getAnnotationValue(Element, String, String, Class<T>, T) - Method in class org.jsweet.transpiler.extension.AnnotationManager
Gets the given annotation property value.
getAnnotationValue(Element, String, Class<T>, T) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the first value of the 'value' property for the given annotation type if found on the given element.
getAnnotationValue(Element, String, String, Class<T>, T) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the first value of the given property for the given annotation type if found on the given element.
getAnnotationValue(Symbol, String, Class<T>, T) - Method in class org.jsweet.transpiler.JSweetContext
Gets the first value of the 'value' property for the given annotation type if found on the given symbol.
getAnnotationValue(Symbol, String, String, Class<T>, T) - Method in class org.jsweet.transpiler.JSweetContext
Gets the first value of the given property for the given annotation type if found on the given symbol.
getAnonymousClasses() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getAnonymousClassesConstructors() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getArgument(int) - Method in interface org.jsweet.transpiler.model.InvocationElement
Gets the ith argument that is passed to the invoked element.
getArgument() - Method in interface org.jsweet.transpiler.model.UnaryOperatorElement
Gets the operator element.
getArgumentCount() - Method in interface org.jsweet.transpiler.model.InvocationElement
Gets the number of arguments that are passed to the invoked element.
getArguments() - Method in interface org.jsweet.transpiler.model.InvocationElement
Gets the arguments that are passed to the invoked element.
getArgumentTail() - Method in interface org.jsweet.transpiler.model.InvocationElement
Gets the arguments that are passed to the invoked element, omitting the first argument.
getBaseThrowables() - Method in class org.jsweet.transpiler.JSweetContext
 
getBody() - Method in interface org.jsweet.transpiler.model.ForeachLoopElement
The body of the foreach loop.
getBuildDate() - Static method in class org.jsweet.JSweetConfig
The build date coming from Maven.
getCandiesProcessor() - Method in class org.jsweet.transpiler.JSweetTranspiler
Gets the candies processor.
getCandiesTsdefsDir() - Method in class org.jsweet.transpiler.candy.CandyProcessor
Returns the directory that contains the orginal TypeScript source code of the processed (merged) candies.
getClassNameMapping(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets a class name mapping if any (null otherwise).
getClassPath() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getColumn() - Method in class org.jsweet.transpiler.util.Position
The position's column.
getCompilationUnit() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets the current compilation unit.
getCompilationUnit() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the currently scanned compilation unit.
getConfiguration() - Method in interface org.jsweet.transpiler.JSweetOptions
Returns the configuration from the configuration file.
getConfiguration() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getConfigurationFile() - Method in interface org.jsweet.transpiler.JSweetOptions
The configuration file, which is by default the jsweetconfig.json file in the current project.
getConfigurationFile() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getConstructor() - Method in interface org.jsweet.transpiler.model.NewClassElement
Gets the constructor being invoked by this new class element.
getConstructorAccess() - Method in interface org.jsweet.transpiler.model.NewClassElement
Gets the constructor access expression.
getContext() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the transpiler's context.
getContext() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getContext() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the transpiler context.
getCurrent() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Returns the currently visited node in the printer's scanning stack.
getCurrentColumn() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets the current column of the printed output.
getCurrentLine() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets the current line of the printed output.
getCurrentPosition() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets the current character count of the output.
getDeclarationsOutputDir() - Method in interface org.jsweet.transpiler.JSweetOptions
Gets the current .d.ts output directory (only if the declaration option is set).
getDeclarationsOutputDir() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getDefaultMethodCompilationUnit(JCTree.JCMethodDecl) - Method in class org.jsweet.transpiler.JSweetContext
Gets the compilation unit the given default method belongs to.
getDefaultMethods(Symbol.TypeSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets the default methods declared in the given type.
getDestinationElements(T) - Method in class org.jsweet.transpiler.util.DirectedGraph
 
getDimension(int) - Method in interface org.jsweet.transpiler.model.NewArrayElement
Gets the ith dimension.
getDimensionCount() - Method in interface org.jsweet.transpiler.model.NewArrayElement
Gets the dimension count.
getDimensions() - Method in interface org.jsweet.transpiler.model.NewArrayElement
Gets the dimensions passed to the array.
getEcmaTargetVersion() - Method in interface org.jsweet.transpiler.JSweetOptions
The targeted ECMAScript version.
getEcmaTargetVersion(String) - Static method in class org.jsweet.transpiler.JSweetTranspiler
Gets the target version from a user-friendly descriptive string.
getEcmaTargetVersion() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getEncoding() - Method in interface org.jsweet.transpiler.JSweetOptions
Gets the expected Java source code encoding.
getEncoding() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getEndColumn() - Method in class org.jsweet.transpiler.SourcePosition
The end column in the source file.
getEndLine() - Method in class org.jsweet.transpiler.SourcePosition
The end line in the source file.
getEndPosition() - Method in class org.jsweet.transpiler.SourcePosition
The end position in the source file.
getErasedTypes() - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
getErasedTypes() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
 
getErrorCount() - Method in class org.jsweet.transpiler.util.ErrorCountTranspilationHandler
Returns the error count.
getExecutionPaths(JCTree.JCMethodDecl) - Static method in class org.jsweet.transpiler.util.Util
 
getExecutionTrace() - Method in interface org.jsweet.transpiler.util.EvaluationResult
Gets the execution trace of the program execution.
getExportedElementName(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Returns the idenfier of the given exported symbol, including Module annotation's name if specified
getExportedElements() - Method in class org.jsweet.transpiler.JSweetContext
Gets the exported elements for all the modules defined in the program.
getExportedVarMap() - Method in class org.jsweet.transpiler.eval.RuntimeEval
 
getExtractedCandyJavascriptDir() - Method in interface org.jsweet.transpiler.JSweetOptions
The directory where the transpiler should put the extracted JavaScript files from candies.
getExtractedCandyJavascriptDir() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getExtractedJsFiles() - Method in class org.jsweet.transpiler.candy.CandyProcessor
 
getExtractedJsFilesByCandy() - Method in class org.jsweet.transpiler.candy.CandyProcessor
 
getFieldNameMapping(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets a field name mapping if any (null otherwise).
getFieldsWithInitializers() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getFile() - Method in class org.jsweet.transpiler.SourcePosition
The source file.
getFinalVariables() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getFirstEnclosingRootPackage(Symbol.PackageSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Finds the first (including itself) enclosing package annotated with @Root.
getFirstParent(Class<?>...) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the first tree in the scanning stack that matched one of the given tree types.
getFooterStatements() - Method in class org.jsweet.transpiler.JSweetContext
Gets the footer statements.
getFullMethodSignature(Symbol.MethodSymbol) - Static method in class org.jsweet.transpiler.util.Util
Gets the full signature of the given method.
getFunctionalTypeMappings() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the functional type mappings.
getFunctionalTypeMappings() - Method in class org.jsweet.transpiler.JSweetContext
Returns the functional type mappings.
getFunctionalTypeParameterCount(Type) - Method in class org.jsweet.transpiler.JSweetContext
Returns the number of arguments declared by a function interface.
getGeneratedMethodNames() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getGetSource(JCTree.JCCompilationUnit) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the Java source code for the given compilation unit.
getGlobalNpmPackageExecutablePath(String) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Gets the full path of a global package's JS main file installed with npm.
getGlobalNpmPackageNodeMainFilePath(String, String) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Gets the full path of a global package's (system) command installed with npm.
getGlobalNpmPackagePath(String) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Gets the full path of a global package installed with npm.
getGlobalsMappingString() - Method in class org.jsweet.transpiler.JSweetContext
Returns the TypeScript string for globals mapping.
getHeader(String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the header associated to the given key (null if non-existing key).
getHeader(String) - Method in class org.jsweet.transpiler.JSweetContext
Returns a header for the given key (null if never set).
getHeaderFile() - Method in interface org.jsweet.transpiler.JSweetOptions
Gets the file containing the header to be added to the generated files.
getHeaderFile() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getHeaders() - Method in class org.jsweet.transpiler.JSweetContext
Gets the headers.
getId() - Static method in class org.jsweet.transpiler.util.Util
Returns a unique id (incremental).
getIdentifier(Symbol) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
getImportedElements(String) - Method in class org.jsweet.transpiler.JSweetContext
The list of package names imported by the given m of the transpiled program.
getImportedName() - Method in class org.jsweet.transpiler.ModuleImportDescriptor
Gets the name of the import.
getImportedNames(String) - Method in class org.jsweet.transpiler.JSweetContext
The list of names imported by the given module of the transpiled program.
getImportedType() - Method in interface org.jsweet.transpiler.model.ImportElement
Returns the imported type (null if a static or wildcard import).
getImportedType(JCTree.JCImport) - Static method in class org.jsweet.transpiler.util.Util
Gets the imported type (wether statically imported or not).
getIndent() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
getIndentString() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Returns the current indentation as a string.
getIndex() - Method in interface org.jsweet.transpiler.model.ArrayAccessElement
Gets the expression passed as the index.
getInlinedConstructorArgs() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getInnerClass() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getInputDirList() - Method in interface org.jsweet.TranspilationTask
Gets the list of input directories this transpilation task works on.
getInputPosition() - Method in class org.jsweet.transpiler.util.SourceMap.Entry
The position in the input file.
getIterableExpression() - Method in interface org.jsweet.transpiler.model.ForeachLoopElement
The expression returning the iterable (or array) being looped over.
getIterationVariable() - Method in interface org.jsweet.transpiler.model.ForeachLoopElement
The iteration local variable.
getJavaFile() - Method in class org.jsweet.transpiler.SourceFile
Gets the Java file.
getJavaFileLastTranspiled() - Method in class org.jsweet.transpiler.SourceFile
Gets the timestamp of the last Java file transpilation.
getJdkSubclasses() - Method in class org.jsweet.transpiler.JSweetContext
Maps the name of a class to the JDK type it extends.
getJdkSuperclass(String, Set<String>) - Method in class org.jsweet.transpiler.JSweetContext
Gets the JDK type extended by the given subclass, if any.
getJsFile() - Method in class org.jsweet.transpiler.SourceFile
Gets the Javascript file (null until transpiled by JSweetTranspiler).
getJsFileLastTranspiled() - Method in class org.jsweet.transpiler.SourceFile
Gets the timestamp of the last generation of the Javascript file.
getJsMapFile() - Method in class org.jsweet.transpiler.SourceFile
Gets the Javascript map file (null if not generated).
getJsOutputDir() - Method in interface org.jsweet.transpiler.JSweetOptions
Gets the current JavaScript output directory.
getJsOutputDir() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getLangTypeMappings() - Method in class org.jsweet.transpiler.JSweetContext
 
getLangTypesSimpleNames() - Method in class org.jsweet.transpiler.JSweetContext
 
getLastPrintedChar() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets the lastly printed character.
getLastPrintedString(int) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets the last printed string for the given length.
getLeftHandSide() - Method in interface org.jsweet.transpiler.model.BinaryOperatorElement
Gets the left-hand side element.
getLine() - Method in class org.jsweet.transpiler.util.Position
The position's line.
getLocalClasses() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getMainMethod() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getMappedDocType(JSweetContext, JCTree, Type) - Static method in class org.jsweet.transpiler.util.JSDoc
Gets the JSDoc type from a Java type tree and/or type.
getMappedType(TypeMirror) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the string that corresponds to the given type, taking into account all type mappings.
getMessage(Object...) - Method in enum org.jsweet.transpiler.JSweetProblem
Gets the associated message.
getMethod() - Method in interface org.jsweet.transpiler.model.MethodInvocationElement
The invoked method as an element, if accessible.
getMethodName() - Method in interface org.jsweet.transpiler.model.MethodInvocationElement
The invoked method name.
getModuleImportDescriptor(CompilationUnitElement, String, TypeElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
This method implements the default behavior to generate module imports.
getModuleKind() - Method in interface org.jsweet.transpiler.JSweetOptions
Gets the module kind when transpiling to code using JavaScript modules.
getModuleKind() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getModuleResolution() - Method in interface org.jsweet.transpiler.JSweetOptions
Determines how modules get resolved.
getModuleResolution() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getName() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
getOnRollbacked() - Method in exception org.jsweet.transpiler.util.RollbackException
Gets the rollback handler.
getOperator() - Method in interface org.jsweet.transpiler.model.AssignmentWithOperatorElement
Gets operator (e.g.
getOperator() - Method in interface org.jsweet.transpiler.model.BinaryOperatorElement
The operator name.
getOperator() - Method in interface org.jsweet.transpiler.model.UnaryOperatorElement
The operator name.
getOperatorType() - Method in interface org.jsweet.transpiler.model.BinaryOperatorElement
Returns the operator's type, which is a functional type taking two parameters.
getOperatorType() - Method in interface org.jsweet.transpiler.model.UnaryOperatorElement
Returns the operator's type, which is a functional type taking two parameters.
getOptions() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getOrCreateOverload(Symbol.ClassSymbol, Symbol.MethodSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets or create an overload instance for the given class and method.
getOutput() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets this output of this printer.
getOutputPosition() - Method in class org.jsweet.transpiler.util.SourceMap.Entry
The position in the output file.
getOverload(Symbol.ClassSymbol, Symbol.MethodSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets an overload instance for the given class and method.
getPackage() - Method in interface org.jsweet.transpiler.model.CompilationUnitElement
Gets the package of this compilation unit.
getPackageByName(JSweetContext, String) - Static method in class org.jsweet.transpiler.util.Util
Looks up a package element from its qualified name.
getParameterName(int) - Method in class org.jsweet.transpiler.OverloadScanner.Overload
Gets the parameter name at the given index for an invalid overload.
getParent() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Returns the immediate parent in the printer's scanning stack.
getParent(Class<T>) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the first parent in the scanning stack matching the given type.
getParent(Class<T>, JCTree) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the first parent matching the given type, looking up from the given tree in the scanning stack.
getParentAdapter() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the parent adapter.
getParentElement() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the parent element in the printer's scanning stack.
getParentElement(Class<T>) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the parent element in the printer's scanning stack.
getParentElement() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the parent element in the printer's scanning stack.
getParentElement(Class<T>) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the parent element matching the given type within the scanning stack.
getParentOfParent() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Returns the parent of the immediate parent in the printer's scanning stack.
getPathToImportedClass() - Method in class org.jsweet.transpiler.ModuleImportDescriptor
Gets the path to the imported class.
getPosition() - Method in class org.jsweet.transpiler.util.Position
The position in the stream (-1 if not used).
getPositionStack() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
The position stack of the scanner.
getPrinter() - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
getPrinter() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the printer on which rely the adapter (this is not recommended).
getProblemCount() - Method in class org.jsweet.transpiler.util.ErrorCountTranspilationHandler
Returns the problem count (error + warning count).
getQualifiedName(TypeMirror) - Method in interface org.jsweet.transpiler.model.Util
Gets the qualified name for the given type.
getQualifiedTypeName(Symbol.TypeSymbol, boolean, boolean) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Gets the qualified name for a given type symbol.
getQualifiedTypeName(Symbol.TypeSymbol, boolean, boolean) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
getReferencedElement() - Method in interface org.jsweet.transpiler.model.IdentifierElement
Gets the element referenced by this identifier, if any (may be null if no referenced element).
getRelativePath(String, String) - Method in interface org.jsweet.transpiler.model.Util
Gets the relative path that links the two given paths.
getRelativePath(Symbol, Symbol) - Static method in class org.jsweet.transpiler.util.Util
Get the relative path to reach a symbol from another one.
getRelativePath(String, String) - Static method in class org.jsweet.transpiler.util.Util
Gets the relative path that links the two given paths.
getResult() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Gets the printed result as a string.
getRightHandSide() - Method in interface org.jsweet.transpiler.model.BinaryOperatorElement
Gets the right-hand side element.
getRootRelativeJavaName(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets the qualified name of a symbol relatively to the root package (potentially annotated with jsweet.lang.Root).
getRootRelativeName(Element) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the qualified name of an element, relatively to a possible @Root annotation.
getRootRelativeName(Map<Symbol, String>, Symbol, boolean) - Method in class org.jsweet.transpiler.JSweetContext
Gets the qualified name of a symbol relatively to the root package (potentially annotated with jsweet.lang.Root).
getRootRelativeName(Map<Symbol, String>, Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets the qualified name of a symbol relatively to the root package (potentially annotated with jsweet.lang.Root).
getRootRelativeName(Symbol) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
getRootRelativeName(Symbol, boolean) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
getScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
getScope(int) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
getSeverity() - Method in enum org.jsweet.transpiler.JSweetProblem
Gets the severity of this problem.
getSmallerParameterCount() - Method in class org.jsweet.transpiler.OverloadScanner.Overload
Returns parameter count of the method having the fewer parameters.
getSortedClassDeclarations(List<JCTree>) - Static method in class org.jsweet.transpiler.util.Util
Gets the inheritance-based sorted class declarations.
getSortedEntries(Comparator<SourceMap.Entry>) - Method in class org.jsweet.transpiler.util.SourceMap
Gets all the sorted entries in this source map agains the given comparator.
getSourceElement() - Method in class org.jsweet.transpiler.SourcePosition
The source element (can be null).
getSourceElements(T) - Method in class org.jsweet.transpiler.util.DirectedGraph
 
getSourceFilePath() - Method in interface org.jsweet.transpiler.model.CompilationUnitElement
Gets the path of the source file represented by this compilation unit.
getSourceFilePath(Element) - Method in interface org.jsweet.transpiler.model.Util
Gets the source file path if any.
getSourceFilePath(Element) - Static method in class org.jsweet.transpiler.util.Util
Gets the source file path of the given element.
getSourceFiles(File...) - Static method in class org.jsweet.transpiler.SourceFile
Gets all the Java source files found in the given dirs and their subdirs.
getSourceFiles(Iterable<File>) - Static method in class org.jsweet.transpiler.SourceFile
Gets all the Java source files found in the given dirs and their subdirs.
getSourceMap() - Method in class org.jsweet.transpiler.SourceFile
 
getSourceRoot() - Method in interface org.jsweet.transpiler.JSweetOptions
Gets the source root for the source map files.
getSourceRoot() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getStack() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Returns the printer's scanning stack.
getStartColumn() - Method in class org.jsweet.transpiler.SourcePosition
The start column in the source file.
getStartLine() - Method in class org.jsweet.transpiler.SourcePosition
The start line in the source file.
getStartPosition() - Method in class org.jsweet.transpiler.SourcePosition
The start position in the source file.
getStaticImports() - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Gets the map of static imports in the current compilation unit.
getStaticImportTarget(JCTree.JCCompilationUnit, String) - Static method in class org.jsweet.transpiler.util.Util
Tells if the given symbol is statically imported in the given compilation unit.
getStaticInitializerCount(Symbol.ClassSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets the static initializer count for the given class.
getTarget() - Method in interface org.jsweet.transpiler.model.ArrayAccessElement
Gets the expression passed being accessed as an array.
getTarget() - Method in interface org.jsweet.transpiler.model.AssignmentElement
Gets target variable of the assignment.
getTarget() - Method in interface org.jsweet.transpiler.model.AssignmentWithOperatorElement
Gets target variable of the assignment.
getTarget() - Method in exception org.jsweet.transpiler.util.RollbackException
Gets the target of the rollback.
getTargetElement() - Method in interface org.jsweet.transpiler.model.VariableAccessElement
Returns the target element holding the variable declaration (can be a type or an executable in case of a local variable).
getTargetExpression() - Method in interface org.jsweet.transpiler.model.MethodInvocationElement
The target expression of the invocation if any, null otherwise.
getTargetExpression() - Method in interface org.jsweet.transpiler.model.VariableAccessElement
Gets the target expression of the access (the part before the dot), if any.
getTargetPackage() - Method in class org.jsweet.transpiler.ModuleImportDescriptor
Gets the package of the element being imported.
getTopLevelPackage(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets the top-level package enclosing the given symbol.
getTranspilerOptions() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the transpiler options.
getTsFile() - Method in class org.jsweet.transpiler.SourceFile
Gets the Typescript file (null until transpiled by JSweetTranspiler).
getTsOutputDir() - Method in interface org.jsweet.transpiler.JSweetOptions
Gets the current TypeScript output directory.
getTsOutputDir() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
getType() - Method in interface org.jsweet.transpiler.model.ExtendedElement
Gets the type that corresponds to this element, if any.
getType(Class<?>) - Method in interface org.jsweet.transpiler.model.Util
Gets the type from an existing runtime class when possible (return null when the type cannot be found in the compiler's symbol table).
getTypeAsElement() - Method in interface org.jsweet.transpiler.model.ExtendedElement
Gets the standard element that corresponds to the type (if any).
getTypeByName(JSweetContext, String) - Static method in class org.jsweet.transpiler.util.Util
Looks up a type element from its qualified name.
getTypeInitalValue(String) - Method in class org.jsweet.transpiler.util.Util
Gets the TypeScript initial default value for a type.
getTypeInitialValue(Type) - Static method in class org.jsweet.transpiler.util.Util
Returns the literal for a given type inital value.
getTypeMappingTarget(String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Returns the type the given type name is mapped through the PrinterAdapter.addTypeMapping(String, String) or PrinterAdapter.addTypeMapping(String, String) function.
getTypeMappingTarget(String) - Method in class org.jsweet.transpiler.JSweetContext
Returns the type the given type name is mapped through the JSweetContext.addTypeMapping(String, String) or JSweetContext.addTypeMapping(String, String) function.
getUsedModules() - Method in class org.jsweet.transpiler.JSweetContext
The list of modules used by the transpiled program.
getValue() - Method in interface org.jsweet.transpiler.model.AssignmentElement
Gets the expression passed as the index.
getValue() - Method in interface org.jsweet.transpiler.model.AssignmentWithOperatorElement
Gets the expression passed as the index.
getValue() - Method in interface org.jsweet.transpiler.model.LiteralElement
Gets the corresponding value as an object.
getVariable() - Method in interface org.jsweet.transpiler.model.VariableAccessElement
Gets the accessed variable element .
getVariableName() - Method in interface org.jsweet.transpiler.model.VariableAccessElement
Gets the name of the accessed variable.
getVersionNumber() - Static method in class org.jsweet.JSweetConfig
The version coming from Maven.
getWarningCount() - Method in class org.jsweet.transpiler.util.ErrorCountTranspilationHandler
Returns the warning count.
getWatchedFile(File) - Method in class org.jsweet.transpiler.JSweetTranspiler
Gets the watched files that corresponds to the given Java file.
getWatchedFile(File) - Method in class org.jsweet.transpiler.TypeScript2JavaScriptWithTscTranspiler
 
getWatchedFiles() - Method in class org.jsweet.transpiler.JSweetTranspiler
Returns the watched files when the transpiler is in watch mode.
getWatchedFiles() - Method in class org.jsweet.transpiler.TypeScript2JavaScriptWithTscTranspiler
 
getWildcardName(JCTree.JCWildcard) - Method in class org.jsweet.transpiler.JSweetContext
Gets the wildcard name if any.
getWildcards(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Gets the registered wildcards for the given type parameter holder.
getWorkingDirectory() - Method in class org.jsweet.transpiler.JSweetTranspiler
Gets this transpiler working directory (where the temporary files are stored).
GlobalBeforeTranslationScanner - Class in org.jsweet.transpiler
This AST scanner performs global analysis and fills up the context with information that will be used by the translator.
GlobalBeforeTranslationScanner(TranspilationHandler, JSweetContext) - Constructor for class org.jsweet.transpiler.GlobalBeforeTranslationScanner
Creates a new global scanner.
globalImports - Variable in class org.jsweet.transpiler.JSweetContext
Globally imported name (in the global namespace).
GLOBALS_CLASS_NAME - Static variable in class org.jsweet.JSweetConfig
The constant for the classes where members are generated as top-level elements (global variables and functions).
GLOBALS_PACKAGE_NAME - Static variable in class org.jsweet.JSweetConfig
The constant for the package generates top-level classes (one cannot use unnamed package in Java).
globalStaticInitializersDependencies - Variable in class org.jsweet.transpiler.StaticInitilializerAnalyzer
A map containing the static initializers dependencies when not using modules (empty otherwise).
grabMethodsToBeImplemented(List<Symbol.MethodSymbol>, Symbol.TypeSymbol) - Method in class org.jsweet.transpiler.JSweetContext
 
grabSuperClassNames(Set<String>, Element) - Method in class org.jsweet.transpiler.JSweetContext
Grabs the names of all the superclasses.
grabSupportedInterfaceNames(Set<String>, Symbol.TypeSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Grabs the names of all the support interfaces in the class and interface hierarchy.

H

hasAbstractMethod(Symbol.ClassSymbol) - Static method in class org.jsweet.transpiler.util.Util
Returns true if the given class declares an abstract method.
hasAnnotationType(Element, String...) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Returns true if the given element is annotated with one of the given annotation types.
hasAnnotationType(Symbol, String...) - Method in class org.jsweet.transpiler.JSweetContext
Tells if the given symbol is annotated with one of the given annotation types.
hasAnonymousFunction(Symbol.TypeSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Tells if the given type has a anonymous function (instances can be used as lambdas).
hasClassNameMapping(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Tells if the given class has a class name mapping.
hasDeprecatedCandy() - Method in class org.jsweet.transpiler.candy.CandyProcessor
Checks if the candy store contains a deprecated candy.
hasEdge(T, T) - Method in class org.jsweet.transpiler.util.DirectedGraph
Tells if this graph contains an edge between the given source and the destination elements/nodes.
hasFieldNameMapping(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Tells if the given field has a field name mapping.
hashCode() - Method in class org.jsweet.transpiler.candy.CandyDescriptor
 
hashCode() - Method in class org.jsweet.transpiler.SourceFile
 
hashCode() - Method in class org.jsweet.transpiler.util.DirectedGraph
 
hasJsFiles() - Method in class org.jsweet.transpiler.candy.CandyDescriptor
 
hasParent(Symbol.ClassSymbol, String...) - Static method in class org.jsweet.transpiler.util.Util
Recursively looks up one of the given types in the type hierachy of the given class.
hasTypeParameters(Symbol.MethodSymbol) - Static method in class org.jsweet.transpiler.util.Util
Tells if the method uses a type parameter.
hasVarargs(Symbol.MethodSymbol) - Static method in class org.jsweet.transpiler.util.Util
Tells if the given method has varargs.
header - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'header' option.
higherThan(EcmaScriptComplianceLevel) - Method in enum org.jsweet.transpiler.EcmaScriptComplianceLevel
Compares two compliance levels.

I

IdentifierElement - Interface in org.jsweet.transpiler.model
An AST node for a Java identifier.
ignoreDefinitions - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'ignoreDefinitions' option.
ignoreWildcardBounds - Variable in class org.jsweet.transpiler.JSweetContext
Tells JSweet to ignore wildcard bounds.
importedTopPackages - Variable in class org.jsweet.transpiler.JSweetContext
Imported top packages (used to avoid clashes with local variables when bundle is on).
ImportElement - Interface in org.jsweet.transpiler.model
An AST node for a Java import.
inArgListTail - Variable in class org.jsweet.transpiler.util.AbstractTreePrinter
 
INDENT - Static variable in class org.jsweet.transpiler.util.AbstractTreePrinter
The constant string for indentation.
INDENT_MARKER - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A regular expression for matching indent markers in @Replace expression.
INDEXED_DELETE_FUCTION_NAME - Static variable in class org.jsweet.JSweetConfig
 
INDEXED_DELETE_STATIC_FUCTION_NAME - Static variable in class org.jsweet.JSweetConfig
 
INDEXED_GET_FUCTION_NAME - Static variable in class org.jsweet.JSweetConfig
The constant for indexed access function.
INDEXED_GET_STATIC_FUCTION_NAME - Static variable in class org.jsweet.JSweetConfig
 
INDEXED_SET_FUCTION_NAME - Static variable in class org.jsweet.JSweetConfig
The constant for indexed assignment function.
INDEXED_SET_STATIC_FUCTION_NAME - Static variable in class org.jsweet.JSweetConfig
The constant for indexed assignment function.
inEdges - Variable in class org.jsweet.transpiler.util.DirectedGraph.Node
The edges entering this node.
initClassPath(String) - Static method in class org.jsweet.JSweetConfig
Initialize the classpath to include tools.jar.
initExportedVarMap() - Method in class org.jsweet.transpiler.eval.RuntimeEval
 
initNode(TranspilationHandler) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
initNode() - Static method in class org.jsweet.transpiler.util.ProcessUtil
Initializes the node command paths (OS-specific initializations).
inRollback - Variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
installNodePackage(String, String, boolean) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Installs a node package with npm (assumes that node is installed).
INSTANCE - Static variable in class org.jsweet.transpiler.model.ExtendedElementFactory
The default factory instance.
INSTANCE - Static variable in class org.jsweet.transpiler.TypeScript2JavaScriptWithTsserverTranspiler
 
INTERFACES_FIELD_NAME - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
The name of the field where the implemented interface names are stored in the generated TypeScript code (for instanceof operator).
InvocationElement - Interface in org.jsweet.transpiler.model
The model element for a method invocation.
isAmbientDeclaration(Element) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Tells if the given element is ambient (part of a def.* package or within an @Ambient-annotated scope).
isAmbientDeclaration(Symbol) - Method in class org.jsweet.transpiler.JSweetContext
Tells if the given symbol is ambient (part of a def.* package or within an @Ambient-annotated scope).
isAnonymousClass() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isAnonymousClass() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
isAnonymousClass(JCTree.JCNewClass) - Method in class org.jsweet.transpiler.JSweetContext
Returns true if this new class expression defines an anonymous class.
isArithmeticOperator(Tree.Kind) - Static method in class org.jsweet.transpiler.util.Util
Returns true is an arithmetic operator.
isArithmeticOrLogicalOperator(Tree.Kind) - Static method in class org.jsweet.transpiler.util.Util
Returns true is an arithmetic operator.
isAssignable(Types, Symbol.TypeSymbol, Symbol.TypeSymbol) - Static method in class org.jsweet.transpiler.util.Util
Tells if two type symbols are assignable.
isBundle() - Method in interface org.jsweet.transpiler.JSweetOptions
Tells if this transpiler generates JavaScript bundles for running in a Web browser.
isBundle() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isComparisonOperator(Tree.Kind) - Static method in class org.jsweet.transpiler.util.Util
Returns true is an comparison operator.
isComplexEnum() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isConstant() - Method in interface org.jsweet.transpiler.model.ExtendedElement
Tells if this extended element is a constant expression.
isConstant(JCTree.JCExpression) - Static method in class org.jsweet.transpiler.util.Util
Tells if the given expression is a constant.
isConstantOrNullField(JCTree.JCVariableDecl) - Static method in class org.jsweet.transpiler.util.Util
Tells if that variable is a non-static final field initialized with a literal value.
isConstructor() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isCoreFunctionalType(Symbol.TypeSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Returns true if the given type symbol corresponds to a core functional type.
isCoreType(TypeMirror) - Method in interface org.jsweet.transpiler.model.Util
Tells if the given type is a core type.
isCoreType(TypeMirror) - Static method in class org.jsweet.transpiler.util.Util
Returns true is the type is a core.
isDebugMode(JCTree.JCMethodDecl) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
isDebugMode() - Method in interface org.jsweet.transpiler.JSweetOptions
If true, the transpiler generates code that can be debugged with JavaScript.
isDebugMode() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isDeclarationOrSubClassDeclaration(Types, Type.ClassType, String) - Static method in class org.jsweet.transpiler.util.Util
 
isDeclarationOrSubClassDeclarationBySimpleName(Types, Type.ClassType, String) - Static method in class org.jsweet.transpiler.util.Util
 
isDeclareClassScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isDecoratorScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isDefaultMethodScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isDeprecated(Element) - Method in interface org.jsweet.transpiler.model.Util
Tells if the given element is deprecated.
isDeprecated(Element) - Static method in class org.jsweet.transpiler.util.Util
 
isDisabled() - Method in class org.jsweet.transpiler.util.ErrorCountTranspilationHandler
Returns false if this handler actually counts anything.
isDisableSinglePrecisionFloats() - Method in interface org.jsweet.transpiler.JSweetOptions
By default, for a target version >=ES5, JSweet will force Java floats to be mapped to JavaScript numbers that will be constrained with the Math.fround function.
isDisableSinglePrecisionFloats() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isEmpty() - Method in class org.jsweet.transpiler.util.DirectedGraph
Returns true if this graph has no nodes.
isEnumScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isEnumWrapperClassScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isEraseVariableTypes() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isFillSourceMap() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Tells if this printer tries to preserve the original line numbers of the Java input.
isFunctionalType(Symbol.TypeSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Returns true if the given type symbol corresponds to a functional type (in the TypeScript way).
isGenerateDeclarations() - Method in interface org.jsweet.transpiler.JSweetOptions
Generates d.ts files along with the js files.
isGenerateDeclarations() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isGenerateDefinitions() - Method in interface org.jsweet.transpiler.JSweetOptions
Generated definitions from def.* packages in d.ts files.
isGenerateDefinitions() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isGenerateJsFiles() - Method in interface org.jsweet.transpiler.JSweetOptions
If false, do not compile TypeScript output (let an external TypeScript compiler do so).
isGenerateJsFiles() - Method in class org.jsweet.transpiler.JSweetTranspiler
Tells if the JavaScript generation is enabled/disabled.
isGenerateSourceMaps() - Method in interface org.jsweet.transpiler.JSweetOptions
Tells if the transpiler generates js.map files for Java debugging.
isGenerateSourceMaps() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isGenerateTsFiles() - Method in interface org.jsweet.transpiler.JSweetOptions
If false, do not generate TypeScript output (just validate the Java source code and do not transpile anything).
isGenerateTsFiles() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isGlobalsClassName(String) - Static method in class org.jsweet.transpiler.util.Util
Tells if this qualified name denotes a JSweet globals class.
isHasConstructorOverloadWithSuperClass() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isHasDeclaredConstructor() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isHasInnerClass() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isIgnoreAssertions() - Method in interface org.jsweet.transpiler.JSweetOptions
Tells if the transpiler should ignore the 'assert' statements or generate appropriate code.
isIgnoreAssertions() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isIgnoreCandiesTypeScriptDefinitions() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isIgnored(JCTree.JCClassDecl) - Method in class org.jsweet.transpiler.JSweetContext
Returns true if this class declaration is not to be output by the transpiler.
isIgnoreJavaErrors() - Method in interface org.jsweet.transpiler.JSweetOptions
If true, JSweet will ignore any message reported by Java (including error).
isIgnoreJavaErrors() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isIgnoreJavaFileNameError() - Method in interface org.jsweet.transpiler.JSweetOptions
Generates output code even if the main class is not placed within a file of the same name.
isIgnoreJavaFileNameError() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isIgnoreTypeScriptErrors() - Method in interface org.jsweet.transpiler.JSweetOptions
If true, JSweet will ignore any message reported by TypeScript (including error) and the compilation will be successful if no Java error is raised.
isIgnoreTypeScriptErrors() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isImported(JCTree.JCCompilationUnit, Symbol.TypeSymbol) - Static method in class org.jsweet.transpiler.util.Util
Tells if the given type is imported in the given compilation unit.
isInnerClass() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isInnerClassNotStatic() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isInstalledWithNpm(String) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Tells if this node command is installed.
isIntegral(TypeMirror) - Method in interface org.jsweet.transpiler.model.Util
Tells if the given type is an integral type (int, long, byte).
isIntegral(Type) - Static method in class org.jsweet.transpiler.util.Util
Returns true is the type is an integral numeric value.
isInterface(Symbol.TypeSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Tells if the given type is a Java interface.
isInterfaceScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isInvalidOverload(Symbol.MethodSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Tells if that method is part of an invalid overload in its declaring class.
isInvocable(Types, Type.MethodType, Type.MethodType) - Static method in class org.jsweet.transpiler.util.Util
Tells if a method can be invoked with some given parameter types.
isJDKPath(String) - Static method in class org.jsweet.JSweetConfig
Tells if this qualified name belongs to the JDK (starts with or ).
isJDKReplacementMode() - Static method in class org.jsweet.JSweetConfig
 
isJSweetPath(String) - Static method in class org.jsweet.JSweetConfig
Tells if this qualified name belongs to one of the JSweet core package.
isLibPath(String) - Static method in class org.jsweet.JSweetConfig
Tells if this qualified name belongs to any TypeScript library definition (starts with "def").
isLiteralExpression(JCTree.JCExpression) - Static method in class org.jsweet.transpiler.util.Util
 
isLocalClass() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isMappedType(String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Returns true if the given type name is mapped through the PrinterAdapter.addTypeMapping(String, String) or PrinterAdapter.addTypeMapping(String, String) function.
isMappedType(String) - Method in class org.jsweet.transpiler.JSweetContext
Returns true if the given type name is mapped through the JSweetContext.addTypeMapping(String, String) or JSweetContext.addTypeMapping(String, String) function.
isNodePackageInstalled(String) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Checks if a node package has been installed locally.
isNoRootDirectories() - Method in interface org.jsweet.transpiler.JSweetOptions
Tells if this transpiler skips the root directories (packages annotated with @jsweet.lang.Root) so that the generated file hierarchy starts at the root directories rather than including the entire directory structure.
isNoRootDirectories() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isNullLiteral(JCTree) - Static method in class org.jsweet.transpiler.util.Util
Tells if that tree is the null literal.
isNumber(TypeMirror) - Method in interface org.jsweet.transpiler.model.Util
Tells if the given type is a number.
isNumber(TypeMirror) - Static method in class org.jsweet.transpiler.util.Util
Returns true is the type is a number.
isOverridingBuiltInJavaObjectMethod(Symbol.MethodSymbol) - Static method in class org.jsweet.transpiler.util.Util
 
isPackageErased(Symbol.PackageSymbol) - Method in class org.jsweet.transpiler.JSweetContext
Returns true if the given package is erased (it could be erased because a parent package is erased).
isParent(Symbol.TypeSymbol, Symbol.TypeSymbol) - Static method in class org.jsweet.transpiler.util.Util
Looks up a class in the given class hierarchy and returns true if found.
isPreserveSourceLineNumbers() - Method in interface org.jsweet.transpiler.JSweetOptions
Deprecated.
isPreserveSourceLineNumbers() - Method in class org.jsweet.transpiler.JSweetTranspiler
Deprecated.
isRemovedSuperclass() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isRootPackage(Element) - Method in class org.jsweet.transpiler.JSweetContext
Returns true if the given symbol is a root package (annotated with @Root or a definition package).
isSkipTypeAnnotations() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
isSkipTypeScriptChecks() - Method in interface org.jsweet.transpiler.JSweetOptions
 
isSkipTypeScriptChecks() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isSourceElement(Element) - Method in interface org.jsweet.transpiler.model.Util
Tells if the given element is part of the transpiled sources.
isSourceElement(Element) - Static method in class org.jsweet.transpiler.util.Util
Tells if the given element is within the Java sources being compiled.
isStatic() - Method in interface org.jsweet.transpiler.model.ImportElement
Tells if this import is static or not.
isStringLiteral() - Method in interface org.jsweet.transpiler.model.ExtendedElement
Tells if this extended element is a string literal.
isSubstituteSuperTypes() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Tells if this adapter substitutes types in extends or implements clauses.
isSubstituteSuperTypes() - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
isTopLevelScope() - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
isTscWatchMode() - Method in interface org.jsweet.transpiler.JSweetOptions
 
isTscWatchMode() - Method in class org.jsweet.transpiler.JSweetTranspiler
Tells if this transpiler is using a Tsc watch process to automatically regenerate the javascript when one of the source file changes.
isUsingJavaRuntime() - Method in class org.jsweet.transpiler.candy.CandyProcessor
Returns true if the candy store contains the J4TS candy.
isUsingJavaRuntime() - Method in class org.jsweet.transpiler.JSweetContext
Tells if the transpiler is using J4TS Java runtime.
isUsingModules() - Method in interface org.jsweet.transpiler.JSweetOptions
 
isUsingModules() - Method in class org.jsweet.transpiler.JSweetTranspiler
Tells if this transpiler transpiles to code using JavaScript modules.
isValid - Variable in class org.jsweet.transpiler.OverloadScanner.Overload
Tells if this overload is valid wrt to JSweet conventions.
isVarargs(JCTree.JCVariableDecl) - Static method in class org.jsweet.transpiler.util.Util
Tells if this parameter declaration is varargs.
isVerbose() - Method in interface org.jsweet.transpiler.JSweetOptions
If true, JSweet has been launched in verbose mode.
isVerbose() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
isVersionHighEnough(String, String) - Static method in class org.jsweet.transpiler.util.ProcessUtil
 
isWildcard() - Method in interface org.jsweet.transpiler.model.ImportElement
Tells if this import is a wildcard import or not.
isWindows() - Static method in class org.jsweet.transpiler.util.ProcessUtil
 
iterator() - Method in class org.jsweet.transpiler.util.DirectedGraph
Return an iterator to iterate on graph nodes.

J

Java2TypeScriptAdapter - Class in org.jsweet.transpiler.extension
This is an adapter for the TypeScript code generator.
Java2TypeScriptAdapter(JSweetContext) - Constructor for class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
Creates a root adapter (with no parent).
Java2TypeScriptAdapter(PrinterAdapter) - Constructor for class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
Creates a new adapter that will try delegate to the given parent adapter when not implementing its own behavior.
Java2TypeScriptTranslator - Class in org.jsweet.transpiler
This is a TypeScript printer for translating the Java AST to a TypeScript program.
Java2TypeScriptTranslator(PrinterAdapter, TranspilationHandler, JSweetContext, JCTree.JCCompilationUnit, boolean) - Constructor for class org.jsweet.transpiler.Java2TypeScriptTranslator
Creates a new TypeScript translator.
Java2TypeScriptTranslator.ClassScope - Class in org.jsweet.transpiler
 
Java2TypeScriptTranslator.ComparisonMode - Enum in org.jsweet.transpiler
A state flag indicating the comparison mode to be used by this printer for printing comparison operators.
JAVA_KEYWORDS - Static variable in class org.jsweet.JSweetConfig
This map contains the Java keywords that are taken into account in the generation for avoiding keyword clashes.
JavaCompilationEnvironment - Class in org.jsweet.transpiler.util
This utility class encapsulates a javac compilation environment.
JavaEval - Class in org.jsweet.transpiler.eval
 
JavaEval(JSweetTranspiler, EvalOptions) - Constructor for class org.jsweet.transpiler.eval.JavaEval
 
JavaScriptEval - Class in org.jsweet.transpiler.eval
 
JavaScriptEval(EvalOptions, JavaScriptEval.JavaScriptRuntime) - Constructor for class org.jsweet.transpiler.eval.JavaScriptEval
 
JavaScriptEval.JavaScriptRuntime - Enum in org.jsweet.transpiler.eval
 
jdkAllowed - Static variable in class org.jsweet.transpiler.TypeChecker
 
JS_KEYWORD_PREFIX - Static variable in class org.jsweet.JSweetConfig
The prefix to add to variables that clash with JS keywords.
JS_KEYWORDS - Static variable in class org.jsweet.JSweetConfig
This map contains the JS keywords that are taken into account in the generation for avoiding keyword clashes.
jsDirPath - Variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
JSDoc - Class in org.jsweet.transpiler.util
A utility class to print JSDoc comments from regular Java comments.
jsFilesPaths - Variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
jsout - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'jsout' option.
jsOutputDirPath - Variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
JSweetCommandLineLauncher - Class in org.jsweet
The command line launcher for the JSweet transpiler.
JSweetConfig - Class in org.jsweet
This class contains static constants and utilities.
JSweetContext - Class in org.jsweet.transpiler
The transpiler context, which is an extension of the Java compiler context.
JSweetContext(JSweetOptions) - Constructor for class org.jsweet.transpiler.JSweetContext
Creates a new JSweet transpilation context.
JSweetDiagnosticHandler - Class in org.jsweet.transpiler
This class takes care of formatting and reporting errors reported by Javac.
JSweetDiagnosticHandler(TranspilationHandler, JSweetContext) - Constructor for class org.jsweet.transpiler.JSweetDiagnosticHandler
Creates a new diagnostic handler.
JSweetFactory - Class in org.jsweet.transpiler
The factory object is the one creating instances for key JSweet transpilation elements.
JSweetFactory() - Constructor for class org.jsweet.transpiler.JSweetFactory
An empty constructor is mandatory for all subclasses.
JSweetFileWatcher - Class in org.jsweet
A watch thread to recompile the project when changed.
JSweetFileWatcher(TranspilationTask) - Constructor for class org.jsweet.JSweetFileWatcher
Creates a new watcher with a JSweet transpilation task, which is going to be executed when a watched file changes.
JSweetOptions - Interface in org.jsweet.transpiler
This interface holds all the JSweet transpiler configuration and options.
JSweetProblem - Enum in org.jsweet.transpiler
This enumeration holds all the possible JSweet transpilation problems (warnings and errors) and the associated messages.
JSweetTranspiler - Class in org.jsweet.transpiler
The actual JSweet transpiler.
JSweetTranspiler(JSweetFactory) - Constructor for class org.jsweet.transpiler.JSweetTranspiler
Creates a JSweet transpiler, with the default values.
JSweetTranspiler(JSweetFactory, File, File, File, String) - Constructor for class org.jsweet.transpiler.JSweetTranspiler
Creates a JSweet transpiler.
JSweetTranspiler(JSweetFactory, File, File, File, File, String) - Constructor for class org.jsweet.transpiler.JSweetTranspiler
Creates a JSweet transpiler.
JSweetTranspiler(File, JSweetFactory, File, File, File, File, String) - Constructor for class org.jsweet.transpiler.JSweetTranspiler
Creates a JSweet transpiler.
JSweetTranspiler(File, File, JSweetFactory, File, File, File, File, String) - Constructor for class org.jsweet.transpiler.JSweetTranspiler
Creates a JSweet transpiler.

L

LANG_PACKAGE - Static variable in class org.jsweet.JSweetConfig
The constant for the JSweet lang package.
LANG_PACKAGE_ALT - Static variable in class org.jsweet.JSweetConfig
The constant for the JSweet lang package.
langTypesMapping - Variable in class org.jsweet.transpiler.JSweetContext
 
langTypesSimpleNames - Variable in class org.jsweet.transpiler.JSweetContext
 
lastUpdateTimestamp - Variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
lazyInitializedStatics - Variable in class org.jsweet.transpiler.JSweetContext
Holds all the static fields that are lazy intitialized.
LIBS_PACKAGE - Static variable in class org.jsweet.JSweetConfig
The constant for the JSweet lib package (where the definitions need to be).
linkPattern - Static variable in class org.jsweet.transpiler.util.JSDoc
A regexp that matches JavaDoc @link expressions.
list(T...) - Static method in class org.jsweet.transpiler.util.Util
Varargs to mutable list.
LiteralElement - Interface in org.jsweet.transpiler.model
An AST node for a Java literal.
log - Variable in class org.jsweet.transpiler.util.JavaCompilationEnvironment
The log object.
logger - Variable in class org.jsweet.transpiler.eval.RuntimeEval
 
logger - Variable in class org.jsweet.transpiler.extension.PrinterAdapter
 
logger - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A logger for internal messages.
logger - Static variable in class org.jsweet.transpiler.JSweetContext
 
logger - Static variable in class org.jsweet.transpiler.JSweetFactory
A logger to be used for internal messages.
logger - Variable in class org.jsweet.transpiler.TypeScript2JavaScriptTranspiler
 
lookupDecoratorAnnotation(String) - Method in class org.jsweet.transpiler.JSweetContext
Registers a decorator annotation in the context.
lookupGlobalMethod(String) - Method in class org.jsweet.transpiler.JSweetContext
Looks up a registered method from its fully qualified name.
lookupTree(JSweetContext, Element) - Static method in class org.jsweet.transpiler.util.Util
Gets the tree that corresponds to the given element (this is a slow implementation - do not use intensively).

M

main(String[]) - Static method in class org.jsweet.JSweetCommandLineLauncher
JSweet transpiler command line entry point.
main(String[]) - Static method in class org.jsweet.transpiler.util.DirectedGraph
Just for testing.
MAIN_FUNCTION_NAME - Static variable in class org.jsweet.JSweetConfig
The constant for main functions (translate to global code, which is executed when the file is loaded).
mainMethod - Variable in class org.jsweet.transpiler.util.MainMethodFinder
 
MainMethodFinder - Class in org.jsweet.transpiler.util
 
MainMethodFinder() - Constructor for class org.jsweet.transpiler.util.MainMethodFinder
 
manageAnnotation(Element, String) - Method in class org.jsweet.transpiler.extension.AnnotationManager
Manages the given annotation type, by returning one of the possible actions (see AnnotationManager.Action).
MapAdapter - Class in org.jsweet.transpiler.extension
This optional adapter tunes the JavaScript generation to use JavaScript ES6 maps to implement Java maps.
MapAdapter(PrinterAdapter) - Constructor for class org.jsweet.transpiler.extension.MapAdapter
Creates the adapter and initialize all type mappings.
mapTypes - Static variable in class org.jsweet.transpiler.extension.MapAdapter
Java types that need to be transpiled to ES6 maps.
MAVEN_CANDIES_GROUP - Static variable in class org.jsweet.JSweetConfig
The Maven group id where candies are deployed.
MAVEN_JAVA_OVERRIDE_ARTIFACT - Static variable in class org.jsweet.JSweetConfig
The Maven artifact full name for the Java override project.
merge(Types, OverloadScanner.Overload) - Method in class org.jsweet.transpiler.OverloadScanner.Overload
Merges the given overload with a subclass one.
METHOD_NAME_MARKER - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
A regular expression for matching method name markers in @Replace expression.
MethodInvocationElement - Interface in org.jsweet.transpiler.model
An AST node for a Java method invocation.
methodName - Variable in class org.jsweet.transpiler.OverloadScanner.Overload
The method name.
methods - Variable in class org.jsweet.transpiler.OverloadScanner.Overload
The methods carrying the same name.
modelTypes - Variable in class org.jsweet.transpiler.JSweetContext
 
modelVersion - Variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
module - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'module' option.
MODULE_FILE_NAME - Static variable in class org.jsweet.JSweetConfig
The TypeScript module file names, when transpiling with modules (without extension).
ModuleImportDescriptor - Class in org.jsweet.transpiler
This class describes a module import.
ModuleImportDescriptor(PackageElement, String, String) - Constructor for class org.jsweet.transpiler.ModuleImportDescriptor
 
ModuleKind - Enum in org.jsweet.transpiler
An enumeration of the support module kinds.
moduleResolution - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'moduleResolution' option.
ModuleResolution - Enum in org.jsweet.transpiler
An enumeration of the support module resolution.

N

name - Variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
names - Variable in class org.jsweet.transpiler.JSweetContext
The Java compiler names for fast access.
names - Variable in class org.jsweet.transpiler.util.JavaCompilationEnvironment
The compiler's name holder.
needsImport(ImportElement, String) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
needsImport(ImportElement, String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Returns the import qualified id if the given import requires an import statement to be printed.
needsImport(ImportElement, String) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
NEW_FUNCTION_NAME - Static variable in class org.jsweet.JSweetConfig
 
NewArrayElement - Interface in org.jsweet.transpiler.model
An AST node for a Java new array expression.
NewClassElement - Interface in org.jsweet.transpiler.model
An AST node for a Java new class expression.
Node(DirectedGraph<T>, T) - Constructor for class org.jsweet.transpiler.util.DirectedGraph.Node
Creates a new node for the given graph and holding the given element.
NODE_COMMAND - Static variable in class org.jsweet.transpiler.util.ProcessUtil
The node command name (can be full path in some environments).
NODE_MINIMUM_VERSION - Static variable in class org.jsweet.transpiler.util.ProcessUtil
 
noRootDirectories - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'noRootDirectories' option.
NPM_COMMAND - Static variable in class org.jsweet.transpiler.util.ProcessUtil
The npm command name (can be full path in some environments).
NPM_DIR - Static variable in class org.jsweet.transpiler.util.ProcessUtil
A static field that stores the JSweet npm directory.
NUMBER_TYPE_NAMES - Static variable in class org.jsweet.transpiler.TypeChecker
Java types that represent numbers (simple names).
NUMBER_TYPES - Static variable in class org.jsweet.transpiler.TypeChecker
Java types that represent numbers (qualified names).

O

OBJECT_CLASSNAME - Static variable in class org.jsweet.JSweetConfig
The fully qualified name of a JavaScript Object in JSweet.
onCompleted(JSweetTranspiler, boolean, SourceFile[]) - Method in interface org.jsweet.transpiler.TranspilationHandler
This method is invoked when the tranpilation process ends.
onCompleted(JSweetTranspiler, boolean, SourceFile[]) - Method in class org.jsweet.transpiler.util.AbstractDelegatedTranspilationHandler
 
onCompleted(JSweetTranspiler, boolean, SourceFile[]) - Method in class org.jsweet.transpiler.util.ConsoleTranspilationHandler
 
onRollbacked(JCTree) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
onRollbacked(JCTree) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
A global handler to be called when a rollback operation terminates.
options - Variable in class org.jsweet.transpiler.JSweetContext
JSweet transpilation options.
options - Static variable in interface org.jsweet.transpiler.JSweetOptions
All the supported options.
options - Variable in class org.jsweet.transpiler.util.JavaCompilationEnvironment
The compiler's options.
org.jsweet - package org.jsweet
This package provides the JSweet configuration classes and some command line launchers.
org.jsweet.transpiler - package org.jsweet.transpiler
This package contains the JSweet Java to JavaScript transpiler implementation.
org.jsweet.transpiler.candy - package org.jsweet.transpiler.candy
This package contains the candies processing implementation.
org.jsweet.transpiler.eval - package org.jsweet.transpiler.eval
 
org.jsweet.transpiler.extension - package org.jsweet.transpiler.extension
This package contains the basic extensions of the JSweet transpiler, as printer adapters.
org.jsweet.transpiler.model - package org.jsweet.transpiler.model
This package contains a extension of the Java model (javax.lang.model ) to cover Java expressions and statements.
org.jsweet.transpiler.util - package org.jsweet.transpiler.util
This package contains utilities for the JSweet transpiler.
outEdges - Variable in class org.jsweet.transpiler.util.DirectedGraph.Node
The edges leaving from this node.
OUTPUT_LOGGER - Static variable in interface org.jsweet.transpiler.TranspilationHandler
This is the global output logger that should be used to print out messages, warnings and errors to the console.
Overload() - Constructor for class org.jsweet.transpiler.OverloadScanner.Overload
 
OverloadScanner - Class in org.jsweet.transpiler
This AST scanner detects method overloads and gather them into OverloadScanner.Overload objects.
OverloadScanner(TranspilationHandler, JSweetContext) - Constructor for class org.jsweet.transpiler.OverloadScanner
Creates a new overload scanner.
OverloadScanner.Overload - Class in org.jsweet.transpiler
Gathers methods overloading each other.

P

packageDependencies - Variable in class org.jsweet.transpiler.JSweetContext
A graph containing the module dependencies when using modules (empty otherwise).
paramPattern - Static variable in class org.jsweet.transpiler.util.JSDoc
A regexp that matches JavaDoc @param expressions.
PARENT_CLASS_FIELD_NAME - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
The name of the field where the parent class is stored in the generated TypeScript code.
parseAndAttributeJavaFiles(List<File>) - Method in class org.jsweet.transpiler.util.JavaCompilationEnvironment
Parses and attributes the given files within this compilation environment.
performEval(SourceFile[]) - Method in class org.jsweet.transpiler.eval.JavaEval
 
performEval(Collection<File>) - Method in class org.jsweet.transpiler.eval.JavaScriptEval
 
Position - Class in org.jsweet.transpiler.util
Represents a generic immutable position.
Position(int, int, int) - Constructor for class org.jsweet.transpiler.util.Position
Creates a new position.
Position(int, int) - Constructor for class org.jsweet.transpiler.util.Position
Creates a new position.
Position(Position) - Constructor for class org.jsweet.transpiler.util.Position
Creates a new position.
print(ExtendedElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Prints a generic element by delegating to the printer.
print(String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Prints a string by delegating to the printer.
print(Name) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Prints a name by delegating to the printer.
print(String, ExtendedElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Print either a string, or a tree if the string is null.
print(ExtendedElement, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
print(String, JCTree) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints either a string, or the tree if the the string is null.
print(JCTree) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Print a given AST.
print(String) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Outputs a string (new lines are not allowed).
printAnyTypeArguments(int) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printArgList(List<? extends ExtendedElement>) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Prints an argument list by delegating to the printer.
printArgList(List<Type>, List<? extends JCTree>, Consumer<JCTree>) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Prints a comma-separated list of subtrees.
printArgList(JCTree.JCMethodInvocation) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Prints an invocation argument list, with type assignment.
printArgList(List<Type>, List<? extends JCTree>) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
printAssignWithOperatorRightOperand(JCTree.JCAssignOp) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printAsyncKeyword(JCTree.JCMethodDecl) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Print async keyword for given method if relevant.
printBinaryLeftOperand(JCTree.JCBinary) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printBinaryRightOperand(JCTree.JCBinary) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printBlockStatements(List<JCTree.JCStatement>) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printCaseStatementPattern(JCTree.JCExpression) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printCastMethodInvocation(InvocationElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
printConstructorArgList(JCTree.JCNewClass, boolean) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printConstructorArgList(JCTree.JCNewClass, boolean) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
printDefaultMethodInvocation(JCTree.JCMethodInvocation) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a method invocation tree (default behavior).
printDefaultNewClass(JCTree.JCNewClass) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a new-class expression tree (default behavior).
printed - Variable in class org.jsweet.transpiler.OverloadScanner.Overload
A flag to tell if this overload was printed out (used by the printer).
PrinterAdapter - Class in org.jsweet.transpiler.extension
A printer adapter, which can be overridden to change the default printer behavior.
PrinterAdapter(JSweetContext) - Constructor for class org.jsweet.transpiler.extension.PrinterAdapter
Creates a root adapter (with no parent).
PrinterAdapter(PrinterAdapter) - Constructor for class org.jsweet.transpiler.extension.PrinterAdapter
Creates a new adapter that will try delegate to the given parent adapter when not implementing its own behavior.
printForEachLoop(JCTree.JCEnhancedForLoop, String) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
printFunctionalInvocation(ExtendedElement, String, List<ExtendedElement>) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
printIdentifier(Symbol) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Outputs an identifier.
printIdentifierList(String, int) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Prints a comma-separated, zero-indexed, generated identifier list.
printIndent() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Prints an indentation for the current indentation value.
printIndent() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Prints an indentation for the current indentation value.
printInstanceInitialization(JCTree.JCClassDecl, Symbol.MethodSymbol) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
println() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Prints a new line by delegating to the printer.
println(String) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Outputs a string and new line
println() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Outputs a new line.
printMacroName(String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Print the macro name in the code.
printMethodArgs(JCTree.JCMethodDecl, OverloadScanner.Overload, boolean, boolean, Java2TypeScriptTranslator.ClassScope) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printMethodModifiers(JCTree.JCMethodDecl, JCTree.JCClassDecl, boolean, boolean, OverloadScanner.Overload) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printTarget(ExtendedElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
printTypeArgList(List<? extends JCTree>) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Prints a comma-separated list of type subtrees.
printVariableInitialization(JCTree.JCClassDecl, JCTree.JCVariableDecl) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
printVarNameList(List<JCTree.JCVariableDecl>) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Prints a comma-separated list of variable names (no types).
process(List<JCTree.JCCompilationUnit>) - Method in class org.jsweet.transpiler.GlobalBeforeTranslationScanner
 
process(List<JCTree.JCCompilationUnit>) - Method in class org.jsweet.transpiler.OverloadScanner
Processes all the overload of a given compilation unit list.
process(Collection<JCTree.JCCompilationUnit>) - Method in class org.jsweet.transpiler.StaticInitilializerAnalyzer
Processes all the given compilation units.
processCandies(TranspilationHandler) - Method in class org.jsweet.transpiler.candy.CandyProcessor
Does the processing for the candies jars found in the classpath.
ProcessUtil - Class in org.jsweet.transpiler.util
A set of utilities to launch external processes from Java.
ProcessUtil() - Constructor for class org.jsweet.transpiler.util.ProcessUtil
 

R

referencedTypes - Variable in class org.jsweet.transpiler.util.ReferenceGrabber
The grabbed references.
ReferenceGrabber - Class in org.jsweet.transpiler.util
A utility scanner that grabs all references to types used within a code tree.
ReferenceGrabber() - Constructor for class org.jsweet.transpiler.util.ReferenceGrabber
 
registerDecoratorAnnotation(JCTree.JCClassDecl) - Method in class org.jsweet.transpiler.JSweetContext
Registers a decorator annotation in the context.
registerGlobalMethod(JCTree.JCClassDecl, JCTree.JCMethodDecl) - Method in class org.jsweet.transpiler.JSweetContext
Registers a global method in the context.
registerImportedName(String, Symbol, String) - Method in class org.jsweet.transpiler.JSweetContext
Register a name that is imported by the given package of the transpiled program.
registerUsedModule(String) - Method in class org.jsweet.transpiler.JSweetContext
Register a module that is used by the transpiled program.
registerWildcard(Symbol, JCTree.JCWildcard) - Method in class org.jsweet.transpiler.JSweetContext
Registers a wilcard for a given container (type parameterized element).
remove(Object) - Method in class org.jsweet.transpiler.util.DirectedGraph
Removes an object from the graph nodes (if exists).
removeAll(Collection<?>) - Method in class org.jsweet.transpiler.util.DirectedGraph
Removes all the objects from the graph nodes (if exists).
removeAnnotationManager(AnnotationManager) - Method in class org.jsweet.transpiler.JSweetContext
Removes the given annotation manager from the existing annotation manager chain.
removeExtension(String) - Static method in class org.jsweet.transpiler.util.Util
Removes the extensions of the given file name.
RemoveJavaDependenciesAdapter - Class in org.jsweet.transpiler.extension
An adapter that removes many uses of Java APIs and replace them with JavaScript equivalent when possible.
RemoveJavaDependenciesAdapter(JSweetContext) - Constructor for class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
RemoveJavaDependenciesAdapter(PrinterAdapter) - Constructor for class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
RemoveJavaDependenciesFactory - Class in org.jsweet.transpiler.extension
Tunes the transpiler to avoid using Java APIs as much as possible (JDK).
RemoveJavaDependenciesFactory() - Constructor for class org.jsweet.transpiler.extension.RemoveJavaDependenciesFactory
 
removeLastChar(char) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
removes last character if expectedChar
removeLastChar() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Removes the last output character.
removeLastChar(char) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
removes last character if expectedChar
removeLastChar() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Removes the last output character.
removeLastChars(int) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Removes the last output characters.
removeLastChars(int) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Removes the last output characters.
removeLastIndent() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Removes the last printed indentation.
removeLastIndent() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Removes the last printed indentation.
removeLastInsertedEntry() - Method in class org.jsweet.transpiler.util.SourceMap
Removes the last inserted entry from this source map.
replaceLinks(JSweetContext, String) - Static method in class org.jsweet.transpiler.util.JSDoc
Replaces Java links by JSDoc links in a doc text.
report(ExtendedElement, JSweetProblem, Object...) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Reports a problem during the printing phase.
report(ExtendedElement, Name, JSweetProblem, Object...) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Reports a problem during the printing phase.
report(Element, JSweetProblem, Object...) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Reports a problem during the printing phase.
report(Element, Name, JSweetProblem, Object...) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Reports a problem during the printing phase.
report(JSweetProblem, SourcePosition, String) - Method in interface org.jsweet.transpiler.TranspilationHandler
This method is called by the transpiler when a problem needs to be reported.
report(JSweetProblem, SourcePosition, String) - Method in class org.jsweet.transpiler.util.AbstractDelegatedTranspilationHandler
 
report(JCTree, JSweetProblem, Object...) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Report a JSweet problem on the given program element (tree).
report(JCTree, Name, JSweetProblem, Object...) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Report a JSweet problem on the given named program element (tree).
report(JSweetProblem, SourcePosition, String) - Method in class org.jsweet.transpiler.util.ConsoleTranspilationHandler
 
report(JSweetProblem, SourcePosition, String) - Method in class org.jsweet.transpiler.util.ErrorCountTranspilationHandler
Count the problems and delegates to the decorated transpilation handler.
reportedMultipleRootPackages - Variable in class org.jsweet.transpiler.JSweetContext
A flag to keep track of wether a multiple root packages problem was already reported (shall report only once).
reportJavaError(JCDiagnostic, Locale) - Method in class org.jsweet.transpiler.JSweetDiagnosticHandler
Override this method to tune how JSweet reports the errors.
resetEdges() - Method in class org.jsweet.transpiler.util.DirectedGraph.Node
Clears sorting info.
resetTscWatchMode() - Method in class org.jsweet.transpiler.JSweetTranspiler
Resets the watch mode (clears the watched files and restarts the Tsc process on the next invocation of JSweetTranspiler.transpile(TranspilationHandler, SourceFile...)).
resolvePhantomJsPath() - Method in class org.jsweet.transpiler.eval.JavaScriptEval
 
retainAll(Collection<?>) - Method in class org.jsweet.transpiler.util.DirectedGraph
Keeps only the elements of the given collection in the graph.
returnPattern - Static variable in class org.jsweet.transpiler.util.JSDoc
A regexp that matches JavaDoc @return expression.
rollback(JCTree, Consumer<JCTree>) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Rollbacks (undo) the current printing transaction up to the target.
RollbackException - Exception in org.jsweet.transpiler.util
This exception can be thrown to rollback the scanning of an AST.
RollbackException(JCTree, Consumer<JCTree>) - Constructor for exception org.jsweet.transpiler.util.RollbackException
Rollback up to the target.
rootPackages - Variable in class org.jsweet.transpiler.JSweetContext
Store root packages (i.e.
run() - Method in interface org.jsweet.TranspilationTask
Runs the transpilation task.
runAsyncCommand(String, Consumer<String>, Consumer<Process>, Runnable, String...) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Runs the given command in an asynchronous manner.
runCommand(String, Consumer<String>, Runnable, String...) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Runs the given command.
runCommand(String, File, boolean, Consumer<String>, Consumer<Process>, Runnable, String...) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Runs the given command.
RuntimeEval - Class in org.jsweet.transpiler.eval
 
RuntimeEval() - Constructor for class org.jsweet.transpiler.eval.RuntimeEval
 

S

scan(ExtendedElement) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Generically scan an extended element.
scan(JCTree) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Scans a program tree.
scanMemberDeclarationsInType(Symbol.TypeSymbol, Set<String>, Function<Element, Boolean>) - Static method in class org.jsweet.transpiler.util.Util
Scans member declarations in type hierachy.
setAdapter(PrinterAdapter) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Sets the adapter attached to this printer.
setAdapters(List<String>) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setBundle(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets this transpiler to generate JavaScript bundles for running in a Web browser.
setCompilationUnit(JCTree.JCCompilationUnit) - Method in class org.jsweet.transpiler.util.AbstractTreeScanner
Sets the compilation unit to be scanned.
setDebugMode(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setDeclarationsOutputDir(File) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setDisabled(boolean) - Method in class org.jsweet.transpiler.util.ErrorCountTranspilationHandler
Enables/disables the counting.
setDisableSinglePrecisionFloats(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setEcmaTargetVersion(EcmaScriptComplianceLevel) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets target ECMA script version for generated JavaScript
setEncoding(String) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets the expected Java source code encoding.
setEraseVariableTypes(boolean) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator.ClassScope
 
setGenerateDeclarations(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setGenerateDefinitions(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setGenerateJsFiles(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets the flag to enable/disable JavaScript generation.
setGenerateSourceMaps(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets the flag that tells if the transpiler allows for Java debugging through js.map files.
setGenerateTsFiles(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setHeaderFile(File) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setIgnoreAssertions(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets the transpiler to ignore the 'assert' statements or generate appropriate code.
setIgnoreCandiesTypeScriptDefinitions(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setIgnoreJavaErrors(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setIgnoreJavaFileNameError(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setIgnoreTypeScriptErrors(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setJavaFile(File) - Method in class org.jsweet.transpiler.SourceFile
Sets the Java file.
setJsFile(File) - Method in class org.jsweet.transpiler.SourceFile
Internally used by JSweetTranspiler.
setJsOutputDir(File) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets the current JavaScript output directory.
setModuleKind(ModuleKind) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets the module kind when transpiling to code using JavaScript modules.
setModuleResolution(ModuleResolution) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets the module strategy when transpiling to code using JavaScript modules.
setNoRootDirectories(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets this transpiler to skip the root directories (packages annotated with @jsweet.lang.Root) so that the generated file hierarchy starts at the root directories rather than including the entire directory structure.
setOutputPosition(Position) - Method in class org.jsweet.transpiler.util.SourceMap.Entry
Sets the position in the ouput file.
setParentAdapter(PrinterAdapter) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Sets the parent adapter.
setPreserveSourceLineNumbers(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
setPrinter(AbstractTreePrinter) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Sets the printer attached to this adapter.
setSkipTypeScriptChecks(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
Tells tsc to skip some checks in order to reduce load time, useful in unit tests where transpiler is invoked many times
setSourceMap(SourceMap) - Method in class org.jsweet.transpiler.SourceFile
 
setSourceRoot(File) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setTscWatchMode(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
Enables or disable this transpiler watch mode.
setTsDefDirs(File...) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets one or more directories that contain TypeScript definition files (sub-directories are scanned recursively to find all .d.ts files).
setTsFile(File) - Method in class org.jsweet.transpiler.SourceFile
Internally used by JSweetTranspiler.
setTsOutputDir(File) - Method in class org.jsweet.transpiler.JSweetTranspiler
Sets the current TypeScript output directory.
setupCompiler(List<File>, ErrorCountTranspilationHandler) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setUseTsserver(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
setUsingJavaRuntime(boolean) - Method in class org.jsweet.transpiler.JSweetContext
Sets the transpiler to use the J4TS Java runtime.
setUsingJavaRuntime(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
Manually sets the transpiler to use (or not use) a Java runtime.
setVerbose(boolean) - Method in class org.jsweet.transpiler.JSweetTranspiler
 
Severity - Enum in org.jsweet.transpiler
The severity of a tranpilation event.
shiftOutputPositions(int) - Method in class org.jsweet.transpiler.util.SourceMap
Shifts the ouput positions by the given line offset.
size() - Method in class org.jsweet.transpiler.util.DirectedGraph
Returns the nodes count in this graph.
SourceFile - Class in org.jsweet.transpiler
A source file represents a Java source file and holds information on the transpiled output files (Typescript and Javascript files).
SourceFile(File) - Constructor for class org.jsweet.transpiler.SourceFile
Creates a source file from a file.
sourceFiles - Variable in class org.jsweet.transpiler.JSweetContext
The source files that are being transpiled.
sourceMap - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'sourceMap' option.
sourceMap - Variable in class org.jsweet.transpiler.util.AbstractTreePrinter
The object storing source map information while printing.
SourceMap - Class in org.jsweet.transpiler.util
This object represents a source map between an input source file and an output source file.
SourceMap() - Constructor for class org.jsweet.transpiler.util.SourceMap
 
SourceMap.Entry - Class in org.jsweet.transpiler.util
An entry in the source map.
SourcePosition - Class in org.jsweet.transpiler
A non-mutable position in a source file.
SourcePosition(File, JCTree, int, int, int, int) - Constructor for class org.jsweet.transpiler.SourcePosition
Creates a new source position from all indexes.
SourcePosition(File, JCTree, int, int) - Constructor for class org.jsweet.transpiler.SourcePosition
A simple constructor with no element and a single position (start = end).
SourcePosition(File, JCTree, Position, Position) - Constructor for class org.jsweet.transpiler.SourcePosition
Creates a new source position from start and end positions.
SourcePosition(File, JCTree, Position) - Constructor for class org.jsweet.transpiler.SourcePosition
Creates a new source position from a given position (will start and end at the same position).
space() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Adds a space to the output.
space() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Adds a space to the output.
stack - Variable in class org.jsweet.transpiler.util.AbstractTreeScanner
The scanning stack.
startIndent() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Increments the current indentation value.
startIndent() - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Increments the current indentation value.
STATIC_INITIALIZATION_SUFFIX - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
The suffix added to static field initialization methods (for Java semantics).
staticImports - Variable in class org.jsweet.transpiler.util.AbstractTreeScanner
A map holding static import statements.
staticInitializersDependencies - Variable in class org.jsweet.transpiler.StaticInitilializerAnalyzer
A map containing the static initializers dependencies for each package when using modules (empty otherwise).
StaticInitilializerAnalyzer - Class in org.jsweet.transpiler
This AST scanner creates a class dependency graph for each package, based on static field initializers.
StaticInitilializerAnalyzer(JSweetContext) - Constructor for class org.jsweet.transpiler.StaticInitilializerAnalyzer
Creates the analyzer.
stopWatch() - Method in class org.jsweet.transpiler.TypeScript2JavaScriptWithTscTranspiler
 
strictMode - Variable in class org.jsweet.transpiler.JSweetContext
A flag that indicates if the transpilation is in "strict" mode, which means that the jsweet-core-strict jar is in the classpath.
STRING_TYPES_INTERFACE_NAME - Static variable in class org.jsweet.JSweetConfig
The constant for the interface name that contains all the generated string types (short name).
StringEnumAdapter - Class in org.jsweet.transpiler.extension
This optional adapter tunes the JavaScript generation to remove enums and replace them with strings.
StringEnumAdapter(PrinterAdapter) - Constructor for class org.jsweet.transpiler.extension.StringEnumAdapter
Default constructor.
substitute(ExtendedElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Upcalled by the transpiler to forward to the right subtitution method depending on the actual extended element type.
substituteAndPrintAssignedExpression(Type, JCTree.JCExpression) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Print an expression being assigned to a type (should handled necessary wraping/unwraping).
substituteAndPrintType(ExtendedElement, TypeElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
substituteAndPrintType(JCTree) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
substituteAndPrintType(JCTree) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
 
substituteArrayAccess(ArrayAccessElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes the value of an array access expression.
substituteAssignedExpression(Type, JCTree.JCExpression) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
substituteAssignedExpression(Type, JCTree.JCExpression) - Method in class org.jsweet.transpiler.util.AbstractTreePrinter
Conditionally substitutes an expression when it is assigned to a given type.
substituteAssignment(AssignmentElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes the value of a field assignment expression.
substituteAssignmentWithOperator(AssignmentWithOperatorElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes the value of an assignment with operator (a += b) expression.
substituteBinaryOperator(BinaryOperatorElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes the value of a binary operator.
substituteBinaryOperator(BinaryOperatorElement) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteCaseStatementPattern(CaseElement, ExtendedElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes if necessary the pattern of a case statement.
substituteCaseStatementPattern(CaseElement, ExtendedElement) - Method in class org.jsweet.transpiler.extension.StringEnumAdapter
Special case for the case statement patter.
substituteForEachLoop(ForeachLoopElement, boolean, String) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
substituteForEachLoop(ForeachLoopElement, boolean, String) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes if necessary the given foreach loop.
substituteForEachLoop(ForeachLoopElement, boolean, String) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteIdentifier(IdentifierElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
substituteIdentifier(IdentifierElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes the value of an identifier.
substituteInstanceof(String, ExtendedElement, TypeMirror) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes if necessary an instanceof expression.
substituteInstanceof(String, ExtendedElement, TypeMirror) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocation(MethodInvocationElement) - Method in class org.jsweet.transpiler.extension.BigDecimalAdapter
 
substituteMethodInvocation(MethodInvocationElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
substituteMethodInvocation(MethodInvocationElement) - Method in class org.jsweet.transpiler.extension.MapAdapter
This where the actual API bridge is implemented.
substituteMethodInvocation(MethodInvocationElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes the value of a method invocation expression.
substituteMethodInvocation(MethodInvocationElement) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocation(MethodInvocationElement) - Method in class org.jsweet.transpiler.extension.StringEnumAdapter
Uses of enum API need to be translated accordingly to strings.
substituteMethodInvocationOnArray(MethodInvocationElement, String, String, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnArrays(MethodInvocationElement, String, ExtendedElement, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnCalendar(MethodInvocationElement, String, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnCharacter(MethodInvocationElement, String) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnClass(MethodInvocationElement, String, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnCollections(MethodInvocationElement, String, ExtendedElement, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnField(MethodInvocationElement, String, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnMap(MethodInvocationElement, String, ExtendedElement, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnMethod(MethodInvocationElement, String, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnNumber(MethodInvocationElement, String) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteMethodInvocationOnObjects(MethodInvocationElement, String, boolean) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteNewClass(NewClassElement) - Method in class org.jsweet.transpiler.extension.BigDecimalAdapter
 
substituteNewClass(NewClassElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
substituteNewClass(NewClassElement) - Method in class org.jsweet.transpiler.extension.MapAdapter
When one of the types in MapAdapter.mapTypes is found, instantiates an ES6 map.
substituteNewClass(NewClassElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
To override to tune the printing of a new class expression.
substituteNewClass(NewClassElement) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteUnaryOperator(UnaryOperatorElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes the value of a unary operator.
substituteVariableAccess(VariableAccessElement) - Method in class org.jsweet.transpiler.extension.Java2TypeScriptAdapter
 
substituteVariableAccess(VariableAccessElement) - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Substitutes the given variable access.
substituteVariableAccess(VariableAccessElement) - Method in class org.jsweet.transpiler.extension.RemoveJavaDependenciesAdapter
 
substituteVariableAccess(VariableAccessElement) - Method in class org.jsweet.transpiler.extension.StringEnumAdapter
Accessing an enum field is replaced by a simple string value ( MyEnum.A => "A").
symtab - Variable in class org.jsweet.transpiler.JSweetContext
The Java compiler symbol table for fast access.
symtab - Variable in class org.jsweet.transpiler.util.JavaCompilationEnvironment
The compiler's symbol table.

T

targetVersion - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'targetVersion' option.
TMP_WORKING_DIR_NAME - Static variable in class org.jsweet.transpiler.JSweetTranspiler
The constant for the name of the directory that stores temporary files.
to - Variable in class org.jsweet.transpiler.util.DirectedGraph.Edge
The node this edge goes to
toArray() - Method in class org.jsweet.transpiler.util.DirectedGraph
Returns the graph's nodes as an array (not sorted).
toArray(U[]) - Method in class org.jsweet.transpiler.util.DirectedGraph
Returns the graph's nodes as a well-typed array (not sorted).
toFile(JavaFileObject) - Static method in class org.jsweet.transpiler.util.Util
Gets the file from a Java file object.
toFiles(SourceFile...) - Static method in class org.jsweet.transpiler.SourceFile
Converts source files to files.
toJavaFileObject(JavaFileManager, File) - Static method in class org.jsweet.transpiler.util.Util
Transforms a source file to a Java file object (used by javac).
toJavaFileObjects(JavaFileManager, Collection<File>) - Static method in class org.jsweet.transpiler.util.Util
Transforms a list of source files to Java file objects (used by javac).
toJCList(Iterable<T>) - Static method in class org.jsweet.transpiler.util.Util
Transforms a Java iterable to a javac list.
toPaths(SourceFile[]) - Static method in class org.jsweet.transpiler.SourceFile
Converts source files to file paths.
topLevelPackageNames - Variable in class org.jsweet.transpiler.JSweetContext
Stores the root package names (i.e.
topologicalSort(Consumer<DirectedGraph.Node<T>>) - Method in class org.jsweet.transpiler.util.DirectedGraph
Sorts this graph using a topological sort algorithm given in this StackOverflow thread.
toSourceFiles(File[]) - Static method in class org.jsweet.transpiler.SourceFile
Converts files to source files.
toSourceFiles(Collection<File>) - Static method in class org.jsweet.transpiler.SourceFile
Converts files to source files.
toSourceFiles(String...) - Static method in class org.jsweet.transpiler.SourceFile
Converts file paths to source files.
toString() - Method in class org.jsweet.transpiler.candy.CandyDescriptor
 
toString() - Method in class org.jsweet.transpiler.JSweetTranspiler
 
toString() - Method in class org.jsweet.transpiler.OverloadScanner.Overload
 
toString() - Method in class org.jsweet.transpiler.SourceFile
 
toString() - Method in class org.jsweet.transpiler.SourcePosition
 
toString() - Method in class org.jsweet.transpiler.util.DirectedGraph.Edge
 
toString() - Method in class org.jsweet.transpiler.util.DirectedGraph.Node
 
toString() - Method in class org.jsweet.transpiler.util.DirectedGraph
 
toString() - Method in class org.jsweet.transpiler.util.Position
 
toString() - Method in class org.jsweet.transpiler.util.SourceMap.Entry
 
toString() - Method in class org.jsweet.transpiler.util.SourceMap
 
toTree(ExtendedElement) - Static method in class org.jsweet.transpiler.model.ExtendedElementFactory
Gets the javac tree from the given element.
touch() - Method in class org.jsweet.transpiler.candy.CandyProcessor
Cleans the candies store so that it will be read from file next time.
touch(SourceFile...) - Static method in class org.jsweet.transpiler.SourceFile
Touch the given source files.
touch() - Method in class org.jsweet.transpiler.SourceFile
Clears the transpilation information as if the file was not transpiled.
transpilationHandler - Variable in class org.jsweet.transpiler.JSweetDiagnosticHandler
The transpilation message/warning/error handler.
TranspilationHandler - Interface in org.jsweet.transpiler
Objects implementing this interface handle transpilation errors and warnings.
transpilationTask - Variable in class org.jsweet.JSweetFileWatcher
Holds the JSweet transpilation task, which is going to be executed when a watched file changes.
TranspilationTask - Interface in org.jsweet
This interface generically defines an already-configured, ready-to-run transpilation task.
transpile(TranspilationHandler, SourceFile...) - Method in class org.jsweet.transpiler.JSweetTranspiler
Transpiles the given Java source files.
transpile(ErrorCountTranspilationHandler, JCTree, String) - Method in class org.jsweet.transpiler.JSweetTranspiler
Transpiles the given Java AST.
transpilerVersion - Variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
ts2js(ErrorCountTranspilationHandler, Collection<SourceFile>, Collection<File>, JSweetOptions, boolean, TypeScript2JavaScriptTranspiler.OnTsTranspilationCompletedCallback) - Method in class org.jsweet.transpiler.TypeScript2JavaScriptTranspiler
 
TS_IDENTIFIER_FORBIDDEN_CHARS - Static variable in class org.jsweet.JSweetConfig
This collection contains the forbidden characters in TS identifiers
TS_LIBS_DIR_NAME - Static variable in class org.jsweet.JSweetConfig
Default name of the directory where the TypeScript definition files can be found.
TS_STRICT_MODE_KEYWORDS - Static variable in class org.jsweet.JSweetConfig
This map contains the TS keywords that are taken into account in strict mode (within classes).
TS_TOP_LEVEL_KEYWORDS - Static variable in class org.jsweet.JSweetConfig
This map contains the TS keywords that are taken into account at top level.
TSC_VERSION - Static variable in class org.jsweet.transpiler.JSweetTranspiler
The TypeScript version to be installed/used with this version of JSweet (WARNING: so far, having multiple JSweet versions for the same user account may lead to performance issues - could be fixed if necessary).
TSCROOTFILE - Static variable in class org.jsweet.transpiler.JSweetTranspiler
TSCROOTFILE - Static variable in class org.jsweet.transpiler.TypeScript2JavaScriptWithTscTranspiler
The name of the file generated in the root package to avoid the TypeScript compiler to skip empty directories.
tsOnly - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'tsOnly' option.
tsout - Static variable in interface org.jsweet.transpiler.JSweetOptions
Constant string for the 'tsout' option.
TUPLE_CLASSES_PACKAGE - Static variable in class org.jsweet.JSweetConfig
The constant for the tuple classes package.
TUPLE_CLASSES_PREFIX - Static variable in class org.jsweet.JSweetConfig
The constant for the tuple classes prefix.
TYPE_MAPPING - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
TypeChecker - Class in org.jsweet.transpiler
This helper class performs extra type checking for the JSweet transpiler (additionally to Java default type checking).
TypeChecker(AbstractTreePrinter) - Constructor for class org.jsweet.transpiler.TypeChecker
Creates a new type checker object.
typeChecker - Variable in class org.jsweet.transpiler.util.AbstractTreePrinter
A type checker instance.
types() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the types API, which provides a set of utilities on TypeMirror.
types - Variable in class org.jsweet.transpiler.JSweetContext
The Java compiler types for fast access.
types - Variable in class org.jsweet.transpiler.util.JavaCompilationEnvironment
The compiler's type holder.
TypeScript2JavaScriptTranspiler - Class in org.jsweet.transpiler
 
TypeScript2JavaScriptTranspiler() - Constructor for class org.jsweet.transpiler.TypeScript2JavaScriptTranspiler
 
TypeScript2JavaScriptTranspiler.OnTsTranspilationCompletedCallback - Interface in org.jsweet.transpiler
 
TypeScript2JavaScriptWithTscTranspiler - Class in org.jsweet.transpiler
 
TypeScript2JavaScriptWithTscTranspiler() - Constructor for class org.jsweet.transpiler.TypeScript2JavaScriptWithTscTranspiler
 
TypeScript2JavaScriptWithTsserverTranspiler - Class in org.jsweet.transpiler
 
typesToCompilationUnits - Variable in class org.jsweet.transpiler.StaticInitilializerAnalyzer
Maps the types to the compilation units in which they are declared.
typeVariablesToErase - Variable in class org.jsweet.transpiler.extension.PrinterAdapter
A list of type variables to be erased (mapped to any).

U

UnaryOperatorElement - Interface in org.jsweet.transpiler.model
The model element that represents a binary operator (+, *, &&, ...).
uninstallNodePackage(String, boolean) - Static method in class org.jsweet.transpiler.util.ProcessUtil
Uninstalls a node package with npm (assumes that node is installed).
UNION_CLASS_NAME - Static variable in class org.jsweet.JSweetConfig
The constant for the Union core class full name.
UNION_PACKAGE - Static variable in class org.jsweet.JSweetConfig
The constant for the package containing union types.
UNKNOWN - Static variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
usedInEdges - Variable in class org.jsweet.transpiler.util.DirectedGraph.Node
Information used for sorting only.
usedOutEdges - Variable in class org.jsweet.transpiler.util.DirectedGraph.Node
Information used for sorting only.
useInEdge(DirectedGraph.Edge<T>) - Method in class org.jsweet.transpiler.util.DirectedGraph.Node
Used for sorting only.
useModules - Variable in class org.jsweet.transpiler.eval.EvalOptions
 
useModules - Variable in class org.jsweet.transpiler.JSweetContext
A flag to tell if the transpiler is in module mode or not.
useOutEdge(DirectedGraph.Edge<T>) - Method in class org.jsweet.transpiler.util.DirectedGraph.Node
Used for sorting only.
USER_HOME_DIR - Static variable in class org.jsweet.transpiler.util.ProcessUtil
A static field that stores the user home directory.
useRequireForModules - Variable in class org.jsweet.transpiler.JSweetContext
A flag to tell if the transpiler should transpiler modules to old fashioned require instructions rather than the ES2015 flavored syntax.
util() - Method in class org.jsweet.transpiler.extension.PrinterAdapter
Gets the util API, which provides a set of utilities.
Util - Interface in org.jsweet.transpiler.model
This interface defines utilities on the Java model.
Util - Class in org.jsweet.transpiler.util
Various utilities.
UTIL_CLASSNAME - Static variable in class org.jsweet.JSweetConfig
 
UTIL_PACKAGE - Static variable in class org.jsweet.JSweetConfig
The constant for the JSweet util package.

V

valueOf(String) - Static method in enum org.jsweet.transpiler.EcmaScriptComplianceLevel
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jsweet.transpiler.eval.JavaScriptEval.JavaScriptRuntime
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jsweet.transpiler.extension.AnnotationManager.Action
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jsweet.transpiler.Java2TypeScriptTranslator.ComparisonMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jsweet.transpiler.JSweetProblem
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jsweet.transpiler.ModuleKind
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jsweet.transpiler.ModuleResolution
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jsweet.transpiler.Severity
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.jsweet.transpiler.EcmaScriptComplianceLevel
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jsweet.transpiler.eval.JavaScriptEval.JavaScriptRuntime
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jsweet.transpiler.extension.AnnotationManager.Action
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jsweet.transpiler.Java2TypeScriptTranslator.ComparisonMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jsweet.transpiler.JSweetProblem
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jsweet.transpiler.ModuleKind
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jsweet.transpiler.ModuleResolution
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jsweet.transpiler.Severity
Returns an array containing the constants of this enum type, in the order they are declared.
VAR_DECL_KEYWORD - Static variable in class org.jsweet.transpiler.Java2TypeScriptTranslator
The default keyword for declaring variables.
VariableAccessElement - Interface in org.jsweet.transpiler.model
An AST node for a Java variable/field access (of the form targetExpression.variableName or variableName).
version - Variable in class org.jsweet.transpiler.candy.CandyDescriptor
 
visitAnnotation(JCTree.JCAnnotation) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an annotation tree.
visitApply(JCTree.JCMethodInvocation) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an invocation tree.
visitAssert(JCTree.JCAssert) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an assert tree.
visitAssign(JCTree.JCAssign) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a variable assignment tree.
visitAssignop(JCTree.JCAssignOp) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an assignment operator tree (+=, -=, *=, ...).
visitBeforeDoWhileBody(JCTree.JCDoWhileLoop) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
visitBeforeForBody(JCTree.JCForLoop) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
visitBeforeForEachBody(JCTree.JCEnhancedForLoop) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
visitBeforeWhileBody(JCTree.JCWhileLoop) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
visitBinary(JCTree.JCBinary) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a binary operator tree.
visitBlock(JCTree.JCBlock) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a block tree.
visitBreak(JCTree.JCBreak) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a break tree.
visitCase(JCTree.JCCase) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a case tree.
visitCatch(JCTree.JCCatch) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a catch tree.
visitClassDef(JCTree.JCClassDecl) - Method in class org.jsweet.transpiler.GlobalBeforeTranslationScanner
 
visitClassDef(JCTree.JCClassDecl) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
visitClassDef(JCTree.JCClassDecl) - Method in class org.jsweet.transpiler.OverloadScanner
 
visitClassDef(JCTree.JCClassDecl) - Method in class org.jsweet.transpiler.StaticInitilializerAnalyzer
 
visitConditional(JCTree.JCConditional) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a condition?trueExpr:falseExpr tree.
visitContinue(JCTree.JCContinue) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a continue tree.
visitDoLoop(JCTree.JCDoWhileLoop) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a do - while loop tree.
visitForeachLoop(JCTree.JCEnhancedForLoop) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a foreach loop tree.
visitForLoop(JCTree.JCForLoop) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a for loop tree.
visitIdent(JCTree.JCIdent) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an identifier.
visitIf(JCTree.JCIf) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an if tree.
visitImport(JCTree.JCImport) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an import tree.
visitIndexed(JCTree.JCArrayAccess) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an array access tree.
visitLabelled(JCTree.JCLabeledStatement) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a labeled statement tree.
visitLambda(JCTree.JCLambda) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a lambda expression tree.
visitLiteral(JCTree.JCLiteral) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a literal.
visitMethodDef(JCTree.JCMethodDecl) - Method in class org.jsweet.transpiler.GlobalBeforeTranslationScanner
 
visitMethodDef(JCTree.JCMethodDecl) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a method tree.
visitMethodDef(JCTree.JCMethodDecl) - Method in class org.jsweet.transpiler.util.MainMethodFinder
 
visitModifiers(JCTree.JCModifiers) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
 
visitNewArray(JCTree.JCNewArray) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a new array tree.
visitNewClass(JCTree.JCNewClass) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a new-class expression tree.
visitNewClass(JCTree.JCNewClass) - Method in class org.jsweet.transpiler.util.ReferenceGrabber
Grab references on the given new-class tree.
visitParens(JCTree.JCParens) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a parenthesis tree.
visitReference(JCTree.JCMemberReference) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a reference tree.
visitReturn(JCTree.JCReturn) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a return tree.
visitSelect(JCTree.JCFieldAccess) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a field access tree.
visitSelect(JCTree.JCFieldAccess) - Method in class org.jsweet.transpiler.util.ReferenceGrabber
Grab references on the given field-access tree.
visitSwitch(JCTree.JCSwitch) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a switch tree.
visitSynchronized(JCTree.JCSynchronized) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a synchronized tree.
visitThrow(JCTree.JCThrow) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an throw statement tree.
visitTopLevel(JCTree.JCCompilationUnit) - Method in class org.jsweet.transpiler.GlobalBeforeTranslationScanner
 
visitTopLevel(JCTree.JCCompilationUnit) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a compilation unit tree.
visitTopLevel(JCTree.JCCompilationUnit) - Method in class org.jsweet.transpiler.OverloadScanner
 
visitTopLevel(JCTree.JCCompilationUnit) - Method in class org.jsweet.transpiler.StaticInitilializerAnalyzer
 
visitTry(JCTree.JCTry) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a try tree.
visitTypeApply(JCTree.JCTypeApply) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a type apply (T) tree.
visitTypeArray(JCTree.JCArrayTypeTree) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an array type tree.
visitTypeCast(JCTree.JCTypeCast) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a type cast tree.
visitTypeIdent(JCTree.JCPrimitiveTypeTree) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a type identifier tree.
visitTypeParameter(JCTree.JCTypeParameter) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a type parameter tree.
visitTypeTest(JCTree.JCInstanceOf) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints an instanceof tree.
visitUnary(JCTree.JCUnary) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a unary operator tree.
visitVarDef(JCTree.JCVariableDecl) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a variable declaration tree.
visitWhileLoop(JCTree.JCWhileLoop) - Method in class org.jsweet.transpiler.Java2TypeScriptTranslator
Prints a while loop tree.
visitWildcard(JCTree.JCWildcard) - Method in class org.jsweet.transpiler.GlobalBeforeTranslationScanner
 
VOID - Static variable in interface org.jsweet.transpiler.util.EvaluationResult
 

W

workingDir - Variable in class org.jsweet.transpiler.eval.EvalOptions
 
A B C D E F G H I J L M N O P R S T U V W 

Copyright 2015, Cinchéo SAS - Web site: http://www.jsweet.org