line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SIAM::ScopeMember; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
143
|
|
4
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
9
|
use base 'SIAM::Object'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
593
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
SIAM::ScopeMember - Scope Member object class |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 METHODS |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head2 points_to |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Returns the value of C attribute. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub points_to |
27
|
|
|
|
|
|
|
{ |
28
|
2
|
|
|
2
|
1
|
3
|
my $self = shift; |
29
|
2
|
|
|
|
|
9
|
return $self->attr('siam.scmember.object_id'); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head2 match_object |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Expects an object as an argument. Returns true if the object matches |
37
|
|
|
|
|
|
|
this scope member. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub match_object |
43
|
|
|
|
|
|
|
{ |
44
|
0
|
|
|
0
|
1
|
0
|
my $self = shift; |
45
|
0
|
|
|
|
|
0
|
my $obj = shift; |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
0
|
return ($obj->id eq $self->attr('siam.scmember.object_id')); |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# mandatory attributes |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
my $mandatory_attributes = |
55
|
|
|
|
|
|
|
[ 'siam.scmember.object_id' ]; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub _mandatory_attributes |
58
|
|
|
|
|
|
|
{ |
59
|
19
|
|
|
19
|
|
63
|
return $mandatory_attributes; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub _manifest_attributes |
63
|
|
|
|
|
|
|
{ |
64
|
1
|
|
|
1
|
|
6
|
return $mandatory_attributes; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
1; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
# Local Variables: |
71
|
|
|
|
|
|
|
# mode: cperl |
72
|
|
|
|
|
|
|
# indent-tabs-mode: nil |
73
|
|
|
|
|
|
|
# cperl-indent-level: 4 |
74
|
|
|
|
|
|
|
# cperl-continued-statement-offset: 4 |
75
|
|
|
|
|
|
|
# cperl-continued-brace-offset: -4 |
76
|
|
|
|
|
|
|
# cperl-brace-offset: 0 |
77
|
|
|
|
|
|
|
# cperl-label-offset: -2 |
78
|
|
|
|
|
|
|
# End: |