Exclude from T those types that are assignable to U
Extract from T those types that are assignable to U
Obtain the return type of a constructor function type
Exclude null and undefined from T
Obtain the parameters of a function type in a tuple
Make all properties in T optional
From T, pick a set of properties whose keys are in the union K
Make all properties in T readonly
Construct a type with a set of properties K of type T
Make all properties in T required
Obtain the return type of a function type
An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
An intrinsic object that provides basic mathematics functionality and constants.
An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.
Provides functionality common to all JavaScript objects.
The Packages
constant provides access to the entire
Strange Eons Java API.
It reflects the root of the Java class path
as a JavaPackage object.
For example:
Packages.java.lang.String
Packages.ca.cgjennings.apps.arkham.StrangeEons
As a convenience, the common library predefines a number of
shortcuts to commonly used packages, including
java
, javax
, swing
(short for javax.swing
),
ca
(root of most Strange Eons classes), arkham
(short for ca.cgjennings.apps.arkham
, the most commonly used
part of the API), resources
(where ResourceKit
and Language
live),
and gamedata
(where the classes for parsing and registering new content
live).
Classes and packages can be added to the global namespace using the importClass and importPackage functions.
Allows manipulation and formatting of text strings and determination and location of substrings within strings.
Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
A value representing an encoded URI.
Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
A value representing an encoded URI component.
Encodes a text string as a valid Uniform Resource Identifier (URI)
A value representing an encoded URI.
Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
A value representing an encoded URI component.
Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
A string value
Evaluates JavaScript code and executes it.
A String value that contains valid JavaScript code.
Imports a class into the global scope so that it can be used by its
short class name. The effect is similar to using a Java import
statement. For example, the following code would import the class
java.io.File
so that it can be referred to simply as File
:
importClass(java.io.File);
let currentDir = new File(".");
println(currentDir.isDirectory());
println(currentDir.lastModified());
The name is always added to the global scope of the script, even if called from another scope (such as inside of a function). Importing a class will fail if the class's short name is already in use. In that case, you can instead assign the class to a name of your choice:
const javaString = java.lang.String;
the Java class whose class name should be added to the global scope
Imports all of the classes in a Java package into the script.
The effect is similar to using a Java import
statement with .*
after the package name.
When the script engine looks for a variable name, if it isn't defined in the current scope then before issuing an error it will check all of the imported packages to see if they contain a class of the same name, and if so that class will be imported. For example, in the following code File
will match the class java.io.File
from the java.io
package, and this be implicitly imported:
importPackage(java.io);
println(File.listRoots());
the package to add to the list of packages to search for class names that match unknown variables
Determines whether a supplied number is finite.
Any numeric value.
Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
A numeric value.
Converts a string to a floating-point number.
A string that contains a floating-point number.
Converts A string to an integer.
A string to convert into a number.
A value between 2 and 36 that specifies the base of the number in numString. If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. All other strings are considered decimal.
Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
A string value
Obtain the parameters of a constructor function type in a tuple