1PPI::Token(3)         User Contributed Perl Documentation        PPI::Token(3)
2
3
4

NAME

6       PPI::Token - A single token of Perl source code
7

INHERITANCE

9         PPI::Token
10         isa PPI::Element
11

DESCRIPTION

13       "PPI::Token" is the abstract base class for all Tokens. In PPI terms, a
14       "Token" is a PPI::Element that directly represents bytes of source
15       code.
16

METHODS

18   set_content $string
19       The "set_content" method allows you to set/change the string that the
20       "PPI::Token" object represents.
21
22       Returns the string you set the Token to
23
24   add_content $string
25       The "add_content" method allows you to add additional bytes of code to
26       the end of the Token.
27
28       Returns the new full string after the bytes have been added.
29
30   length
31       The "length" method returns the length of the string in a Token.
32

SUPPORT

34       See the support section in the main module.
35

AUTHOR

37       Adam Kennedy <adamk@cpan.org>
38
40       Copyright 2001 - 2011 Adam Kennedy.
41
42       This program is free software; you can redistribute it and/or modify it
43       under the same terms as Perl itself.
44
45       The full text of the license can be found in the LICENSE file included
46       with this module.
47
48
49
50perl v5.28.1                      2017-06-22                     PPI::Token(3)
Impressum