Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::abc::Namespace Class Reference

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...
 
NamespacegetParent ()
 
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)
 
ClassgetScript (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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

§ Namespace()

gnash::abc::Namespace::Namespace ( )
inline

Create an empty namespace.

Member Function Documentation

§ addScript()

bool gnash::abc::Namespace::addScript ( string_table::key  name,
Class a 
)
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().

§ dump()

void gnash::abc::Namespace::dump ( string_table st)

§ getParent()

Namespace* gnash::abc::Namespace::getParent ( )
inline

§ getPrefix()

string_table::key gnash::abc::Namespace::getPrefix ( ) const
inline

What is the XML prefix?

§ getScript()

Class* gnash::abc::Namespace::getScript ( string_table::key  name)
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().

§ getURI()

string_table::key gnash::abc::Namespace::getURI ( ) const
inline

§ isPackage()

bool gnash::abc::Namespace::isPackage ( )
inline

References gnash::key::i.

§ isPrivate()

bool gnash::abc::Namespace::isPrivate ( )
inline

§ isProtected()

bool gnash::abc::Namespace::isProtected ( )
inline

§ markReachableResources()

void gnash::abc::Namespace::markReachableResources ( ) const
inline

§ setPackage()

void gnash::abc::Namespace::setPackage ( )
inline

§ setParent()

void gnash::abc::Namespace::setParent ( Namespace p)
inline

Our parent (for protected)

References gnash::key::p.

§ setPrivate()

void gnash::abc::Namespace::setPrivate ( )
inline

§ setProtected()

void gnash::abc::Namespace::setProtected ( )
inline

§ setURI()

void gnash::abc::Namespace::setURI ( string_table::key  name)
inline

Set the uri.

References name.

Referenced by gnash::abc::AbcBlock::prepare().

§ stubPrototype()

void gnash::abc::Namespace::stubPrototype ( ClassHierarchy ch,
string_table::key  name 
)

§ unsetPackage()

void gnash::abc::Namespace::unsetPackage ( )
inline

§ unsetPrivate()

void gnash::abc::Namespace::unsetPrivate ( )
inline

§ unsetProtected()

void gnash::abc::Namespace::unsetProtected ( )
inline

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