Clownfish::Binding::Core::Method - Generate core C code for a method.
Clownfish::Method is an abstract specification; this class generates C code which implements the specification.
my $c_code = Clownfish::Binding::Core::Method->method_def( method => $method, $class => $class, );
Return C code for the static inline vtable method invocation function.
method - A Clownfish::Method.
class - The Clownfish::Class which will be invoking the method - LobsterClaw needs its own method invocation function even if the method was defined in Claw.
my $c_code = Clownfish::Binding::Core::Method->typedef_dec($method);
Return C code expressing a typedef declaration for the method.
my $c_code = Clownfish::Binding::Core::Method->callback_dec($method);
Return C code declaring the Callback object for this method.
my $c_code = Clownfish::Binding::Core::Method->callback_obj_def($method);
Return C code defining the Callback object for this method, which stores introspection data and a pointer to the callback function.
my $c_code = Clownfish::Binding::Core::Method->callback_def($method);
Return C code implementing a callback to the Host for this method. This code is used when a Host method has overridden a method in a Clownfish class.
my $c_code = Clownfish::Binding::Core::Method->abstract_method_def($method);
Return C code implementing a version of the method which throws an "abstract method" error at runtime, for methods which are declared as "abstract" in a Clownfish header file.
To install Lucy::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lucy::Simple
CPAN shell
perl -MCPAN -e shell install Lucy::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.