| 1 | package ExtUtils::XSpp::Node::Access; | ||
| 2 | 21 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 21 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 21 | ▶ | use base 'ExtUtils::XSpp::Node'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | ExtUtils::XSpp::Node::Access - Node representing an access specifier | ||
| 9 | |||
| 10 | =head1 DESCRIPTION | ||
| 11 | |||
| 12 | An L<ExtUtils::XSpp::Node> subclass representing an access (or method scope) | ||
| 13 | specifier such as C<public>, C<protected>, C<private>. | ||
| 14 | |||
| 15 | =head1 METHODS | ||
| 16 | |||
| 17 | =head2 new | ||
| 18 | |||
| 19 | Creates a new C<ExtUtils::XSpp::Node::Access> object. | ||
| 20 | |||
| 21 | Named parameters: C<access> must be the name of the access | ||
| 22 | specifier (see above). | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | 0 | ▶ | sub init { |
|
Subroutine
init: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | 0 | my $this = shift; | |
| 28 | 0 | my %args = @_; | |
| 29 | |||
| 30 | 0 | $this->{ACCESS} = $args{access}; | |
| 31 | } | ||
| 32 | |||
| 33 | =head1 ACCESSORS | ||
| 34 | |||
| 35 | =head2 access | ||
| 36 | |||
| 37 | Returns the name of the access specifier. | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | 0 | ▶ | sub access { $_[0]->{ACCESS} } |
|
Subroutine
access: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 42 | |||
| 43 | 21 | 1; | |