Java Doc for ScriptRuntime.java in  » Scripting » rhino » org » mozilla » javascript » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » rhino » org.mozilla.javascript 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mozilla.javascript.ScriptRuntime

All known Subclasses:   org.mozilla.javascript.optimizer.OptRuntime,
ScriptRuntime
public class ScriptRuntime (Code)
This is the class that implements the runtime.
author:
   Norris Boyd


Field Summary
final public static  ClassBooleanClassByteClassCharacterClassClassClassDoubleClassFloatClassIntegerClassLongClassNumberClassObjectClassShortClassStringClassDateClass
    
final public static  ClassContextClassContextFactoryClassFunctionClassScriptableClassScriptableObjectClass
    
final public static  intENUMERATE_ARRAY
    
final public static  intENUMERATE_ARRAY_NO_ITERATOR
    
final public static  intENUMERATE_KEYS
    
final public static  intENUMERATE_KEYS_NO_ITERATOR
    
final public static  intENUMERATE_VALUES
    
final public static  intENUMERATE_VALUES_NO_ITERATOR
    
final public static  doubleNaN
    
final public static  DoubleNaNobj
    
final public static  Object[]emptyArgs
    
final public static  String[]emptyStrings
    
final public static  doublenegativeZero
    

Constructor Summary
protected  ScriptRuntime()
     No instances should be created.

Method Summary
public static  Objectadd(Object val1, Object val2, Context cx)
    
public static  Stringadd(String val1, Object val2)
    
public static  Stringadd(Object val1, String val2)
    
public static  voidaddInstructionCount(Context cx, int instructionsToAdd)
    
public static  ObjectapplyOrCall(boolean isApply, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
    
public static  Scriptablebind(Context cx, Scriptable scope, String id)
     Returns the object in the scope chain that has a given property. The order of evaluation of an assignment expression involves evaluating the lhs to a reference, evaluating the rhs, and then modifying the reference with the rhs value.
public static  Objectcall(Context cx, Object fun, Object thisArg, Object[] args, Scriptable scope)
    
public static  RefcallRef(Callable function, Scriptable thisObj, Object[] args, Context cx)
     Perform function call in reference context.
public static  ObjectcallSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String filename, int lineNumber)
    
static  voidcheckDeprecated(Context cx, String name)
    
static  ScriptablecheckDynamicScope(Scriptable possibleDynamicScope, Scriptable staticTopScope)
     Return possibleDynamicScope if staticTopScope is present on its prototype chain and return staticTopScope otherwise.
public static  RegExpProxycheckRegExpProxy(Context cx)
    
public static  booleancmp_LE(Object val1, Object val2)
    
public static  booleancmp_LT(Object val1, Object val2)
    
public static  EcmaErrorconstructError(String error, String message)
    
public static  EcmaErrorconstructError(String error, String message, int lineNumberDelta)
    
public static  EcmaErrorconstructError(String error, String message, String sourceName, int lineNumber, String lineSource, int columnNumber)
    
public static  ScriptablecreateFunctionActivation(NativeFunction funObj, Scriptable scope, Object[] args)
    
static  StringdefaultObjectToSource(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
    
static  StringdefaultObjectToString(Scriptable obj)
    
public static  Objectdelete(Object obj, Object id, Context cx)
     The delete operator See ECMA 11.4.1 In ECMA 0.19, the description of the delete operator (11.4.1) assumes that the [[Delete]] method returns a value.
public static  booleandeleteObjectElem(Scriptable target, Object elem, Context cx)
    
public static  ObjectdoTopCall(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
    
public static  ObjectelemIncrDecr(Object obj, Object index, Context cx, int incrDecrMask)
    
public static  voidenterActivationFunction(Context cx, Scriptable scope)
    
public static  ScriptableenterDotQuery(Object value, Scriptable scope)
    
public static  ScriptableenterWith(Object obj, Context cx, Scriptable scope)
    
public static  ObjectenumId(Object enumObj, Context cx)
    
public static  ObjectenumInit(Object value, Context cx, boolean enumValues)
    
public static  ObjectenumInit(Object value, Context cx, int enumType)
    
public static  BooleanenumNext(Object enumObj)
    
public static  ObjectenumValue(Object enumObj, Context cx)
    
public static  booleaneq(Object x, Object y)
    
static  booleaneqNumber(double x, Object y)
    
public static  StringescapeAttributeValue(Object value, Context cx)
    
public static  StringescapeString(String s)
    
public static  StringescapeString(String s, char escapeQuote)
    
public static  StringescapeTextValue(Object value, Context cx)
    
public static  ObjectevalSpecial(Context cx, Scriptable scope, Object thisArg, Object[] args, String filename, int lineNumber)
     The eval function property of the global object.
public static  voidexitActivationFunction(Context cx)
    
static  NativeCallfindFunctionActivation(Context cx, Function f)
    
static  Object[]getApplyArguments(Context cx, Object arg1)
    
public static  Object[]getArrayElements(Scriptable object)
    
static  CallablegetCallable(Scriptable thisObj)
    
public static  CallablegetElemFunctionAndThis(Object obj, Object elem, Context cx)
     Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
static  FunctiongetExistingCtor(Context cx, Scriptable scope, String constructorName)
    
public static  ScriptableObjectgetGlobal(Context cx)
    
static  ObjectgetIndexObject(String s)
     If s represents index, then return index value wrapped as Integer and othewise return s.
static  ObjectgetIndexObject(double d)
     If d is exact int value, return its value wrapped as Integer and othewise return d converted to String.
public static  ScriptableObjectgetLibraryScopeOrNull(Scriptable scope)
    
public static  StringgetMessage(String messageId, Object[] arguments)
    
public static  StringgetMessage0(String messageId)
    
public static  StringgetMessage1(String messageId, Object arg1)
    
public static  StringgetMessage2(String messageId, Object arg1, Object arg2)
    
public static  StringgetMessage3(String messageId, Object arg1, Object arg2, Object arg3)
    
public static  StringgetMessage4(String messageId, Object arg1, Object arg2, Object arg3, Object arg4)
    
public static  CallablegetNameFunctionAndThis(String name, Context cx, Scriptable scope)
     Prepare for calling name(...): return function corresponding to name and make current top scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
public static  ObjectgetObjectElem(Object obj, Object elem, Context cx)
    
public static  ObjectgetObjectElem(Scriptable obj, Object elem, Context cx)
    
public static  ObjectgetObjectIndex(Object obj, double dblIndex, Context cx)
    
public static  ObjectgetObjectIndex(Scriptable obj, int index, Context cx)
    
public static  ObjectgetObjectProp(Object obj, String property, Context cx)
     Version of getObjectElem when elem is a valid JS identifier name.
public static  ObjectgetObjectProp(Scriptable obj, String property, Context cx)
    
public static  ObjectgetObjectPropNoWarn(Object obj, String property, Context cx)
    
public static  CallablegetPropFunctionAndThis(Object obj, String property, Context cx)
     Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
public static  RegExpProxygetRegExpProxy(Context cx)
    
public static  ScriptablegetTopCallScope(Context cx)
    
public static  ObjectgetTopLevelProp(Scriptable scope, String id)
    
public static  CallablegetValueFunctionAndThis(Object value, Context cx)
     Prepare for calling (...): return function corresponding to and make parent scope of the function available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj.
public static  booleanhasObjectElem(Scriptable target, Object elem, Context cx)
    
public static  booleanhasTopCall(Context cx)
    
public static  booleanin(Object a, Object b, Context cx)
     The in operator. This is a new JS 1.3 language feature.
public static  voidinitFunction(Context cx, Scriptable scope, NativeFunction function, int type, boolean fromEvalCode)
    
public static  voidinitScript(NativeFunction funObj, Scriptable thisObj, Context cx, Scriptable scope, boolean evalScript)
    
public static  ScriptableObjectinitStandardObjects(Context cx, ScriptableObject scope, boolean sealed)
    
public static  booleaninstanceOf(Object a, Object b, Context cx)
     The instanceof operator.
public static  booleanisArrayObject(Object obj)
    
static  booleanisGeneratedScript(String sourceUrl)
    
public static  booleanisJSLineTerminator(int c)
    
public static  booleanisRhinoRuntimeType(Class cl)
    
static  booleanisSpecialProperty(String s)
    
static  booleanisValidIdentifierName(String s)
    
public static  booleanjsDelegatesTo(Scriptable lhs, Scriptable rhs)
    
static  intlastIndexResult(Context cx)
    
public static  ScriptablelastStoredScriptable(Context cx)
    
public static  longlastUint32Result(Context cx)
    
public static  ScriptableleaveDotQuery(Scriptable scope)
    
public static  ScriptableleaveWith(Scriptable scope)
    
static  StringmakeUrlForGeneratedScript(boolean isEval, String masterScriptUrl, int masterScriptLine)
    
public static  RefmemberRef(Object obj, Object elem, Context cx, int memberTypeFlags)
    
public static  RefmemberRef(Object obj, Object namespace, Object elem, Context cx, int memberTypeFlags)
    
public static  Objectname(Context cx, Scriptable scope, String name)
     Looks up a name in the scope chain and returns its value.
public static  ObjectnameIncrDecr(Scriptable scopeChain, String id, int incrDecrMask)
    
public static  ObjectnameIncrDecr(Scriptable scopeChain, String id, Context cx, int incrDecrMask)
    
public static  RefnameRef(Object name, Context cx, Scriptable scope, int memberTypeFlags)
    
public static  RefnameRef(Object namespace, Object name, Context cx, Scriptable scope, int memberTypeFlags)
    
public static  ScriptablenewArrayLiteral(Object[] objects, int[] skipIndices, Context cx, Scriptable scope)
    
public static  ScriptablenewCatchScope(Throwable t, Scriptable lastCatchScope, String exceptionName, Context cx, Scriptable scope)
    
public static  ScriptablenewObject(Context cx, Scriptable scope, String constructorName, Object[] args)
    
public static  ScriptablenewObject(Object fun, Context cx, Scriptable scope, Object[] args)
     Operator new.
public static  ScriptablenewObjectLiteral(Object[] propertyIds, Object[] propertyValues, Context cx, Scriptable scope)
     This method is here for backward compat with existing compiled code.
public static  ScriptablenewObjectLiteral(Object[] propertyIds, Object[] propertyValues, int[] getterSetters, Context cx, Scriptable scope)
    
public static  ObjectnewSpecial(Context cx, Object fun, Object[] args, Scriptable scope, int callType)
    
public static  RuntimeExceptionnotFoundError(Scriptable object, String property)
    
public static  RuntimeExceptionnotFunctionError(Object value)
    
public static  RuntimeExceptionnotFunctionError(Object value, Object messageHelper)
    
public static  RuntimeExceptionnotFunctionError(Object obj, Object value, String propertyName)
    
public static  StringnumberToString(double d, int base)
    
public static  Object[]padArguments(Object[] args, int count)
     Helper function for builtin objects that use the varargs form.
public static  ObjectpropIncrDecr(Object obj, String id, Context cx, int incrDecrMask)
    
public static  ObjectrefDel(Ref ref, Context cx)
    
public static  ObjectrefGet(Ref ref, Context cx)
    
public static  ObjectrefIncrDecr(Ref ref, Context cx, int incrDecrMask)
    
public static  ObjectrefSet(Ref ref, Object value, Context cx)
    
public static  ObjectsearchDefaultNamespace(Context cx)
    
public static  ObjectsetConst(Scriptable bound, Object value, Context cx, String id)
    
public static  ObjectsetDefaultNamespace(Object namespace, Context cx)
    
public static  voidsetEnumNumbers(Object enumObj, boolean enumNumbers)
    
public static  voidsetFunctionProtoAndParent(BaseFunction fn, Scriptable scope)
    
public static  ObjectsetName(Scriptable bound, Object value, Context cx, Scriptable scope, String id)
    
public static  ObjectsetObjectElem(Object obj, Object elem, Object value, Context cx)
    
public static  ObjectsetObjectElem(Scriptable obj, Object elem, Object value, Context cx)
    
public static  ObjectsetObjectIndex(Object obj, double dblIndex, Object value, Context cx)
    
public static  ObjectsetObjectIndex(Scriptable obj, int index, Object value, Context cx)
    
public static  ObjectsetObjectProp(Object obj, String property, Object value, Context cx)
     Version of setObjectElem when elem is a valid JS identifier name.
public static  ObjectsetObjectProp(Scriptable obj, String property, Object value, Context cx)
    
public static  voidsetObjectProtoAndParent(ScriptableObject object, Scriptable scope)
    
public static  voidsetRegExpProxy(Context cx, RegExpProxy proxy)
    
public static  booleanshallowEq(Object x, Object y)
    
public static  RefspecialRef(Object obj, String specialProperty, Context cx)
    
public static  voidstoreUint32Result(Context cx, long value)
    
static  doublestringToNumber(String s, int start, int radix)
    
public static  longtestUint32String(String str)
     If str is a decimal presentation of Uint32 value, return it as long.
public static  booleantoBoolean(Object val)
     Convert the value to a boolean.
public static  inttoInt32(Object val)
     See ECMA 9.5.
public static  inttoInt32(Object[] args, int index)
    
public static  inttoInt32(double d)
    
public static  doubletoInteger(Object val)
     See ECMA 9.4.
public static  doubletoInteger(double d)
    
public static  doubletoInteger(Object[] args, int index)
    
public static  ScriptabletoIterator(Context cx, Scriptable scope, Scriptable obj, boolean keyOnly)
    
public static  doubletoNumber(Object val)
     Convert the value to a number.
public static  doubletoNumber(Object[] args, int index)
    
public static  doubletoNumber(String s)
    
public static  ScriptabletoObject(Scriptable scope, Object val)
    
public static  ScriptabletoObject(Scriptable scope, Object val, Class staticClass)
    
public static  ScriptabletoObject(Context cx, Scriptable scope, Object val)
     Convert the value to an object.
public static  ScriptabletoObject(Context cx, Scriptable scope, Object val, Class staticClass)
    
public static  ScriptabletoObjectOrNull(Context cx, Object obj)
    
public static  StringtoString(Object val)
     Convert the value to a string.
public static  StringtoString(Object[] args, int index)
    
public static  StringtoString(double val)
     Optimized version of toString(Object) for numbers.
static  StringtoStringIdOrIndex(Context cx, Object id)
     If toString(id) is a decimal presentation of int32 value, then id is index.
public static  chartoUint16(Object val)
     See ECMA 9.7.
public static  longtoUint32(double d)
     See ECMA 9.6.
public static  longtoUint32(Object val)
    
public static  EcmaErrortypeError(String message)
    
public static  EcmaErrortypeError0(String messageId)
    
public static  EcmaErrortypeError1(String messageId, String arg1)
    
public static  EcmaErrortypeError2(String messageId, String arg1, String arg2)
    
public static  EcmaErrortypeError3(String messageId, String arg1, String arg2, String arg3)
    
public static  Stringtypeof(Object value)
    
public static  StringtypeofName(Scriptable scope, String id)
    
public static  RuntimeExceptionundefCallError(Object object, Object id)
    
public static  RuntimeExceptionundefReadError(Object object, Object id)
    
public static  RuntimeExceptionundefWriteError(Object object, Object id, Object value)
    
static  Stringuneval(Context cx, Scriptable scope, Object value)
    
public static  ObjectupdateDotQuery(boolean value, Scriptable scope)
    
public static  BooleanwrapBoolean(boolean b)
    
public static  IntegerwrapInt(int i)
    
public static  NumberwrapNumber(double x)
    

Field Detail
BooleanClassByteClassCharacterClassClassClassDoubleClassFloatClassIntegerClassLongClassNumberClassObjectClassShortClassStringClassDateClass
final public static Class BooleanClassByteClassCharacterClassClassClassDoubleClassFloatClassIntegerClassLongClassNumberClassObjectClassShortClassStringClassDateClass(Code)



ContextClassContextFactoryClassFunctionClassScriptableClassScriptableObjectClass
final public static Class ContextClassContextFactoryClassFunctionClassScriptableClassScriptableObjectClass(Code)



ENUMERATE_ARRAY
final public static int ENUMERATE_ARRAY(Code)



ENUMERATE_ARRAY_NO_ITERATOR
final public static int ENUMERATE_ARRAY_NO_ITERATOR(Code)



ENUMERATE_KEYS
final public static int ENUMERATE_KEYS(Code)



ENUMERATE_KEYS_NO_ITERATOR
final public static int ENUMERATE_KEYS_NO_ITERATOR(Code)



ENUMERATE_VALUES
final public static int ENUMERATE_VALUES(Code)



ENUMERATE_VALUES_NO_ITERATOR
final public static int ENUMERATE_VALUES_NO_ITERATOR(Code)



NaN
final public static double NaN(Code)



NaNobj
final public static Double NaNobj(Code)



emptyArgs
final public static Object[] emptyArgs(Code)



emptyStrings
final public static String[] emptyStrings(Code)



negativeZero
final public static double negativeZero(Code)




Constructor Detail
ScriptRuntime
protected ScriptRuntime()(Code)
No instances should be created.




Method Detail
add
public static Object add(Object val1, Object val2, Context cx)(Code)



add
public static String add(String val1, Object val2)(Code)



add
public static String add(Object val1, String val2)(Code)



addInstructionCount
public static void addInstructionCount(Context cx, int instructionsToAdd)(Code)



applyOrCall
public static Object applyOrCall(boolean isApply, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)(Code)
Function.prototype.apply and Function.prototype.call See Ecma 15.3.4.[34]



bind
public static Scriptable bind(Context cx, Scriptable scope, String id)(Code)
Returns the object in the scope chain that has a given property. The order of evaluation of an assignment expression involves evaluating the lhs to a reference, evaluating the rhs, and then modifying the reference with the rhs value. This method is used to 'bind' the given name to an object containing that property so that the side effects of evaluating the rhs do not affect which property is modified. Typically used in conjunction with setName. See ECMA 10.1.4



call
public static Object call(Context cx, Object fun, Object thisArg, Object[] args, Scriptable scope)(Code)



callRef
public static Ref callRef(Callable function, Scriptable thisObj, Object[] args, Context cx)(Code)
Perform function call in reference context. Should always return value that can be passed to ScriptRuntime.refGet(Ref,Context) or ScriptRuntime.refSet(Ref,Object,Context) arbitrary number of times. The args array reference should not be stored in any object that is can be GC-reachable after this method returns. If this is necessary, store args.clone(), not args array itself.



callSpecial
public static Object callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String filename, int lineNumber)(Code)



checkDeprecated
static void checkDeprecated(Context cx, String name)(Code)



checkDynamicScope
static Scriptable checkDynamicScope(Scriptable possibleDynamicScope, Scriptable staticTopScope)(Code)
Return possibleDynamicScope if staticTopScope is present on its prototype chain and return staticTopScope otherwise. Should only be called when staticTopScope is top scope.



checkRegExpProxy
public static RegExpProxy checkRegExpProxy(Context cx)(Code)



cmp_LE
public static boolean cmp_LE(Object val1, Object val2)(Code)



cmp_LT
public static boolean cmp_LT(Object val1, Object val2)(Code)



constructError
public static EcmaError constructError(String error, String message)(Code)



constructError
public static EcmaError constructError(String error, String message, int lineNumberDelta)(Code)



constructError
public static EcmaError constructError(String error, String message, String sourceName, int lineNumber, String lineSource, int columnNumber)(Code)



createFunctionActivation
public static Scriptable createFunctionActivation(NativeFunction funObj, Scriptable scope, Object[] args)(Code)



defaultObjectToSource
static String defaultObjectToSource(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)(Code)



defaultObjectToString
static String defaultObjectToString(Scriptable obj)(Code)



delete
public static Object delete(Object obj, Object id, Context cx)(Code)
The delete operator See ECMA 11.4.1 In ECMA 0.19, the description of the delete operator (11.4.1) assumes that the [[Delete]] method returns a value. However, the definition of the [[Delete]] operator (8.6.2.5) does not define a return value. Here we assume that the [[Delete]] method doesn't return a value.



deleteObjectElem
public static boolean deleteObjectElem(Scriptable target, Object elem, Context cx)(Code)



doTopCall
public static Object doTopCall(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)(Code)



elemIncrDecr
public static Object elemIncrDecr(Object obj, Object index, Context cx, int incrDecrMask)(Code)



enterActivationFunction
public static void enterActivationFunction(Context cx, Scriptable scope)(Code)



enterDotQuery
public static Scriptable enterDotQuery(Object value, Scriptable scope)(Code)



enterWith
public static Scriptable enterWith(Object obj, Context cx, Scriptable scope)(Code)



enumId
public static Object enumId(Object enumObj, Context cx)(Code)



enumInit
public static Object enumInit(Object value, Context cx, boolean enumValues)(Code)



enumInit
public static Object enumInit(Object value, Context cx, int enumType)(Code)



enumNext
public static Boolean enumNext(Object enumObj)(Code)



enumValue
public static Object enumValue(Object enumObj, Context cx)(Code)



eq
public static boolean eq(Object x, Object y)(Code)
Equality See ECMA 11.9



eqNumber
static boolean eqNumber(double x, Object y)(Code)



escapeAttributeValue
public static String escapeAttributeValue(Object value, Context cx)(Code)
Escapes the reserved characters in a value of an attribute
Parameters:
  value - Unescaped text The escaped text



escapeString
public static String escapeString(String s)(Code)



escapeString
public static String escapeString(String s, char escapeQuote)(Code)
For escaping strings printed by object and array literals; not quite the same as 'escape.'



escapeTextValue
public static String escapeTextValue(Object value, Context cx)(Code)
Escapes the reserved characters in a value of a text node
Parameters:
  value - Unescaped text The escaped text



evalSpecial
public static Object evalSpecial(Context cx, Scriptable scope, Object thisArg, Object[] args, String filename, int lineNumber)(Code)
The eval function property of the global object. See ECMA 15.1.2.1



exitActivationFunction
public static void exitActivationFunction(Context cx)(Code)



findFunctionActivation
static NativeCall findFunctionActivation(Context cx, Function f)(Code)



getApplyArguments
static Object[] getApplyArguments(Context cx, Object arg1)(Code)



getArrayElements
public static Object[] getArrayElements(Scriptable object)(Code)



getCallable
static Callable getCallable(Scriptable thisObj)(Code)



getElemFunctionAndThis
public static Callable getElemFunctionAndThis(Object obj, Object elem, Context cx)(Code)
Prepare for calling obj[id](...): return function corresponding to obj[id] and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.



getExistingCtor
static Function getExistingCtor(Context cx, Scriptable scope, String constructorName)(Code)



getGlobal
public static ScriptableObject getGlobal(Context cx)(Code)



getIndexObject
static Object getIndexObject(String s)(Code)
If s represents index, then return index value wrapped as Integer and othewise return s.



getIndexObject
static Object getIndexObject(double d)(Code)
If d is exact int value, return its value wrapped as Integer and othewise return d converted to String.



getLibraryScopeOrNull
public static ScriptableObject getLibraryScopeOrNull(Scriptable scope)(Code)



getMessage
public static String getMessage(String messageId, Object[] arguments)(Code)



getMessage0
public static String getMessage0(String messageId)(Code)



getMessage1
public static String getMessage1(String messageId, Object arg1)(Code)



getMessage2
public static String getMessage2(String messageId, Object arg1, Object arg2)(Code)



getMessage3
public static String getMessage3(String messageId, Object arg1, Object arg2, Object arg3)(Code)



getMessage4
public static String getMessage4(String messageId, Object arg1, Object arg2, Object arg3, Object arg4)(Code)



getNameFunctionAndThis
public static Callable getNameFunctionAndThis(String name, Context cx, Scriptable scope)(Code)
Prepare for calling name(...): return function corresponding to name and make current top scope available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.



getObjectElem
public static Object getObjectElem(Object obj, Object elem, Context cx)(Code)
Call obj.[[Get]](id)



getObjectElem
public static Object getObjectElem(Scriptable obj, Object elem, Context cx)(Code)



getObjectIndex
public static Object getObjectIndex(Object obj, double dblIndex, Context cx)(Code)



getObjectIndex
public static Object getObjectIndex(Scriptable obj, int index, Context cx)(Code)



getObjectProp
public static Object getObjectProp(Object obj, String property, Context cx)(Code)
Version of getObjectElem when elem is a valid JS identifier name.



getObjectProp
public static Object getObjectProp(Scriptable obj, String property, Context cx)(Code)



getObjectPropNoWarn
public static Object getObjectPropNoWarn(Object obj, String property, Context cx)(Code)



getPropFunctionAndThis
public static Callable getPropFunctionAndThis(Object obj, String property, Context cx)(Code)
Prepare for calling obj.property(...): return function corresponding to obj.property and make obj properly converted to Scriptable available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.



getRegExpProxy
public static RegExpProxy getRegExpProxy(Context cx)(Code)



getTopCallScope
public static Scriptable getTopCallScope(Context cx)(Code)



getTopLevelProp
public static Object getTopLevelProp(Scriptable scope, String id)(Code)



getValueFunctionAndThis
public static Callable getValueFunctionAndThis(Object value, Context cx)(Code)
Prepare for calling (...): return function corresponding to and make parent scope of the function available as ScriptRuntime.lastStoredScriptable() for consumption as thisObj. The caller must call ScriptRuntime.lastStoredScriptable() immediately after calling this method.



hasObjectElem
public static boolean hasObjectElem(Scriptable target, Object elem, Context cx)(Code)



hasTopCall
public static boolean hasTopCall(Context cx)(Code)



in
public static boolean in(Object a, Object b, Context cx)(Code)
The in operator. This is a new JS 1.3 language feature. The in operator mirrors the operation of the for .. in construct, and tests whether the rhs has the property given by the lhs. It is different from the for .. in construct in that:
- it doesn't perform ToObject on the right hand side
- it returns true for DontEnum properties.
Parameters:
  a - the left hand operand
Parameters:
  b - the right hand operand true if property name or element number a is a property of b



initFunction
public static void initFunction(Context cx, Scriptable scope, NativeFunction function, int type, boolean fromEvalCode)(Code)



initScript
public static void initScript(NativeFunction funObj, Scriptable thisObj, Context cx, Scriptable scope, boolean evalScript)(Code)



initStandardObjects
public static ScriptableObject initStandardObjects(Context cx, ScriptableObject scope, boolean sealed)(Code)



instanceOf
public static boolean instanceOf(Object a, Object b, Context cx)(Code)
The instanceof operator. a instanceof b



isArrayObject
public static boolean isArrayObject(Object obj)(Code)



isGeneratedScript
static boolean isGeneratedScript(String sourceUrl)(Code)



isJSLineTerminator
public static boolean isJSLineTerminator(int c)(Code)



isRhinoRuntimeType
public static boolean isRhinoRuntimeType(Class cl)(Code)



isSpecialProperty
static boolean isSpecialProperty(String s)(Code)



isValidIdentifierName
static boolean isValidIdentifierName(String s)(Code)



jsDelegatesTo
public static boolean jsDelegatesTo(Scriptable lhs, Scriptable rhs)(Code)
Delegates to true iff rhs appears in lhs' proto chain



lastIndexResult
static int lastIndexResult(Context cx)(Code)



lastStoredScriptable
public static Scriptable lastStoredScriptable(Context cx)(Code)



lastUint32Result
public static long lastUint32Result(Context cx)(Code)



leaveDotQuery
public static Scriptable leaveDotQuery(Scriptable scope)(Code)



leaveWith
public static Scriptable leaveWith(Scriptable scope)(Code)



makeUrlForGeneratedScript
static String makeUrlForGeneratedScript(boolean isEval, String masterScriptUrl, int masterScriptLine)(Code)



memberRef
public static Ref memberRef(Object obj, Object elem, Context cx, int memberTypeFlags)(Code)



memberRef
public static Ref memberRef(Object obj, Object namespace, Object elem, Context cx, int memberTypeFlags)(Code)



name
public static Object name(Context cx, Scriptable scope, String name)(Code)
Looks up a name in the scope chain and returns its value.



nameIncrDecr
public static Object nameIncrDecr(Scriptable scopeChain, String id, int incrDecrMask)(Code)



nameIncrDecr
public static Object nameIncrDecr(Scriptable scopeChain, String id, Context cx, int incrDecrMask)(Code)



nameRef
public static Ref nameRef(Object name, Context cx, Scriptable scope, int memberTypeFlags)(Code)



nameRef
public static Ref nameRef(Object namespace, Object name, Context cx, Scriptable scope, int memberTypeFlags)(Code)



newArrayLiteral
public static Scriptable newArrayLiteral(Object[] objects, int[] skipIndices, Context cx, Scriptable scope)(Code)



newCatchScope
public static Scriptable newCatchScope(Throwable t, Scriptable lastCatchScope, String exceptionName, Context cx, Scriptable scope)(Code)



newObject
public static Scriptable newObject(Context cx, Scriptable scope, String constructorName, Object[] args)(Code)



newObject
public static Scriptable newObject(Object fun, Context cx, Scriptable scope, Object[] args)(Code)
Operator new. See ECMA 11.2.2



newObjectLiteral
public static Scriptable newObjectLiteral(Object[] propertyIds, Object[] propertyValues, Context cx, Scriptable scope)(Code)
This method is here for backward compat with existing compiled code. It is called when an object literal is compiled. The next instance will be the version called from new code.



newObjectLiteral
public static Scriptable newObjectLiteral(Object[] propertyIds, Object[] propertyValues, int[] getterSetters, Context cx, Scriptable scope)(Code)



newSpecial
public static Object newSpecial(Context cx, Object fun, Object[] args, Scriptable scope, int callType)(Code)



notFoundError
public static RuntimeException notFoundError(Scriptable object, String property)(Code)



notFunctionError
public static RuntimeException notFunctionError(Object value)(Code)



notFunctionError
public static RuntimeException notFunctionError(Object value, Object messageHelper)(Code)



notFunctionError
public static RuntimeException notFunctionError(Object obj, Object value, String propertyName)(Code)



numberToString
public static String numberToString(double d, int base)(Code)



padArguments
public static Object[] padArguments(Object[] args, int count)(Code)
Helper function for builtin objects that use the varargs form. ECMA function formal arguments are undefined if not supplied; this function pads the argument array out to the expected length, if necessary.



propIncrDecr
public static Object propIncrDecr(Object obj, String id, Context cx, int incrDecrMask)(Code)



refDel
public static Object refDel(Ref ref, Context cx)(Code)



refGet
public static Object refGet(Ref ref, Context cx)(Code)



refIncrDecr
public static Object refIncrDecr(Ref ref, Context cx, int incrDecrMask)(Code)



refSet
public static Object refSet(Ref ref, Object value, Context cx)(Code)



searchDefaultNamespace
public static Object searchDefaultNamespace(Context cx)(Code)



setConst
public static Object setConst(Scriptable bound, Object value, Context cx, String id)(Code)



setDefaultNamespace
public static Object setDefaultNamespace(Object namespace, Context cx)(Code)



setEnumNumbers
public static void setEnumNumbers(Object enumObj, boolean enumNumbers)(Code)



setFunctionProtoAndParent
public static void setFunctionProtoAndParent(BaseFunction fn, Scriptable scope)(Code)



setName
public static Object setName(Scriptable bound, Object value, Context cx, Scriptable scope, String id)(Code)



setObjectElem
public static Object setObjectElem(Object obj, Object elem, Object value, Context cx)(Code)



setObjectElem
public static Object setObjectElem(Scriptable obj, Object elem, Object value, Context cx)(Code)



setObjectIndex
public static Object setObjectIndex(Object obj, double dblIndex, Object value, Context cx)(Code)



setObjectIndex
public static Object setObjectIndex(Scriptable obj, int index, Object value, Context cx)(Code)



setObjectProp
public static Object setObjectProp(Object obj, String property, Object value, Context cx)(Code)
Version of setObjectElem when elem is a valid JS identifier name.



setObjectProp
public static Object setObjectProp(Scriptable obj, String property, Object value, Context cx)(Code)



setObjectProtoAndParent
public static void setObjectProtoAndParent(ScriptableObject object, Scriptable scope)(Code)



setRegExpProxy
public static void setRegExpProxy(Context cx, RegExpProxy proxy)(Code)



shallowEq
public static boolean shallowEq(Object x, Object y)(Code)



specialRef
public static Ref specialRef(Object obj, String specialProperty, Context cx)(Code)



storeUint32Result
public static void storeUint32Result(Context cx, long value)(Code)



stringToNumber
static double stringToNumber(String s, int start, int radix)(Code)



testUint32String
public static long testUint32String(String str)(Code)
If str is a decimal presentation of Uint32 value, return it as long. Othewise return -1L;



toBoolean
public static boolean toBoolean(Object val)(Code)
Convert the value to a boolean. See ECMA 9.2.



toInt32
public static int toInt32(Object val)(Code)
See ECMA 9.5.



toInt32
public static int toInt32(Object[] args, int index)(Code)



toInt32
public static int toInt32(double d)(Code)



toInteger
public static double toInteger(Object val)(Code)
See ECMA 9.4.



toInteger
public static double toInteger(double d)(Code)



toInteger
public static double toInteger(Object[] args, int index)(Code)



toIterator
public static Scriptable toIterator(Context cx, Scriptable scope, Scriptable obj, boolean keyOnly)(Code)



toNumber
public static double toNumber(Object val)(Code)
Convert the value to a number. See ECMA 9.3.



toNumber
public static double toNumber(Object[] args, int index)(Code)



toNumber
public static double toNumber(String s)(Code)
ToNumber applied to the String type See ECMA 9.3.1



toObject
public static Scriptable toObject(Scriptable scope, Object val)(Code)



toObject
public static Scriptable toObject(Scriptable scope, Object val, Class staticClass)(Code)
ScriptRuntime.toObject(Scriptable,Object)



toObject
public static Scriptable toObject(Context cx, Scriptable scope, Object val)(Code)
Convert the value to an object. See ECMA 9.9.



toObject
public static Scriptable toObject(Context cx, Scriptable scope, Object val, Class staticClass)(Code)
ScriptRuntime.toObject(Context,Scriptable,Object)



toObjectOrNull
public static Scriptable toObjectOrNull(Context cx, Object obj)(Code)



toString
public static String toString(Object val)(Code)
Convert the value to a string. See ECMA 9.8.



toString
public static String toString(Object[] args, int index)(Code)



toString
public static String toString(double val)(Code)
Optimized version of toString(Object) for numbers.



toStringIdOrIndex
static String toStringIdOrIndex(Context cx, Object id)(Code)
If toString(id) is a decimal presentation of int32 value, then id is index. In this case return null and make the index available as ScriptRuntime.lastIndexResult(cx). Otherwise return toString(id).



toUint16
public static char toUint16(Object val)(Code)
See ECMA 9.7.



toUint32
public static long toUint32(double d)(Code)
See ECMA 9.6. long value representing 32 bits unsigned integer



toUint32
public static long toUint32(Object val)(Code)



typeError
public static EcmaError typeError(String message)(Code)



typeError0
public static EcmaError typeError0(String messageId)(Code)



typeError1
public static EcmaError typeError1(String messageId, String arg1)(Code)



typeError2
public static EcmaError typeError2(String messageId, String arg1, String arg2)(Code)



typeError3
public static EcmaError typeError3(String messageId, String arg1, String arg2, String arg3)(Code)



typeof
public static String typeof(Object value)(Code)
The typeof operator



typeofName
public static String typeofName(Scriptable scope, String id)(Code)
The typeof operator that correctly handles the undefined case



undefCallError
public static RuntimeException undefCallError(Object object, Object id)(Code)



undefReadError
public static RuntimeException undefReadError(Object object, Object id)(Code)



undefWriteError
public static RuntimeException undefWriteError(Object object, Object id, Object value)(Code)



uneval
static String uneval(Context cx, Scriptable scope, Object value)(Code)



updateDotQuery
public static Object updateDotQuery(boolean value, Scriptable scope)(Code)



wrapBoolean
public static Boolean wrapBoolean(boolean b)(Code)



wrapInt
public static Integer wrapInt(int i)(Code)



wrapNumber
public static Number wrapNumber(double x)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.