ExtUtils::XSpp::Node::EnumValue(3pm)

ExtUtils::XSpp::Node::EnumValue3pm

Node representing an enum element

Overview

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

    enum Bool
    {
        FALSE = 0,
        TRUE
    };

Will create two "ExtUtils::XSpp::Node::EnumValue" objects, the first with "name" "FALSE" and "value" 0, the second with "name" "TRUE" and no value.

Enumerations do not affect the generated code.

Methods

new

    my $e = ExtUtils::XSpp::Node::EnumValue->new( name  => 'FALSE',
                                                  value => '0x1 | 0x4',
                                                  );

Creates a new "ExtUtils::XSpp::Node::EnumValue".

"value" is optional.

Accessors

name

Returns the name of the enumeration element.

value

Returns the initializer of the enumeration element, or "undef".

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–10
  5. 11
  6. 12–13

From libextutils-xspp-perl 0.1800-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.