public class ScriptRuntime extends Object
Modifier and Type | Field and Description |
---|---|
static double |
NaN |
static double |
negativeZero |
Modifier | Constructor and Description |
---|---|
protected |
ScriptRuntime()
No instances should be created.
|
Modifier and Type | Method and Description |
---|---|
static String |
escapeString(String s) |
static String |
escapeString(String s,
char escapeQuote)
For escaping strings printed by object and array literals; not quite
the same as 'escape.'
|
static String |
getMessage(String messageId,
Object[] arguments) |
static String |
getMessage0(String messageId) |
static String |
getMessage1(String messageId,
Object arg1) |
static boolean |
isJSLineTerminator(int c) |
static long |
testUint32String(String str)
If str is a decimal presentation of Uint32 value, return it as long.
|
public static final double NaN
public static final double negativeZero
public static boolean isJSLineTerminator(int c)
public static String escapeString(String s, char escapeQuote)
public static long testUint32String(String str)