ExtUtils::XSpp::Node::Access - Node representing an access specifier


ExtUtils-XSpp documentation Contained in the ExtUtils-XSpp distribution.

Index


Code Index:

NAME

Top

ExtUtils::XSpp::Node::Access - Node representing an access specifier

DESCRIPTION

Top

An ExtUtils::XSpp::Node subclass representing an access (or method scope) specifier such as public, protected, private.

METHODS

Top

new

Creates a new ExtUtils::XSpp::Node::Access object.

Named parameters: access must be the name of the access specifier (see above).

ACCESSORS

Top

access

Returns the name of the access specifier.


ExtUtils-XSpp documentation Contained in the ExtUtils-XSpp distribution.
package ExtUtils::XSpp::Node::Access;
use strict;
use warnings;
use base 'ExtUtils::XSpp::Node';

sub init {
  my $this = shift;
  my %args = @_;

  $this->{ACCESS} = $args{access};
}

sub access { $_[0]->{ACCESS} }

1;