ExtUti...::Enum(3pm)
β¨ NAME β¨
ExtUtils::XSpp::Node::Enum β the node that's literally just an enum declaration, bestie π
πΈ DESCRIPTION πΈ
Okay so picture this: ExtUtils::XSpp::Node::Enum is a subclass of ExtUtils::XSpp::Node and it represents an enum declaration. That's the whole vibe. π
Like, say you've got this in your code:
enum Bool
{
FALSE = 0,
TRUE
};
That's gonna hand you back an ExtUtils::XSpp::Node::Enum object where the name is "Bool", and there are two ExtUtils::XSpp::Node::EnumValue values chilling in the arguments array. Two of them. Iconic. π«Ά
Lowkey important heads-up: enumerations do not affect the generated code. Not even a little. They're just here for the aesthetic (and the parsing). π
π METHODS π
π new
my $e = ExtUtils::XSpp::Node::Enum->new( name => 'Bool',
elements => [ ... ],
);
Makes you a brand new ExtUtils::XSpp::Node::Enum. Slay. β¨
nameis the name of the enumeration β orundefif it's an anonymous enumeration (yes, the shy ones exist, and we respect them π).elementsshould only containExtUtils::XSpp::Node::EnumValueorExtUtils::XSpp::Node::Rawobjects. Nothing else, fr fr.
π ACCESSORS π
π¦ name
Returns the name of the enumeration. If it's anonymous, you get undef back. That's it, that's the whole thing. π
π elements
An array reference. It contains mostly ExtUtils::XSpp::Node::EnumValue β but ngl, it can contain other kinds of nodes too. So don't be shocked when it does. π
perl v5.40.1 Β· 2026-07-03 β that's the version and date stamp, bestie, and that's a wrap on this little manpage πβ¨ go forth and enumerate π¦π
π¦ 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