|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.javascript.rhino.ScriptRuntime
public class ScriptRuntime
This is the class that implements the runtime.
Field Summary | |
---|---|
static Object[] |
emptyArgs
|
static String[] |
emptyStrings
|
static double |
NaN
|
static Double |
NaNobj
|
static double |
negativeZero
|
Constructor Summary | |
---|---|
protected |
ScriptRuntime()
No instances should be created. |
Method Summary | |
---|---|
static EcmaError |
constructError(String error,
String message)
|
static EcmaError |
constructError(String error,
String message,
String sourceName,
int lineNumber,
String lineSource,
int columnNumber)
|
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 String |
getMessage2(String messageId,
Object arg1,
Object arg2)
|
static String |
getMessage3(String messageId,
Object arg1,
Object arg2,
Object arg3)
|
static String |
getMessage4(String messageId,
Object arg1,
Object arg2,
Object arg3,
Object arg4)
|
static boolean |
isJSLineTerminator(int c)
|
static long |
lastUint32Result(Context cx)
|
static RuntimeException |
notFunctionError(Object value)
|
static RuntimeException |
notFunctionError(Object value,
Object messageHelper)
|
static String |
numberToString(double d,
int base)
|
static void |
storeUint32Result(Context cx,
long value)
|
static long |
testUint32String(String str)
If str is a decimal presentation of Uint32 value, return it as long. |
static String |
toString(Object val)
Convert the value to a string. |
static EcmaError |
typeError(String message)
|
static EcmaError |
typeError0(String messageId)
|
static EcmaError |
typeError1(String messageId,
String arg1)
|
static EcmaError |
typeError2(String messageId,
String arg1,
String arg2)
|
static EcmaError |
typeError3(String messageId,
String arg1,
String arg2,
String arg3)
|
static RuntimeException |
undefCallError(Object object,
Object id)
|
static RuntimeException |
undefReadError(Object object,
Object id)
|
static RuntimeException |
undefWriteError(Object object,
Object id,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double NaN
public static final double negativeZero
public static final Double NaNobj
public static final Object[] emptyArgs
public static final String[] emptyStrings
Constructor Detail |
---|
protected ScriptRuntime()
Method Detail |
---|
public static boolean isJSLineTerminator(int c)
public static String escapeString(String s)
public static String escapeString(String s, char escapeQuote)
public static String toString(Object val)
public static String numberToString(double d, int base)
public static long testUint32String(String str)
public static String getMessage0(String messageId)
public static String getMessage1(String messageId, Object arg1)
public static String getMessage2(String messageId, Object arg1, Object arg2)
public static String getMessage3(String messageId, Object arg1, Object arg2, Object arg3)
public static String getMessage4(String messageId, Object arg1, Object arg2, Object arg3, Object arg4)
public static String getMessage(String messageId, Object[] arguments)
public static EcmaError constructError(String error, String message)
public static EcmaError constructError(String error, String message, String sourceName, int lineNumber, String lineSource, int columnNumber)
public static EcmaError typeError(String message)
public static EcmaError typeError0(String messageId)
public static EcmaError typeError1(String messageId, String arg1)
public static EcmaError typeError2(String messageId, String arg1, String arg2)
public static EcmaError typeError3(String messageId, String arg1, String arg2, String arg3)
public static RuntimeException undefReadError(Object object, Object id)
public static RuntimeException undefCallError(Object object, Object id)
public static RuntimeException undefWriteError(Object object, Object id, Object value)
public static RuntimeException notFunctionError(Object value)
public static RuntimeException notFunctionError(Object value, Object messageHelper)
public static void storeUint32Result(Context cx, long value)
public static long lastUint32Result(Context cx)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |