Public Member Functions

gnash::abc::as_class Class Reference

The implementation of a 'Class' type in ActionScript 3. More...

#include <as_class.h>

Inheritance diagram for gnash::abc::as_class:
Inheritance graph
Collaboration diagram for gnash::abc::as_class:
Collaboration graph

List of all members.

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.

Detailed Description

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.

Constructor & Destructor Documentation

gnash::abc::as_class::as_class ( Global_as gl,
Class c 

References s2x::c.

virtual gnash::abc::as_class::~as_class (  )  [inline, virtual]

Member Function Documentation

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.

The documentation for this class was generated from the following files: