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

ExtUtils::XSpp::Node::Enum3pm

Node representing an enum declaration

Overview

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

Accessors

name

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

elements

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

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.