- 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
-
- 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.
- 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.
- 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
-
- 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
-
- 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
-
- getTypeMappingTarget(String) - Method in class org.jsweet.transpiler.JSweetContext
-
- 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.
- 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
-
- isMappedType(String) - Method in class org.jsweet.transpiler.JSweetContext
-
- 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
-
- 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.
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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).
- 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
-