Platforms to show: All Mac Windows Linux Cross-Platform
JSObjectMBS class
Super class: JSValueMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Subclass of the JSValueMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 3 properties
- property isConstructor as Boolean
- property isFunction as Boolean
- property Prototype as JSValueMBS
- 10 methods
- method CallAsConstructor(arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSValueMBS
- method CallAsFunction(thisObject as JSValueMBS, arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSValueMBS
- method Constructor Private
- method DeleteProperty(name as string, byref JSException as JSValueMBS) as boolean
- method GetProperty(name as string, byref JSException as JSValueMBS) as JSValueMBS
- method GetPropertyAtIndex(propertyIndex as Integer, byref JSException as JSValueMBS) as JSValueMBS
- method HasProperty(name as string) as boolean
- method PropertyNames as String()
- method SetProperty(name as string, value as JSValueMBS, byref JSException as JSValueMBS)
- method SetPropertyAtIndex(propertyIndex as Integer, value as JSValueMBS, byref JSException as JSValueMBS)
Super class JSValueMBS
- 16 properties
- property booleanValue as Boolean
- property context as JSContextMBS
- property doubleValue as Double
- property Handle as Integer
- property isArray as Boolean
- property isBoolean as Boolean
- property isDate as Boolean
- property isNull as Boolean
- property isNumber as Boolean
- property isObject as Boolean
- property isString as Boolean
- property isUndefined as Boolean
- property JSONString as string
- property StringValue as String
- property Tag as Variant
- property Type as Integer
- 9 methods
- method Constructor Private
- method DoubleValue(byref JSException as JSValueMBS) as Double
- method IsEqual(OtherValue as JSValueMBS, byref JSException as JSValueMBS) as boolean
- method IsInstanceOfConstructor(ConstructorFunction as JSObjectMBS, byref JSException as JSValueMBS) as boolean
- method IsObjectOfClass(ClassObject as JSValueMBS) as boolean
- method IsStrictEqual(OtherValue as JSValueMBS) as boolean
- method JSONString(indent as Integer = 0, byref JSException as JSValueMBS) as string
- method ObjectValue(byref JSException as JSValueMBS) as JSValueMBS
- method StringValue(byref JSException as JSValueMBS) as string
- 6 constants
Types
Constant | Value | Description |
---|---|---|
kJSTypeBoolean | 2 |
A primitive boolean value, one of true or false. Example |
kJSTypeNull | 1 |
The unique null value. Example |
kJSTypeNumber | 3 |
A primitive number value. Example |
kJSTypeObject | 5 |
An object value (meaning that this JSValueMBS is a JSObjectMBS). Example |
kJSTypeString | 4 |
A primitive string value. Example |
kJSTypeUndefined | 0 |
The unique undefined value. Example |
This class has no sub classes.
Some methods using this class:
- JSClassMBS.NewObject as JSObjectMBS
- JSContextMBS.NewArray(arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSObjectMBS
- JSContextMBS.NewDate(arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSObjectMBS
- JSContextMBS.NewError(arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSObjectMBS
- JSContextMBS.NewFunction(name as string) as JSObjectMBS
- JSContextMBS.NewObject as JSObjectMBS
- JSContextMBS.NewRegExp(arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSObjectMBS
- JSValueMBS.IsInstanceOfConstructor(ConstructorFunction as JSObjectMBS, byref JSException as JSValueMBS) as boolean
Some properties using for this class:
- JSContextMBS.globalObject as JSObjectMBS
Some events using this class:
- JSContextMBS.FunctionCalled(functionObject as JSObjectMBS, thisObject as JSObjectMBS, arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSValueMBS
Some examples using this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.