public abstract class JSweetConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATION_AMBIENT
Fully-qualified name for the JSweet
@Ambient annotation (see JSweet core API). |
static String |
ANNOTATION_ASYNC
Fully-qualified name for the JSweet
@Async annotation (see JSweet core API). |
static String |
ANNOTATION_DECORATOR
Fully-qualified name for the JSweet
@Decorator annotation (see JSweet core API). |
static String |
ANNOTATION_DISABLED
Fully-qualified name for the JSweet
@Disabled annotation (see JSweet core API). |
static String |
ANNOTATION_ERASED
Fully-qualified name for the JSweet
@Erased annotation (see JSweet core API). |
static String |
ANNOTATION_FUNCTIONAL_INTERFACE
Fully-qualified name for the built-in Java
FunctionalInterface annotation. |
static String |
ANNOTATION_GENERATOR
Fully-qualified name for the JSweet
@Generator annotation (see JSweet core API). |
static String |
ANNOTATION_INTERFACE
Fully-qualified name for the JSweet
@Interface annotation (see JSweet core API). |
static String |
ANNOTATION_MIXIN
Fully-qualified name for the JSweet
@Mixin annotation (see JSweet core API). |
static String |
ANNOTATION_MODULE
Fully-qualified name for the JSweet
@Module annotation (see JSweet core API). |
static String |
ANNOTATION_NAME
Fully-qualified name for the JSweet
@Name annotation (see JSweet core API). |
static String |
ANNOTATION_NO_DEBUG
Fully-qualified name for the JSweet
@SNoDebug annotation (see JSweet core API). |
static String |
ANNOTATION_OBJECT_TYPE
Fully-qualified name for the JSweet
@ObjectType annotation (see JSweet core API). |
static String |
ANNOTATION_OPTIONAL
Fully-qualified name for the JSweet
@Optional annotation (see JSweet core API). |
static String |
ANNOTATION_REPLACE
Fully-qualified name for the JSweet
@Replace annotation (see JSweet core API). |
static String |
ANNOTATION_ROOT
Fully-qualified name for the JSweet
@Root annotation (see JSweet core API). |
static String |
ANNOTATION_STRING_TYPE
Fully-qualified name for the JSweet
@StringType annotation (see JSweet core API). |
static String |
ANNOTATION_SYNTACTIC_ITERABLE
Fully-qualified name for the JSweet
@SyntacticIterable annotation (see JSweet core API). |
static String |
ANNOTATION_WRAP_PARAMETERS
Fully-qualified name for the JSweet
@WrapParameters annotation (see JSweet core API). |
static String |
ANONYMOUS_DEPRECATED_FUNCTION_NAME |
static String |
ANONYMOUS_DEPRECATED_STATIC_FUNCTION_NAME |
static String |
ANONYMOUS_FUNCTION_NAME |
static String |
ANONYMOUS_STATIC_FUNCTION_NAME |
static Properties |
APPLICATION_PROPERTIES
The properties coming from application.properties.
|
static String |
CONFIGURATION_FILE_NAME
The default configuration file name.
|
static String |
DEPRECATED_UTIL_CLASSNAME
The constant for predefined utilities.
|
static String |
DOM_PACKAGE
The constant for the JSweet dom package.
|
static String |
EXTENSION_DIR |
static String |
FIELD_METHOD_CLASH_RESOLVER_PREFIX
The prefix to add to variables that clash with methods.
|
static String |
FUNCTION_CLASSES_PACKAGE
The constant for the function classes package.
|
static String |
GLOBALS_CLASS_NAME
The constant for the classes where members are generated as top-level
elements (global variables and functions).
|
static String |
GLOBALS_PACKAGE_NAME
The constant for the package generates top-level classes (one cannot use
unnamed package in Java).
|
static String |
INDEXED_DELETE_FUCTION_NAME |
static String |
INDEXED_DELETE_STATIC_FUCTION_NAME |
static String |
INDEXED_GET_FUCTION_NAME
The constant for indexed access function.
|
static String |
INDEXED_GET_STATIC_FUCTION_NAME |
static String |
INDEXED_SET_FUCTION_NAME
The constant for indexed assignment function.
|
static String |
INDEXED_SET_STATIC_FUCTION_NAME
The constant for indexed assignment function.
|
static Set<String> |
JAVA_KEYWORDS
This map contains the Java keywords that are taken into account in the
generation for avoiding keyword clashes.
|
static String |
JS_KEYWORD_PREFIX
The prefix to add to variables that clash with JS keywords.
|
static Set<String> |
JS_KEYWORDS
This map contains the JS keywords that are taken into account in the
generation for avoiding keyword clashes.
|
static String |
LANG_PACKAGE
The constant for the JSweet lang package.
|
static String |
LANG_PACKAGE_ALT
The constant for the JSweet lang package.
|
static String |
LIBS_PACKAGE
The constant for the JSweet lib package (where the definitions need to
be).
|
static String |
MAIN_FUNCTION_NAME
The constant for main functions (translate to global code, which is
executed when the file is loaded).
|
static String |
MAVEN_CANDIES_GROUP
The Maven group id where candies are deployed.
|
static String |
MAVEN_JAVA_OVERRIDE_ARTIFACT
The Maven artifact full name for the Java override project.
|
static String |
MODULE_FILE_NAME
The TypeScript module file names, when transpiling with modules (without
extension).
|
static String |
NEW_FUNCTION_NAME |
static String |
OBJECT_CLASSNAME
The fully qualified name of a JavaScript Object in JSweet.
|
static String |
STRING_TYPES_INTERFACE_NAME
The constant for the interface name that contains all the generated
string types (short name).
|
static Set<Character> |
TS_IDENTIFIER_FORBIDDEN_CHARS
This collection contains the forbidden characters in TS identifiers
|
static String |
TS_LIBS_DIR_NAME
Default name of the directory where the TypeScript definition files can
be found.
|
static Set<String> |
TS_STRICT_MODE_KEYWORDS
This map contains the TS keywords that are taken into account in strict
mode (within classes).
|
static Set<String> |
TS_TOP_LEVEL_KEYWORDS
This map contains the TS keywords that are taken into account at top
level.
|
static String |
TUPLE_CLASSES_PACKAGE
The constant for the tuple classes package.
|
static String |
TUPLE_CLASSES_PREFIX
The constant for the tuple classes prefix.
|
static String |
UNION_CLASS_NAME
The constant for the Union core class full name.
|
static String |
UNION_PACKAGE
The constant for the package containing union types.
|
static String |
UTIL_CLASSNAME |
static String |
UTIL_PACKAGE
The constant for the JSweet util package.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getBuildDate()
The build date coming from Maven.
|
static String |
getVersionNumber()
The version coming from Maven.
|
static void |
initClassPath(String jdkHome)
Initialize the classpath to include tools.jar.
|
static boolean |
isJDKPath(String qualifiedName)
Tells if this qualified name belongs to the JDK (starts with
or ).
|
static boolean |
isJDKReplacementMode() |
static boolean |
isJSweetPath(String qualifiedName)
Tells if this qualified name belongs to one of the JSweet core package.
|
static boolean |
isLibPath(String qualifiedName)
Tells if this qualified name belongs to any TypeScript library definition
(starts with "def").
|
public static Properties APPLICATION_PROPERTIES
public static String MAVEN_CANDIES_GROUP
public static String MAVEN_JAVA_OVERRIDE_ARTIFACT
public static final String LIBS_PACKAGE
public static final String LANG_PACKAGE
public static final String LANG_PACKAGE_ALT
public static final String UTIL_PACKAGE
public static final String DOM_PACKAGE
public static final String GLOBALS_PACKAGE_NAME
public static final String GLOBALS_CLASS_NAME
public static final String DEPRECATED_UTIL_CLASSNAME
public static final String UTIL_CLASSNAME
public static final String STRING_TYPES_INTERFACE_NAME
public static final String FUNCTION_CLASSES_PACKAGE
public static final String TUPLE_CLASSES_PACKAGE
public static final String TUPLE_CLASSES_PREFIX
public static final String UNION_PACKAGE
public static final String UNION_CLASS_NAME
public static final String INDEXED_GET_FUCTION_NAME
public static final String INDEXED_SET_FUCTION_NAME
public static final String INDEXED_DELETE_FUCTION_NAME
public static final String INDEXED_GET_STATIC_FUCTION_NAME
public static final String INDEXED_SET_STATIC_FUCTION_NAME
public static final String INDEXED_DELETE_STATIC_FUCTION_NAME
public static final String NEW_FUNCTION_NAME
public static final String ANONYMOUS_DEPRECATED_FUNCTION_NAME
public static final String ANONYMOUS_FUNCTION_NAME
public static final String ANONYMOUS_DEPRECATED_STATIC_FUNCTION_NAME
public static final String ANONYMOUS_STATIC_FUNCTION_NAME
public static final String EXTENSION_DIR
public static final String TS_LIBS_DIR_NAME
public static final String MAIN_FUNCTION_NAME
public static final String MODULE_FILE_NAME
public static final String OBJECT_CLASSNAME
public static final String ANNOTATION_DISABLED
@Disabled annotation (see JSweet core API).public static final String ANNOTATION_ERASED
@Erased annotation (see JSweet core API).public static final String ANNOTATION_ASYNC
@Async annotation (see JSweet core API).public static final String ANNOTATION_SYNTACTIC_ITERABLE
@SyntacticIterable annotation (see JSweet core API).public static final String ANNOTATION_AMBIENT
@Ambient annotation (see JSweet core API).public static final String ANNOTATION_MIXIN
@Mixin annotation (see JSweet core API).public static final String ANNOTATION_OBJECT_TYPE
@ObjectType annotation (see JSweet core API).public static final String ANNOTATION_MODULE
@Module annotation (see JSweet core API).public static final String ANNOTATION_INTERFACE
@Interface annotation (see JSweet core API).public static final String ANNOTATION_OPTIONAL
@Optional annotation (see JSweet core API).public static final String ANNOTATION_STRING_TYPE
@StringType annotation (see JSweet core API).public static final String ANNOTATION_ROOT
@Root annotation (see JSweet core API).public static final String ANNOTATION_NAME
@Name annotation (see JSweet core API).public static final String ANNOTATION_DECORATOR
@Decorator annotation (see JSweet core API).public static final String ANNOTATION_REPLACE
@Replace annotation (see JSweet core API).public static final String ANNOTATION_GENERATOR
@Generator annotation (see JSweet core API).public static final String ANNOTATION_NO_DEBUG
@SNoDebug annotation (see JSweet core API).public static final String ANNOTATION_WRAP_PARAMETERS
@WrapParameters annotation (see JSweet core API).public static final String ANNOTATION_FUNCTIONAL_INTERFACE
FunctionalInterface annotation.public static final Set<String> JAVA_KEYWORDS
public static final Set<String> JS_KEYWORDS
public static final Set<String> TS_STRICT_MODE_KEYWORDS
public static final Set<String> TS_TOP_LEVEL_KEYWORDS
public static final Set<Character> TS_IDENTIFIER_FORBIDDEN_CHARS
public static final String JS_KEYWORD_PREFIX
public static final String FIELD_METHOD_CLASH_RESOLVER_PREFIX
public static final String CONFIGURATION_FILE_NAME
public static String getVersionNumber()
public static String getBuildDate()
public static void initClassPath(String jdkHome)
jdkHome - the jdkHome option value (if not set or not found, fall back
to the JAVA_HOME environment variable)handler - the transpilation handler that should report an error if
tools.jar is not found (if null uses the default logger)public static boolean isJDKReplacementMode()
public static boolean isJDKPath(String qualifiedName)
public static boolean isLibPath(String qualifiedName)
public static boolean isJSweetPath(String qualifiedName)