line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PPI::Token::Quote::Literal; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=pod |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
PPI::Token::Quote::Literal - The literal quote-like operator |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 INHERITANCE |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
PPI::Token::Quote::Literal |
12
|
|
|
|
|
|
|
isa PPI::Token::Quote |
13
|
|
|
|
|
|
|
isa PPI::Token |
14
|
|
|
|
|
|
|
isa PPI::Element |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 DESCRIPTION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
A C object represents a single literal |
19
|
|
|
|
|
|
|
quote-like operator, such as C. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 METHODS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
There are no methods available for C beyond |
24
|
|
|
|
|
|
|
those provided by the parent L, L and |
25
|
|
|
|
|
|
|
L classes. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
65
|
|
|
65
|
|
407
|
use strict; |
|
65
|
|
|
|
|
123
|
|
|
65
|
|
|
|
|
1649
|
|
30
|
65
|
|
|
65
|
|
1897
|
use PPI::Token::Quote (); |
|
65
|
|
|
|
|
128
|
|
|
65
|
|
|
|
|
2444
|
|
31
|
65
|
|
|
65
|
|
24957
|
use PPI::Token::_QuoteEngine::Full (); |
|
65
|
|
|
|
|
142
|
|
|
65
|
|
|
|
|
6914
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
our $VERSION = '1.276'; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
our @ISA = qw{ |
36
|
|
|
|
|
|
|
PPI::Token::_QuoteEngine::Full |
37
|
|
|
|
|
|
|
PPI::Token::Quote |
38
|
|
|
|
|
|
|
}; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
##################################################################### |
45
|
|
|
|
|
|
|
# PPI::Token::Quote Methods |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub string { |
48
|
9
|
|
|
9
|
1
|
2381
|
my $self = shift; |
49
|
9
|
|
|
|
|
45
|
my @sections = $self->_sections; |
50
|
9
|
|
|
|
|
16
|
my $str = $sections[0]; |
51
|
9
|
|
|
|
|
40
|
substr( $self->{content}, $str->{position}, $str->{size} ); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
# Use the same implementation as another module |
56
|
|
|
|
|
|
|
*literal = *PPI::Token::Quote::Single::literal; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=pod |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 SUPPORT |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
See the L in the main module. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Adam Kennedy Eadamk@cpan.orgE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Copyright 2001 - 2011 Adam Kennedy. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This program is free software; you can redistribute |
75
|
|
|
|
|
|
|
it and/or modify it under the same terms as Perl itself. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The full text of the license can be found in the |
78
|
|
|
|
|
|
|
LICENSE file included with this module. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |