RDF/Trine/Parser/Turtle/Token.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RDF/Trine/Store/Redis.pm ↑ Summary
1 package RDF::Trine::Parser::Turtle::Token;
2  
3 68 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 68 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 68 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 68 ▶use MooseX::ArrayRef;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 68 has type => ( is => 'ro', );
9 68 has start_line => ( is => 'ro', );
10 68 has start_column => ( is => 'ro', );
11 68 has line => ( is => 'ro', );
12 68 has column => ( is => 'ro', );
13 68 has args => ( is => 'ro', );
14  
15 =begin private
16  
17 =item C<< value >>
18  
19 Returns the token value.
20  
21 =cut
22  
23 3174 ▶sub value {
Subroutine value: called CC=1 SCAR=0.0
Pod documented
24 3174 my $self = shift;
25 3174 my $args = $self->args;
26 3174 return $args->[0];
27 }
28  
29 =item C<< fast_constructor ( $type, $line, $col, \@args ) >>
30  
31 Returns a new token object.
32  
33 =cut
34  
35 # This constructor relies on the list of attributes not changing order!
36 9482 ▶sub fast_constructor {
Subroutine fast_constructor: called CC=1 SCAR=0.0
Pod documented
37 9482 my $class = shift;
38 9482 bless \@_, $class;
39 }
40  
41 68 __PACKAGE__->meta->make_immutable;
42  
43 68 1;
44  
45 =end private
46  
47 =cut
« RDF/Trine/Store/Redis.pm ↑ Summary