Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ExtUtils::XSpp::Node::UserVContributed Perl ExtUtils::XSpp::Node::EnumValue(3)

NAME
       ExtUtils::XSpp::Node::EnumValue - Node representing an enum element

DESCRIPTION
       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".

perl v5.32.0			  2020-08-09ExtUtils::XSpp::Node::EnumValue(3)

NAME | DESCRIPTION | METHODS | ACCESSORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ExtUtils::XSpp::Node::EnumValue&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help