JSObject class
- Annotations
Constructors
- JSObject(JSContext context, JSObjectRef ref)
-
const
-
JSObject.make(JSContext context, {JSClass? clazz, Pointer<
Void> ? data}) -
factory
-
JSObject.makeArray(JSContext context, {List<
JSValue> ? arguments}) -
factory
-
JSObject.makeArrayBufferWithBytesNoCopy(JSContext context, {required JSTypedArrayBytes bytes, Pointer<
NativeFunction< ? bytesDeallocator, required Pointer<JSTypedArrayBytesDeallocator> >Void> deallocatorContext}) -
factory
-
JSObject.makeConstructor(JSContext context, {JSClass? clazz, Pointer<
NativeFunction< ? callAsConstructor})JSObjectCallAsConstructorCallback> > -
factory
-
JSObject.makeDate(JSContext context, {List<
JSValue> ? arguments}) -
factory
- JSObject.makeDeferredPromise(JSContext context, {JSResolve? resolve, JSReject? reject})
-
factory
-
JSObject.makeError(JSContext context, {List<
JSValue> ? arguments}) -
factory
-
JSObject.makeFunction(JSContext context, {String? name, List<
String> ? parameterNames, required String body, String? sourceURL, int startingLineNumber = 1}) -
factory
-
JSObject.makeFunctionWithCallback(JSContext context, {String? name, Pointer<
NativeFunction< ? callAsFunction})JSObjectCallAsFunctionCallback> > -
factory
-
JSObject.makeRegExp(JSContext context, {List<
JSValue> ? arguments}) -
factory
- JSObject.makeTypedArray(JSContext context, {required JSTypedArrayType arrayType, required int length})
-
factory
- JSObject.makeTypedArrayWithArrayBuffer(JSContext context, {required JSTypedArrayType arrayType, required JSObject buffer})
-
factory
- JSObject.makeTypedArrayWithArrayBufferAndOffset(JSContext context, {required JSTypedArrayType arrayType, required JSObject buffer, required int byteOffset, required int length})
-
factory
-
JSObject.makeTypedArrayWithBytesNoCopy(JSContext context, {required JSTypedArrayType arrayType, required JSTypedArrayBytes bytes, Pointer<
NativeFunction< ? bytesDeallocator, required Pointer<JSTypedArrayBytesDeallocator> >Void> deallocatorContext}) -
factory
Properties
- arrayBufferBytes → JSTypedArrayBytes
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isConstructor → bool
-
no setter
- isFunction → bool
-
no setter
- prototype ↔ JSValue
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typedArrayBuffer → JSObject
-
no setter
- typedArrayByteLength → int
-
no setter
- typedArrayByteOffset → int
-
no setter
- typedArrayBytes → JSTypedArrayBytes
-
no setter
- value → JSValue
-
no setter
Methods
-
callAsConstructor(
{List< JSValue> ? arguments}) → JSObject -
callAsFunction(
{JSObject? thisObject, List< JSValue> ? arguments}) → JSValue -
copyPropertyNames(
) → JSPropertyNameArray -
deleteProperty(
String propertyName) → bool -
deletePropertyForKey(
JSValue propertyKey) → void -
getPrivate(
) → Pointer< Void> -
getProperty(
String propertyName) → JSValue -
getPropertyAtIndex(
int propertyIndex) → JSValue -
getPropertyForKey(
JSValue propertyKey) → JSValue -
hasProperty(
String propertyName) → bool -
hasPropertyForKey(
JSValue propertyKey) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setPrivate(
Pointer< Void> data) → bool -
setProperty(
String propertyName, JSValue? value, {JSPropertyAttributes attributes = JSPropertyAttributes.kJSPropertyAttributeNone}) → void -
setPropertyAtIndex(
int propertyIndex, JSValue value) → void -
setPropertyForKey(
JSValue propertyKey, JSValue? value, {JSPropertyAttributes attributes = JSPropertyAttributes.kJSPropertyAttributeNone}) → void -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override