1ExtUtils::XSpp::Node::EUnsuemr(3C)ontributed Perl DocumeEnxttaUttiiolns::XSpp::Node::Enum(3)
2
3
4

NAME

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

DESCRIPTION

9       An ExtUtils::XSpp::Node subclass representing an "enum" declaration.
10       As an example
11
12           enum Bool
13           {
14               FALSE = 0,
15               TRUE
16           };
17
18       will create an "ExtUtils::XSpp::Node::Enum" object with "name" "Bool"
19       and two ExtUtils::XSpp::Node::EnumValue values in the "arguments"
20       array.
21
22       Enumerations do not affect the generated code.
23

METHODS

25   new
26           my $e = ExtUtils::XSpp::Node::Enum->new( name     => 'Bool',
27                                                    elements => [ ... ],
28                                                    );
29
30       Creates a new "ExtUtils::XSpp::Node::Enum".
31
32       "name" gives the name of the enumeration, "undef" for anonymous
33       enumerations.  "elements" should only contain
34       ExtUtils::XSpp::Node::EnumValue or ExtUtils::XSpp::Node::Raw objects.
35

ACCESSORS

37   name
38       Returns the name of the enumeration, or "undef" for anonymous
39       enumerations.
40
41   elements
42       An array reference containing mostly ExtUtils::XSpp::Node::EnumValue
43       (it can contain other kinds of nodes).
44
45
46
47perl v5.36.0                      2023-01-20     ExtUtils::XSpp::Node::Enum(3)
Impressum