openshot-audio  0.1.2
Public Member Functions | Public Attributes | List of all members
JavascriptEngine::RootObject::FunctionObject Struct Reference
Inheritance diagram for JavascriptEngine::RootObject::FunctionObject:
DynamicObject ReferenceCountedObject

Public Member Functions

 FunctionObject () noexcept
 
 FunctionObject (const FunctionObject &other)
 
DynamicObject::Ptr clone () override
 
void writeAsJSON (OutputStream &out, int, bool) override
 
var invoke (const Scope &s, const var::NativeFunctionArgs &args) const
 
- Public Member Functions inherited from DynamicObject
 DynamicObject ()
 
 DynamicObject (const DynamicObject &)
 
 ~DynamicObject ()
 
virtual bool hasProperty (const Identifier &propertyName) const
 
virtual const vargetProperty (const Identifier &propertyName) const
 
virtual void setProperty (const Identifier &propertyName, const var &newValue)
 
virtual void removeProperty (const Identifier &propertyName)
 
virtual bool hasMethod (const Identifier &methodName) const
 
virtual var invokeMethod (Identifier methodName, const var::NativeFunctionArgs &args)
 
void setMethod (Identifier methodName, var::NativeFunction function)
 
void clear ()
 
NamedValueSetgetProperties () noexcept
 
void cloneAllProperties ()
 
- Public Member Functions inherited from ReferenceCountedObject
void incReferenceCount () noexcept
 
void decReferenceCount () noexcept
 
bool decReferenceCountWithoutDeleting () noexcept
 
int getReferenceCount () const noexcept
 

Public Attributes

String functionCode
 
Array< Identifierparameters
 
ScopedPointer< Statementbody
 

Additional Inherited Members

- Public Types inherited from DynamicObject
typedef ReferenceCountedObjectPtr< DynamicObjectPtr
 
- Protected Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject ()
 
virtual ~ReferenceCountedObject ()
 
void resetReferenceCount () noexcept
 

Constructor & Destructor Documentation

◆ FunctionObject() [1/2]

JavascriptEngine::RootObject::FunctionObject::FunctionObject ( )
inlinenoexcept

◆ FunctionObject() [2/2]

JavascriptEngine::RootObject::FunctionObject::FunctionObject ( const FunctionObject other)
inline

Member Function Documentation

◆ clone()

DynamicObject::Ptr JavascriptEngine::RootObject::FunctionObject::clone ( )
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 DynamicObject.

◆ invoke()

var JavascriptEngine::RootObject::FunctionObject::invoke ( const Scope s,
const var::NativeFunctionArgs args 
) const
inline

◆ writeAsJSON()

void JavascriptEngine::RootObject::FunctionObject::writeAsJSON ( OutputStream out,
int  indentLevel,
bool  allOnOneLine 
)
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 DynamicObject.

Member Data Documentation

◆ body

ScopedPointer<Statement> JavascriptEngine::RootObject::FunctionObject::body

◆ functionCode

String JavascriptEngine::RootObject::FunctionObject::functionCode

◆ parameters

Array<Identifier> JavascriptEngine::RootObject::FunctionObject::parameters

The documentation for this struct was generated from the following file: