|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Public Member Functions | |
| FunctionObject (const FunctionObject &other) | |
| std::unique_ptr< DynamicObject > | clone () const override |
| Returns a clone of this object. | |
| void | writeAsJSON (OutputStream &out, const JSON::FormatOptions &) override |
| Writes this object to a text stream in JSON format. | |
| var | invoke (const Scope &s, const var::NativeFunctionArgs &args) const |
Public Member Functions inherited from juce::DynamicObject | |
| DynamicObject (const DynamicObject &) | |
| virtual bool | hasProperty (const Identifier &propertyName) const |
| Returns true if the object has a property with this name. | |
| virtual const var & | getProperty (const Identifier &propertyName) const |
| Returns a named property. | |
| virtual void | setProperty (const Identifier &propertyName, const var &newValue) |
| Sets a named property. | |
| virtual void | removeProperty (const Identifier &propertyName) |
| Removes a named property. | |
| virtual bool | hasMethod (const Identifier &methodName) const |
| Checks whether this object has the specified method. | |
| virtual var | invokeMethod (Identifier methodName, const var::NativeFunctionArgs &args) |
| Invokes a named method on this object. | |
| void | setMethod (Identifier methodName, var::NativeFunction function) |
| Adds a method to the class. | |
| void | clear () |
| Removes all properties and methods from the object. | |
| NamedValueSet & | getProperties () noexcept |
| Returns the NamedValueSet that holds the object's properties. | |
| const NamedValueSet & | getProperties () const noexcept |
| Returns the NamedValueSet that holds the object's properties. | |
| void | cloneAllProperties () |
| Calls var::clone() on all the properties that this object contains. | |
Public Member Functions inherited from juce::ReferenceCountedObject | |
| void | incReferenceCount () noexcept |
| Increments the object's reference count. | |
| void | decReferenceCount () noexcept |
| Decreases the object's reference count. | |
| bool | decReferenceCountWithoutDeleting () noexcept |
| Decreases the object's reference count. | |
| int | getReferenceCount () const noexcept |
| Returns the object's current reference count. | |
Public Attributes | |
| String | functionCode |
| Array< Identifier > | parameters |
| std::unique_ptr< Statement > | body |
Additional Inherited Members | |
Public Types inherited from juce::DynamicObject | |
| using | Ptr = ReferenceCountedObjectPtr< DynamicObject > |
Protected Member Functions inherited from juce::ReferenceCountedObject | |
| ReferenceCountedObject ()=default | |
| Creates the reference-counted object (with an initial ref count of zero). | |
| ReferenceCountedObject (const ReferenceCountedObject &) noexcept | |
| Copying from another object does not affect this one's reference-count. | |
| ReferenceCountedObject (ReferenceCountedObject &&) noexcept | |
| Copying from another object does not affect this one's reference-count. | |
| ReferenceCountedObject & | operator= (const ReferenceCountedObject &) noexcept |
| Copying from another object does not affect this one's reference-count. | |
| ReferenceCountedObject & | operator= (ReferenceCountedObject &&) noexcept |
| Copying from another object does not affect this one's reference-count. | |
| virtual | ~ReferenceCountedObject () |
| Destructor. | |
| void | resetReferenceCount () noexcept |
| Resets the reference count to zero without deleting the object. | |
Definition at line 826 of file juce_Javascript.cpp.
|
noexcept |
Definition at line 828 of file juce_Javascript.cpp.
| juce::JavascriptEngine::RootObject::FunctionObject::FunctionObject | ( | const FunctionObject & | other | ) |
Definition at line 830 of file juce_Javascript.cpp.
|
overridevirtual |
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 836 of file juce_Javascript.cpp.
| var juce::JavascriptEngine::RootObject::FunctionObject::invoke | ( | const Scope & | s, |
| const var::NativeFunctionArgs & | args | ||
| ) | const |
Definition at line 843 of file juce_Javascript.cpp.
|
overridevirtual |
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 838 of file juce_Javascript.cpp.
| std::unique_ptr<Statement> juce::JavascriptEngine::RootObject::FunctionObject::body |
Definition at line 861 of file juce_Javascript.cpp.
| String juce::JavascriptEngine::RootObject::FunctionObject::functionCode |
Definition at line 859 of file juce_Javascript.cpp.
| Array<Identifier> juce::JavascriptEngine::RootObject::FunctionObject::parameters |
Definition at line 860 of file juce_Javascript.cpp.