ExtUtils::XSpp::Node::Enum - Node representing an enum declaration
An ExtUtils::XSpp::Node subclass representing an enum declaration. As an example
enum
enum Bool { FALSE = 0, TRUE };
will create an ExtUtils::XSpp::Node::Enum object with name Bool and two ExtUtils::XSpp::Node::EnumValue values in the arguments array.
ExtUtils::XSpp::Node::Enum
name
Bool
arguments
Enumerations do not affect the generated code.
my $e = ExtUtils::XSpp::Node::Enum->new( name => 'Bool', elements => [ ... ], );
Creates a new ExtUtils::XSpp::Node::Enum.
name gives the name of the enumeration, undef for anonymous enumerations. elements should only contain ExtUtils::XSpp::Node::EnumValue or ExtUtils::XSpp::Node::Raw objects.
undef
elements
Returns the name of the enumeration, or undef for anonymous enumerations.
An array reference containing mostly ExtUtils::XSpp::Node::EnumValue (it can contain other kinds of nodes).
To install ExtUtils::XSpp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ExtUtils::XSpp
CPAN shell
perl -MCPAN -e shell install ExtUtils::XSpp
For more information on module installation, please visit the detailed CPAN module installation guide.