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 β€” an ExtUtils::XSpp::Node::Class object 🏫
  • const β€” true if the method was declared const
  • virtual β€” true if the method was declared virtual πŸŒ€

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