| 1 | # -*- Mode: Perl; indent-tabs-mode: nil; -*- | ||||||||||
| 2 | |||||||||||
| 3 | package Servlet::ServletContextAttributeEvent; | ||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use base qw(Servlet::ServletContextEvent); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use fields qw(name value); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 11 | 1 | my $self = shift; | |||||||||
| 12 | 1 | my $source = shift; | |||||||||
| 13 | 1 | my $name = shift; | |||||||||
| 14 | 1 | my $value = shift; | |||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | $self = fields::new($self) unless ref $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 1 | $self->SUPER::new($source); | |||||||||
| 18 | |||||||||||
| 19 | 1 | $self->{name} = $name; | |||||||||
| 20 | 1 | $self->{value} = $value; | |||||||||
| 21 | |||||||||||
| 22 | 1 | return $self; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 1 | ▶ | sub getName { | ||||||||
|
Subroutine
getName: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 26 | 1 | my $self = shift; | |||||||||
| 27 | |||||||||||
| 28 | 1 | return $self->{name}; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 1 | ▶ | sub getValue { | ||||||||
|
Subroutine
getValue: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 32 | 1 | my $self = shift; | |||||||||
| 33 | |||||||||||
| 34 | 1 | return $self->{value}; | |||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | 1 | 1; | |||||||||
| 38 | __END__ | ||||||||||