ExtUti...Method(3pm)
β¨ NAME β¨
ExtUtils::XSpp::Node::Method β it's the node that represents a method, bestie π
(from the Perl user-contributed docs, part 3pm, in case you were wondering where this whole thing lives π)
πΈ DESCRIPTION πΈ
Okay so picture this: this class is a sub-class of ExtUtils::XSpp::Node::Function, and its whole entire job β its main character moment, if you will β is representing one single method declaration inside a class. Like, just the one. Standing there. Being a method. Slay π
Here's the vibe:
class FooBar {
int foo(double someArgument); // <-- this one
}
See that int foo(double someArgument);? That's the one π― The method this node is about. The rest of the class is literally just set dressing, no cap π
π¦ METHODS π¦
new
Creates a new ExtUtils::XSpp::Node::Method. Iconic constructor behaviour, we love to see it π
Most of the functionality here is inherited, which means every single named parameter that ExtUtils::XSpp::Node::Function accepts? Yeah, those are also valid for this class. Free real estate π«Ά
On top of those, the constructor also accepts these extra named parameters:
classβ anExtUtils::XSpp::Node::Classobject π«constβ true if the method was declaredconstvirtualβ true if the method was declaredvirtualπ
perl_function_name
Returns the name of the Perl function (method) that this method represents π« And the way it builds it? It's constructed from the method's class's name plus the perl_name attribute. Two ingredients, one gorgeous name, chef's kiss ππ€
is_method
Returns true. Because it is a method. Every object of this class is a method. No notes, it's giving self-awareness, periodt πβ¨
ACCESSORS π
class
Returns the class that the method belongs to β an ExtUtils::XSpp::Node::Class object π
virtual
Returns whether the method was declared virtual π»
set_virtual
Sets whether the method is to be considered virtual. Go ahead, make it virtual, live your truth π¦
const
Returns whether the method was declared const π
access
Returns 'public', 'protected' or 'private' depending on the method's access declaration πͺ
Heads up bestie β by default, only public methods are generated. So if your method is out here living that private life, it will not show up unless you say so. Don't be shocked when it ghosts you, fr fr π
That's the whole page, gorgeous π This one's from the User Contributed Perl Documentation, perl v5.40.1, dated 2026-07-03, and yes the footer still says ExtUti...Method(3pm) because even the man page title is doing that little abbreviated thing π Stay cunty, stay compiled πβ¨
π¦ where this page comes from
- ubuntu stonking: libextutils-xspp-perl 0.1900-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms