line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Statistics::R::REXP::Language; |
2
|
|
|
|
|
|
|
# ABSTRACT: an R language vector |
3
|
|
|
|
|
|
|
$Statistics::R::REXP::Language::VERSION = '1.0'; |
4
|
14
|
|
|
14
|
|
16012
|
use 5.010; |
|
14
|
|
|
|
|
27
|
|
5
|
|
|
|
|
|
|
|
6
|
14
|
|
|
14
|
|
45
|
use Scalar::Util qw(blessed); |
|
14
|
|
|
|
|
17
|
|
|
14
|
|
|
|
|
562
|
|
7
|
|
|
|
|
|
|
|
8
|
14
|
|
|
14
|
|
470
|
use Class::Tiny::Antlers; |
|
14
|
|
|
|
|
3951
|
|
|
14
|
|
|
|
|
93
|
|
9
|
14
|
|
|
14
|
|
1479
|
use namespace::clean; |
|
14
|
|
|
|
|
9414
|
|
|
14
|
|
|
|
|
64
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
extends 'Statistics::R::REXP::List'; |
12
|
|
|
|
|
|
|
|
13
|
14
|
|
|
14
|
|
1637
|
use constant sexptype => 'LANGSXP'; |
|
14
|
|
|
|
|
16
|
|
|
14
|
|
|
|
|
1895
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub BUILD { |
17
|
373
|
|
|
373
|
0
|
8766
|
my ($self, $args) = @_; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Required attribute type |
20
|
373
|
100
|
66
|
|
|
5165
|
die 'The first element must be a Symbol or Language' if defined $self->elements && |
|
|
|
66
|
|
|
|
|
21
|
|
|
|
|
|
|
!(blessed $self->elements->[0] && |
22
|
|
|
|
|
|
|
($self->elements->[0]->isa('Statistics::R::REXP::Language') || |
23
|
|
|
|
|
|
|
$self->elements->[0]->isa('Statistics::R::REXP::Symbol'))) |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub to_pl { |
27
|
6
|
|
|
6
|
1
|
448
|
Statistics::R::REXP::Vector::to_pl(@_) |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
38
|
|
|
38
|
|
75
|
sub _type { 'language' }; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; # End of Statistics::R::REXP::Language |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |