ExtUtils::XSpp::Node::Enum - Node representing an enum declaration


NAME

ExtUtils::XSpp::Node::Enum - Node representing an enum declaration


DESCRIPTION

An the ExtUtils::XSpp::Node manpage subclass representing an enum declaration. As an example

    enum Bool
    {
        FALSE = 0,
        TRUE
    };

will create an ExtUtils::XSpp::Node::Enum object with name Bool and two the ExtUtils::XSpp::Node::EnumValue manpage values in the arguments array.

Enumerations do not affect the generated code.


METHODS

new

    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 the ExtUtils::XSpp::Node::EnumValue manpage or the ExtUtils::XSpp::Node::Raw manpage objects.


ACCESSORS

name

Returns the name of the enumeration, or undef for anonymous enumerations.

elements

An array reference containing mostly the ExtUtils::XSpp::Node::EnumValue manpage (it can contain other kinds of nodes).

 ExtUtils::XSpp::Node::Enum - Node representing an enum declaration