Gnash
0.8.11dev
|
Represent an ActionScript Namespace. More...
#include <Namespace.h>
Public Member Functions | |
Namespace () | |
Create an empty namespace. More... | |
void | markReachableResources () const |
void | setParent (Namespace *p) |
Our parent (for protected) More... | |
Namespace * | getParent () |
void | setURI (string_table::key name) |
Set the uri. More... | |
string_table::key | getURI () const |
What is the Uri of the namespace? More... | |
string_table::key | getPrefix () const |
What is the XML prefix? More... | |
bool | addScript (string_table::key name, Class *a) |
void | stubPrototype (ClassHierarchy &ch, string_table::key name) |
Class * | getScript (string_table::key name) |
void | dump (string_table &st) |
void | setPrivate () |
void | unsetPrivate () |
bool | isPrivate () |
void | setProtected () |
void | unsetProtected () |
bool | isProtected () |
void | setPackage () |
void | unsetPackage () |
bool | isPackage () |
Represent an ActionScript Namespace.
Namespaces are generally global resources, although private Namespaces are only visible inside a single AbcBlock. Because there is no guarantee that a Namespace is private to an AbcBlock, they must never store any AbcBlock-internal information, particularly not the AbcURI. A Namespace is currently a collection of Scripts, which should be turned into a Class on first use.
|
inline |
Create an empty namespace.
|
inline |
Add a Class to the namespace. The namespace stores this, but does not take ownership.
References name.
Referenced by gnash::abc::AbcBlock::locateClass(), and stubPrototype().
void gnash::abc::Namespace::dump | ( | string_table & | st | ) |
References gnash::key::e, gnash::key::i, gnash::log_debug(), gnash::key::s, gnash::key::t, and gnash::string_table::value().
Referenced by gnash::abc::AbcBlock::locateClass().
|
inline |
|
inline |
What is the XML prefix?
|
inline |
Get the named class. Returns NULL if information is not known about the class. (Stubbed classes still return NULL here.)
Referenced by gnash::abc::AbcBlock::locateClass().
|
inline |
What is the Uri of the namespace?
Referenced by gnash::abc::Class::addGetter(), gnash::abc::Method::addGetter(), gnash::abc::Class::addSetter(), gnash::abc::Method::addSetter(), gnash::abc::Class::addSlot(), gnash::abc::Method::addSlot(), gnash::abc::Class::addValue(), gnash::abc::Method::addValue(), gnash::abc::Machine::execute(), gnash::abc::Machine::instantiateClass(), and gnash::abc::AbcBlock::locateClass().
|
inline |
References gnash::key::i.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Our parent (for protected)
References gnash::key::p.
|
inline |
|
inline |
|
inline |
void gnash::abc::Namespace::stubPrototype | ( | ClassHierarchy & | ch, |
string_table::key | name | ||
) |
References addScript(), and gnash::abc::Class::setName().
|
inline |
|
inline |
|
inline |