OpenShot Library | libopenshot-audio
0.1.9
|
Public Member Functions | |
FunctionObject (const FunctionObject &other) | |
DynamicObject::Ptr | clone () override |
Returns a clone of this object. More... | |
void | writeAsJSON (OutputStream &out, int, bool, int) override |
Writes this object to a text stream in JSON format. More... | |
var | invoke (const Scope &s, const var::NativeFunctionArgs &args) const |
![]() | |
DynamicObject (const DynamicObject &) | |
virtual bool | hasProperty (const Identifier &propertyName) const |
Returns true if the object has a property with this name. More... | |
virtual const var & | getProperty (const Identifier &propertyName) const |
Returns a named property. More... | |
virtual void | setProperty (const Identifier &propertyName, const var &newValue) |
Sets a named property. More... | |
virtual void | removeProperty (const Identifier &propertyName) |
Removes a named property. More... | |
virtual bool | hasMethod (const Identifier &methodName) const |
Checks whether this object has the specified method. More... | |
virtual var | invokeMethod (Identifier methodName, const var::NativeFunctionArgs &args) |
Invokes a named method on this object. More... | |
void | setMethod (Identifier methodName, var::NativeFunction function) |
Adds a method to the class. More... | |
void | clear () |
Removes all properties and methods from the object. More... | |
NamedValueSet & | getProperties () noexcept |
Returns the NamedValueSet that holds the object's properties. More... | |
void | cloneAllProperties () |
Calls var::clone() on all the properties that this object contains. More... | |
![]() | |
void | incReferenceCount () noexcept |
Increments the object's reference count. More... | |
void | decReferenceCount () noexcept |
Decreases the object's reference count. More... | |
bool | decReferenceCountWithoutDeleting () noexcept |
Decreases the object's reference count. More... | |
int | getReferenceCount () const noexcept |
Returns the object's current reference count. More... | |
Public Attributes | |
String | functionCode |
Array< Identifier > | parameters |
std::unique_ptr< Statement > | body |
Additional Inherited Members | |
![]() | |
using | Ptr = ReferenceCountedObjectPtr< DynamicObject > |
![]() | |
ReferenceCountedObject ()=default | |
Creates the reference-counted object (with an initial ref count of zero). More... | |
ReferenceCountedObject (const ReferenceCountedObject &) noexcept | |
Copying from another object does not affect this one's reference-count. More... | |
ReferenceCountedObject (ReferenceCountedObject &&) noexcept | |
Copying from another object does not affect this one's reference-count. More... | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject &) noexcept |
Copying from another object does not affect this one's reference-count. More... | |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&) noexcept |
Copying from another object does not affect this one's reference-count. More... | |
virtual | ~ReferenceCountedObject () |
Destructor. More... | |
void | resetReferenceCount () noexcept |
Resets the reference count to zero without deleting the object. More... | |
Definition at line 824 of file juce_Javascript.cpp.
|
inlineoverridevirtual |
Returns a clone of this object.
The default implementation of this method just returns a new DynamicObject with a (deep) copy of all of its properties. Subclasses can override this to implement their own custom copy routines.
Reimplemented from juce::DynamicObject.
Definition at line 834 of file juce_Javascript.cpp.
|
inlineoverridevirtual |
Writes this object to a text stream in JSON format.
This method is used by JSON::toString and JSON::writeToStream, and you should never need to call it directly, but it's virtual so that custom object types can stringify themselves appropriately.
Reimplemented from juce::DynamicObject.
Definition at line 836 of file juce_Javascript.cpp.
References juce::var::undefined().