Gnash
0.8.10
|
Parameters/environment for builtin or user-defined functions callable from ActionScript. More...
#include <fn_call.h>
Public Types | |
typedef FunctionArgs< as_value > | Args |
Public Member Functions | |
fn_call (as_object *this_in, const as_environment &env_in, Args &args, as_object *sup=0, bool isNew=false) | |
Construct a fn_call. | |
fn_call (as_object *this_in, const as_environment &env_in) | |
fn_call (const fn_call &fn) | |
Copy constructor. | |
VM & | getVM () const |
Return the VM this fn_call is running from. | |
bool | isInstantiation () const |
Return true if this call is an object instantiation. | |
const Args::value_type & | arg (unsigned int n) const |
Access a particular argument. | |
const Args::container_type & | getArgs () const |
void | drop_bottom () |
const as_environment & | env () const |
void | dump_args (std::ostream &os) const |
Dump arguments to given output stream. | |
void | resetArgs () |
void | pushArg (const Args::value_type &arg) |
Public Attributes | |
as_object * | this_ptr |
as_object * | super |
The "super" object in this function call context. | |
Args::size_type | nargs |
Number of arguments to this ActionScript function call. | |
const movie_definition * | callerDef |
Definition containing caller code. 0 if spontaneous (system event). |
Parameters/environment for builtin or user-defined functions callable from ActionScript.
typedef FunctionArgs<as_value> gnash::fn_call::Args |
gnash::fn_call::fn_call | ( | as_object * | this_in, |
const as_environment & | env_in, | ||
Args & | args, | ||
as_object * | sup = 0 , |
||
bool | isNew = false |
||
) | [inline] |
Construct a fn_call.
isNew | Pass true if this is a constructing fn_call, i.e. if it is called as a result of 'new'. |
super | Pass an overridden super value to the function call. If this is 0, the super reference will be calculated from the this pointer (if that is not null) whenever a function requires it. |
References gnash::FunctionArgs::swap().
gnash::fn_call::fn_call | ( | as_object * | this_in, |
const as_environment & | env_in | ||
) | [inline] |
gnash::fn_call::fn_call | ( | const fn_call & | fn | ) | [inline] |
Copy constructor.
const Args::value_type& gnash::fn_call::arg | ( | unsigned int | n | ) | const [inline] |
Access a particular argument.
References assert, nargs, and gnash::key::n.
Referenced by gnash::dbus_ext_setsockname(), gnash::dejagnu_pass(), gnash::dejagnu_fail(), gnash::DisplayObject::blendMode(), gnash::fileio_fopen(), gnash::fileio_fwrite(), gnash::fileio_fputc(), gnash::fileio_fputs(), gnash::fileio_puts(), gnash::fileio_putchar(), gnash::fileio_fseek(), gnash::fileio_asyncmode(), gnash::fileio_unlink(), gnash::fileio_scandir(), dump_args(), gnash::Function::call(), gnash::getArguments(), gnash::Function2::call(), gnash::gtkext_signal_connect(), gnash::gtkext_container_set_border_width(), gnash::gtkext_button_new_with_label(), gnash::gtkext_signal_connect_swapped(), gnash::gtkext_container_add(), gnash::gtkext_widget_show(), gnash::key_is_down(), gnash::lirc_ext_init(), gnash::abc::Machine::executeFunction(), gnash::mysql_connect(), gnash::mysql_qetData(), gnash::mysql_query(), and gnash::GetterSetter::UserDefinedGetterSetter::set().
void gnash::fn_call::dump_args | ( | std::ostream & | os | ) | const [inline] |
Dump arguments to given output stream.
References gnash::key::i, nargs, and arg().
Referenced by gnash::fileio_fopen(), and gnash::filereferencelist_ctor().
const as_environment& gnash::fn_call::env | ( | ) | const [inline] |
Referenced by gnash::getClassConstructor(), and mysqldb::size_method().
const Args::container_type& gnash::fn_call::getArgs | ( | ) | const [inline] |
VM& gnash::fn_call::getVM | ( | ) | const [inline] |
Return the VM this fn_call is running from.
References gnash::as_environment::getVM().
bool gnash::fn_call::isInstantiation | ( | ) | const [inline] |
Return true if this call is an object instantiation.
void gnash::fn_call::pushArg | ( | const Args::value_type & | arg | ) | [inline] |
References nargs.
void gnash::fn_call::resetArgs | ( | ) | [inline] |
References nargs.
Definition containing caller code. 0 if spontaneous (system event).
Referenced by gnash::invoke().
Number of arguments to this ActionScript function call.
Referenced by gnash::dbus_ext_setsockname(), gnash::dejagnu_pass(), gnash::dejagnu_fail(), gnash::DisplayObject::blendMode(), gnash::fileio_fopen(), gnash::fileio_scandir(), gnash::filereferencelist_ctor(), arg(), drop_bottom(), dump_args(), resetArgs(), pushArg(), gnash::Function::call(), gnash::getArguments(), gnash::Function2::call(), gnash::gtkext_signal_connect(), gnash::gtkext_container_set_border_width(), gnash::gtkext_button_new_with_label(), gnash::gtkext_signal_connect_swapped(), gnash::gtkext_container_add(), gnash::gtkext_widget_show(), gnash::key_is_down(), gnash::lirc_ext_init(), gnash::lirc_ext_getkey(), gnash::abc::Machine::executeFunction(), gnash::mysql_connect(), gnash::mysql_qetData(), gnash::mysql_fetch(), and gnash::mysql_query().
The "super" object in this function call context.
If this is 0, the super may be constructed from the this pointer.
Referenced by gnash::Function::call(), gnash::Function2::call(), and gnash::invoke().
The as_object (or a pointer derived thereof) on which this call is taking place.
Referenced by gnash::Function::call(), gnash::Function2::call(), gnash::gtkext_window_new(), gnash::gtkext_signal_connect(), gnash::gtkext_container_set_border_width(), gnash::gtkext_button_new_with_label(), gnash::gtkext_signal_connect_swapped(), gnash::gtkext_container_add(), gnash::gtkext_widget_show(), gnash::gtkext_main(), gnash::abc::Machine::executeFunction(), and mysqldb::size_method().