NAME
Boilerplater::Function - Metadata describing a function.
METHODS
new
my $type = Boilerplater::Function->new(
class_name => 'MyProject::FooFactory', # required
class_cnick => 'FooFact', # required
return_type => $void_type # required
param_list => $param_list, # required
micro_sym => 'count', # required
docucomment => $docucomment, # default: undef
parcel => 'Boil' # default: special
exposure => 'public' # default: parcel
inline => 1, # default: false
);
class_name - The full name of the class in whose namespace the function resides.
class_cnick - The C nickname for the class.
return_type - A Boilerplater::Type representing the function's return type.
param_list - A Boilerplater::ParamList representing the function's argument list.
micro_sym - The lower case name of the function, without any namespacing prefixes.
docucomment - A Boilerplater::DocuComment describing the function.
parcel - A Boilerplater::Parcel or a parcel name.
exposure - The function's exposure (see Boilerplater::Symbol).
inline - Should be true if the function should be inlined by the compiler.
get_return_type get_param_list get_docucomment inline
Accessors.
void
Returns true if the function has a void return type, false otherwise.
full_func_sym
A synonym for full_sym().
short_func_sym
A synonym for short_sym().
COPYRIGHT AND LICENSE
Copyright 2006-2009 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.