Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
Class AbstractEcmaObjectOperations
java.lang.Object
org.htmlunit.corejs.javascript.AbstractEcmaObjectOperations
Abstract Object Operations as defined by EcmaScript
- See Also:
-
- Abstract
Operations - Operations on Objects
Notes
- all methods are to deviate from the method signature defined in the EcmaScript specification, by taking an additional 1st parameter of type Context: (downstream) methods may need the Context object to read flags and we want to avoid having to look up the current context (for performance reasons)
- all methods that implement an Abstract Operation as defined by EcmaScript are to be package-scopes methods, to prevent them from being used directly by 3rd party code, which would hamper evolving them over time to adept to newer EcmaScript specifications
- a link to the method specification of the specific (EcmaScript) version implemented will be put in the JavaDoc of each method that implements an Abstract Operations
- Abstract
Operations - Operations on Objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisConstructor(Context cx, Object argument) IsConstructor ( argument )static longlengthOfArrayLike(Context cx, Scriptable o) LengthOfArrayLike ( obj )static booleanordinarySet(Context cx, VarScope s, ScriptableObject o, Object p, Object v, Scriptable receiver) Implements the OrdinarySetWithOwnDescriptor abstract operation.static ConstructablespeciesConstructor(Context cx, Object s, Constructable defaultConstructor) Implement the ECMAScript abstract operation "SpeciesConstructor" defined in section 7.2.33 of ECMA262.
-
Constructor Details
-
AbstractEcmaObjectOperations
public AbstractEcmaObjectOperations()
-
-
Method Details
-
speciesConstructor
public static Constructable speciesConstructor(Context cx, Object s, Constructable defaultConstructor) Implement the ECMAScript abstract operation "SpeciesConstructor" defined in section 7.2.33 of ECMA262. -
lengthOfArrayLike
LengthOfArrayLike ( obj ) -
isConstructor
IsConstructor ( argument ) -
ordinarySet
public static boolean ordinarySet(Context cx, VarScope s, ScriptableObject o, Object p, Object v, Scriptable receiver) Implements the OrdinarySetWithOwnDescriptor abstract operation.
-