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|
|
|
# we are going for a very struct-like class here to try and keep the |
11
|
|
|
|
|
|
|
# syntactical noise down. |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# We never intend this class to be subclassed, so the constructor is very |
14
|
|
|
|
|
|
|
# simple on purpose. you can consider this class to be effectively sealed. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new { |
17
|
76
|
|
|
76
|
1
|
965
|
my $class = shift; |
18
|
76
|
|
|
|
|
656
|
return bless { |
19
|
|
|
|
|
|
|
name => "", |
20
|
|
|
|
|
|
|
sub_traits => [], |
21
|
|
|
|
|
|
|
requirements => {}, |
22
|
|
|
|
|
|
|
methods => {}, |
23
|
|
|
|
|
|
|
overloads => {}, |
24
|
|
|
|
|
|
|
conflicts => {} |
25
|
|
|
|
|
|
|
}, $class; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw( |
29
|
|
|
|
|
|
|
name sub_traits requirements methods overloads conflicts |
30
|
|
|
|
|
|
|
)); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# a basic clone function for moving in and out of the cache. |
33
|
|
|
|
|
|
|
sub clone { |
34
|
59
|
|
|
59
|
1
|
14551
|
my $self = shift; |
35
|
59
|
|
|
|
|
110
|
my $class = ref $self; |
36
|
59
|
|
|
|
|
159
|
return bless { |
37
|
|
|
|
|
|
|
name => $self->{name}, |
38
|
59
|
|
|
|
|
206
|
sub_traits => [ @{ $self->{sub_traits} } ], |
39
|
59
|
|
|
|
|
244
|
requirements => { %{ $self->{requirements} } }, |
40
|
59
|
|
|
|
|
403
|
methods => { %{ $self->{methods} } }, |
41
|
59
|
|
|
|
|
491
|
overloads => { %{ $self->{overloads} } }, |
42
|
59
|
|
|
|
|
114
|
conflicts => { %{ $self->{conflicts} } }, |
43
|
|
|
|
|
|
|
}, $class; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |