1ExtUtils::XSpp::Node::EUnsuemrVaClounet(r3i)buted Perl DEoxctuUmteinltsa:t:iXoSnpp::Node::EnumValue(3)
2
3
4
6 ExtUtils::XSpp::Node::EnumValue - Node representing an enum element
7
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 two "ExtUtils::XSpp::Node::EnumValue" objects, the first
19 with "name" "FALSE" and "value" 0, the second with "name" "TRUE" and no
20 value.
21
22 Enumerations do not affect the generated code.
23
25 new
26 my $e = ExtUtils::XSpp::Node::EnumValue->new( name => 'FALSE',
27 value => '0x1 | 0x4',
28 );
29
30 Creates a new "ExtUtils::XSpp::Node::EnumValue".
31
32 "value" is optional.
33
35 name
36 Returns the name of the enumeration element.
37
38 value
39 Returns the initializer of the enumeration element, or "undef".
40
41
42
43perl v5.30.1 2020-01-30ExtUtils::XSpp::Node::EnumValue(3)