Gnash
0.8.10
|
The implementation of a 'Class' type in ActionScript 3. More...
#include <as_class.h>
Public Member Functions | |
as_class (Global_as &gl, Class *c) | |
virtual | ~as_class () |
virtual const std::string & | stringValue () const |
Return the string representation for this object. |
The implementation of a 'Class' type in ActionScript 3.
A Class is a first-class type, i.e. it can be referenced itself in ActionScript. Although Classes are nominally 'dynamic' types, there seems to be no way to alter them in ActionScript, or to create them dynamically. In order to reference them, the Class must already be constructed and known in the execution scope, then retrieved by name. Accordingly, all as_class objects have an associated Class, which is its static definition. TODO: see how to implement "[class Class]", the prototype of all classes.
virtual gnash::abc::as_class::~as_class | ( | ) | [inline, virtual] |
const std::string & gnash::abc::as_class::stringValue | ( | ) | const [virtual] |
Return the string representation for this object.
This is dependent on the VM version and the type of object, function, or class.
Reimplemented from gnash::as_object.
References assert.