javascriptcore/jscore/js_object
        library 
 
      
    
    
    
      Classes
      
          - 
  Bytes 
- 
  A pointer to the byte buffer to be used as the backing store of the Typed Array object.
- 
  JSClassDefinition 
- 
  struct JSStaticFunction
This structure contains properties and callbacks that define a type of object. All fields other than the version field are optional. Any pointer may be NULL.
The staticValues and staticFunctions arrays are the simplest and most efficient means for vending custom properties. Statically declared properties autmatically service requests like getProperty, setProperty, and getPropertyNames. Property access callbacks are required only to implement unusual properties, like array indexes, whose names are not known at compile-time.
- 
  JSObject 
- 
  A JavaScript object. A JSObject is a JSValue.
- 
  JSObjectPointer 
- 
  JSObjectRef pointer
- 
  JSStaticFunction 
- 
  struct JSStaticFunction
This structure describes a statically declared function property.
- 
  JSStaticValue 
- 
  struct JSStaticValue
This structure describes a statically declared value property.
 
    
      Enums
      
          - 
  JSClassAttributes 
- 
  enum JSClassAttributes
A set of JSClassAttributes. Combine multiple attributes by logically ORing them together.
- 
  JSPropertyAttributes 
- 
  enum JSPropertyAttributes
A set of JSPropertyAttributes. Combine multiple attributes by logically ORing them together.
 
    
    
    
      Typedefs
      
          
  - 
    JSObjectCallAsConstructorCallbackDart
      = Pointer<NativeType> Function(Pointer<NativeType> ctx, Pointer<NativeType> constructor, int argumentCount, Pointer<Pointer<NativeType>> arguments, Pointer<Pointer<NativeType>> exception)
    
    
  
- 
    typedef JSObjectCallAsConstructorCallback
The callback invoked when an object is used as a constructor in a 'new' expression.
ctxThe execution context to use.constructorA JSObject that is the constructor being called.argumentCountAn integer count of the number of arguments in arguments.argumentsA JSValue array of the  arguments passed to the function.exceptionA pointer to a JSValueRef in which to return an exception, if any.@resultA JSObject that is the constructor's return value.
If you named your function CallAsConstructor, you would declare it like this:
- 
    JSObjectCallAsFunctionCallbackDart
      = Pointer<NativeType> Function(Pointer<NativeType> ctx, Pointer<NativeType> function, Pointer<NativeType> thisObject, int argumentCount, Pointer<Pointer<NativeType>> arguments, Pointer<Pointer<NativeType>> exception)
    
    
  
- 
    typedef JSObjectCallAsFunctionCallback
The callback invoked when an object is called as a function.
ctxThe execution context to use.functionA JSObject that is the function being called.thisObjectA JSObject that is the 'this' variable in the function's scope.argumentCountAn integer count of the number of arguments in arguments.argumentsA JSValue array of the  arguments passed to the function.exceptionA pointer to a JSValueRef in which to return an exception, if any.@resultA JSValue that is the function's return value.
If you named your function CallAsFunction, you would declare it like this:
- 
    JSObjectDeletePropertyCallbackDart
      = int Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<NativeType> propertyName, Pointer<Pointer<NativeType>> exception)
    
    
  
- 
    typedef JSObjectDeletePropertyCallback
The callback invoked when deleting a property.
ctxThe execution context to use.objectThe JSObject in which to delete the property.propertyNameA JSString containing the name of the property to delete.exceptionA pointer to a JSValueRef in which to return an exception, if any.@resulttrue if propertyName was successfully deleted, otherwise false.
If you named your function DeleteProperty, you would declare it like this:
- 
    JSObjectFinalizeCallbackDart
      = void Function(Pointer<NativeType> object)
    
    
  
- 
    typedef JSObjectFinalizeCallback
The callback invoked when an object is finalized (prepared for garbage collection). An object may be finalized on any thread.
objectThe JSObject being finalized.
If you named your function Finalize, you would declare it like this:
- 
    JSObjectGetPropertyCallbackDart
      = Pointer<NativeType> Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<NativeType> propertyName, Pointer<Pointer<NativeType>> exception)
    
    
  
- 
    typedef JSObjectGetPropertyCallback
The callback invoked when getting a property's value.
ctxThe execution context to use.objectThe JSObject to search for the property.propertyNameA JSString containing the name of the property to get.exceptionA pointer to a JSValueRef in which to return an exception, if any.@resultThe property's value if object has the property, otherwise NULL.
If you named your function GetProperty, you would declare it like this:
- 
    JSObjectGetPropertyNamesCallbackDart
      = void Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<NativeType> propertyNames)
    
    
  
- 
    typedef JSObjectGetPropertyNamesCallback
The callback invoked when collecting the names of an object's properties.
ctxThe execution context to use.objectThe JSObject whose property names are being collected.propertyNamesA JavaScript property name accumulator in which to accumulate the names of object's properties.
If you named your function GetPropertyNames, you would declare it like this:
- 
    JSObjectHasInstanceCallbackDart
      = int Function(Pointer<NativeType> ctx, Pointer<NativeType> constructor, Pointer<NativeType> possibleInstance, Pointer<Pointer<NativeType>> exception)
    
    
  
- 
    typedef JSObjectHasInstanceCallback
hasInstance The callback invoked when an object is used as the target of an 'instanceof' expression.
ctxThe execution context to use.constructorThe JSObject that is the target of the 'instanceof' expression.possibleInstanceThe JSValue being tested to determine if it is an instance of constructor.exceptionA pointer to a JSValueRef in which to return an exception, if any.@resulttrue if possibleInstance is an instance of constructor, otherwise false.
If you named your function HasInstance, you would declare it like this:
- 
    JSObjectHasPropertyCallbackDart
      = int Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<NativeType> propertyName)
    
    
  
- 
    typedef JSObjectHasPropertyCallback
The callback invoked when determining whether an object has a property.
ctxThe execution context to use.objectThe JSObject to search for the property.propertyNameA JSString containing the name of the property look up.@resulttrue if object has the property, otherwise false.
If you named your function HasProperty, you would declare it like this:
- 
    JSObjectInitializeCallbackDart
      = void Function(Pointer<NativeType> ctx, Pointer<NativeType> object)
    
    
  
- 
    typedef JSObjectInitializeCallback
The callback invoked when an object is first created.
ctxThe execution context to use.objectThe JSObject being created.
If you named your function Initialize, you would declare it like this:
- 
    JSObjectSetPropertyCallbackDart
      = int Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<NativeType> propertyName, Pointer<NativeType> value, Pointer<Pointer<NativeType>> exception)
    
    
  
- 
    typedef JSObjectSetPropertyCallback
The callback invoked when setting a property's value.
ctxThe execution context to use.objectThe JSObject on which to set the property's value.propertyNameA JSString containing the name of the property to set.valueA JSValue to use as the property's value.exceptionA pointer to a JSValueRef in which to return an exception, if any.@resulttrue if the property was set, otherwise false.
If you named your function SetProperty, you would declare it like this: