#include <asClass.h>
Public Member Functions | |
| as_function * | getPrototype () |
| asBinding * | getBinding (string_table::key name) |
| asMethod () | |
| bool | isNative () |
| bool | hasBody () const |
| as_object * | construct (as_object *) |
| bool | hasActivation () |
| CodeStream * | getBody () |
| void | setBody (CodeStream *b) |
| bool | addValue (string_table::key name, asNamespace *ns, boost::uint32_t slotId, asClass *type, as_value &val, bool isconst) |
| bool | addSlot (string_table::key name, asNamespace *ns, boost::uint32_t slotId, asClass *type) |
| bool | addMethod (string_table::key name, asNamespace *ns, asMethod *method) |
| bool | addGetter (string_table::key name, asNamespace *ns, asMethod *method) |
| bool | addSetter (string_table::key name, asNamespace *ns, asMethod *method) |
| bool | addMemberClass (string_table::key name, asNamespace *ns, boost::uint32_t slotId, asClass *type) |
| bool | addSlotFunction (string_table::key name, asNamespace *ns, boost::uint32_t slotId, asMethod *method) |
| void | setOwner (asClass *s) |
| Set the owner of this method. | |
| asClass * | getReturnType () const |
| Get the unique identifier for the return type. 0 is 'anything'. (This is the value of any dynamic property.) Id reference: Type. | |
| void | setReturnType (asClass *t) |
| Set the return type. | |
| asMethod * | getSuper () |
| void | setSuper (asMethod *s) |
| bool | isFinal () const |
| Is the method final? If so, it may not be overridden. | |
| void | setFinal () |
| Set the method as final. | |
| void | unsetFinal () |
| Unset the method as final. Not final anymore. | |
| bool | isPrivate () const |
| Is the method private? | |
| void | setPrivate () |
| Make the method private. | |
| bool | isProtected () const |
| Is the method protected? | |
| void | setProtected () |
| Make the method protected. | |
| bool | isPublic () const |
| Is the method public? | |
| void | setPublic () |
| Make the method public. | |
| int | minArgumentCount () const |
| How many arguments are required? -1 means unknown. | |
| void | setMinArgumentCount (int i) |
| Set the required minimum arguments. | |
| int | maxArgumentCount () const |
| How many arguments are allowed? -1 means unknown. | |
| void | setMaxArgumentCount (int i) |
| Set the required maximum arguments. | |
| void | pushArgument (asClass *t) |
| Push an argument of type t into the method definition. | |
| void | pushOptional (const as_value &v) |
| Push an optional argument's default value. | |
| bool | optionalArguments () const |
| Are any of the arguments optional? | |
| argumentList & | getArgumentList () |
| Get a reference to a list of argument types. | |
| as_function * | getImplementation () |
| Get an object capable of executing this function. Note: This may be NULL, because we might have information about this function but not actually have it yet. | |
Methods are unnamed until they are bound to an object.
| gnash::asMethod::asMethod | ( | ) |
| as_function* gnash::asMethod::getPrototype | ( | ) | [inline] |
| asBinding* gnash::asMethod::getBinding | ( | string_table::key | name | ) |
| bool gnash::asMethod::isNative | ( | ) | [inline] |
| bool gnash::asMethod::hasBody | ( | ) | const [inline] |
| bool gnash::asMethod::hasActivation | ( | ) |
| CodeStream* gnash::asMethod::getBody | ( | ) | [inline] |
| void gnash::asMethod::setBody | ( | CodeStream * | b | ) | [inline] |
| bool gnash::asMethod::addValue | ( | string_table::key | name, | |
| asNamespace * | ns, | |||
| boost::uint32_t | slotId, | |||
| asClass * | type, | |||
| as_value & | val, | |||
| bool | isconst | |||
| ) |
| bool gnash::asMethod::addSlot | ( | string_table::key | name, | |
| asNamespace * | ns, | |||
| boost::uint32_t | slotId, | |||
| asClass * | type | |||
| ) |
| bool gnash::asMethod::addMethod | ( | string_table::key | name, | |
| asNamespace * | ns, | |||
| asMethod * | method | |||
| ) |
| bool gnash::asMethod::addGetter | ( | string_table::key | name, | |
| asNamespace * | ns, | |||
| asMethod * | method | |||
| ) |
| bool gnash::asMethod::addSetter | ( | string_table::key | name, | |
| asNamespace * | ns, | |||
| asMethod * | method | |||
| ) |
| bool gnash::asMethod::addMemberClass | ( | string_table::key | name, | |
| asNamespace * | ns, | |||
| boost::uint32_t | slotId, | |||
| asClass * | type | |||
| ) |
| bool gnash::asMethod::addSlotFunction | ( | string_table::key | name, | |
| asNamespace * | ns, | |||
| boost::uint32_t | slotId, | |||
| asMethod * | method | |||
| ) |
| void gnash::asMethod::setOwner | ( | asClass * | s | ) |
Set the owner of this method.
| asClass* gnash::asMethod::getReturnType | ( | ) | const |
Get the unique identifier for the return type. 0 is 'anything'. (This is the value of any dynamic property.) Id reference: Type.
| void gnash::asMethod::setReturnType | ( | asClass * | t | ) |
Set the return type.
| asMethod* gnash::asMethod::getSuper | ( | ) |
| void gnash::asMethod::setSuper | ( | asMethod * | s | ) |
| bool gnash::asMethod::isFinal | ( | ) | const [inline] |
Is the method final? If so, it may not be overridden.
| void gnash::asMethod::setFinal | ( | ) | [inline] |
Set the method as final.
| void gnash::asMethod::unsetFinal | ( | ) | [inline] |
Unset the method as final. Not final anymore.
| bool gnash::asMethod::isPrivate | ( | ) | const [inline] |
Is the method private?
| void gnash::asMethod::setPrivate | ( | ) | [inline] |
Make the method private.
| bool gnash::asMethod::isProtected | ( | ) | const [inline] |
Is the method protected?
| void gnash::asMethod::setProtected | ( | ) | [inline] |
Make the method protected.
| bool gnash::asMethod::isPublic | ( | ) | const [inline] |
Is the method public?
| void gnash::asMethod::setPublic | ( | ) | [inline] |
Make the method public.
| int gnash::asMethod::minArgumentCount | ( | ) | const [inline] |
How many arguments are required? -1 means unknown.
| void gnash::asMethod::setMinArgumentCount | ( | int | i | ) | [inline] |
Set the required minimum arguments.
| int gnash::asMethod::maxArgumentCount | ( | ) | const [inline] |
How many arguments are allowed? -1 means unknown.
| void gnash::asMethod::setMaxArgumentCount | ( | int | i | ) | [inline] |
Set the required maximum arguments.
| void gnash::asMethod::pushArgument | ( | asClass * | t | ) | [inline] |
Push an argument of type t into the method definition.
| void gnash::asMethod::pushOptional | ( | const as_value & | v | ) | [inline] |
Push an optional argument's default value.
| bool gnash::asMethod::optionalArguments | ( | ) | const [inline] |
Are any of the arguments optional?
| argumentList& gnash::asMethod::getArgumentList | ( | ) | [inline] |
Get a reference to a list of argument types.
| as_function* gnash::asMethod::getImplementation | ( | ) | [inline] |
Get an object capable of executing this function. Note: This may be NULL, because we might have information about this function but not actually have it yet.
1.5.4