Package com.google.javascript.rhino
Class ScriptRuntime
java.lang.Object
com.google.javascript.rhino.ScriptRuntime
This is the class that implements the run-time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringescapeString(String s, char escapeQuote) For escaping strings printed by object and array literals; not quite the same as 'escape.'static StringgetMessage(String messageId, Object[] arguments) static StringgetMessage0(String messageId) static StringgetMessage1(String messageId, Object arg1) static booleanisJSLineTerminator(int c) static longtestUint32String(String str) If str is a decimal presentation of Uint32 value, return it as long.
-
Field Details
-
NaN
public static final double NaN -
negativeZero
public static final double negativeZero
-
-
Constructor Details
-
ScriptRuntime
protected ScriptRuntime()No instances should be created.
-
-
Method Details
-
isJSLineTerminator
public static boolean isJSLineTerminator(int c) -
escapeString
-
escapeString
For escaping strings printed by object and array literals; not quite the same as 'escape.' -
testUint32String
If str is a decimal presentation of Uint32 value, return it as long. Otherwise, return -1L; -
getMessage0
-
getMessage1
-
getMessage
-