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

NAME

6       MDOM::Token - A single token of Makefile source code
7

INHERITANCE

9         MDOM::Token
10         isa MDOM::Element
11

DESCRIPTION

13       "MDOM::Token" is the abstract base class for all Tokens. In MDOM terms,
14       a "Token" is a MDOM::Element that directly represents bytes of source
15       code.
16
17       The implementation and POD are borrowed directly from PPI::Token.
18

METHODS

20   set_class
21       Set a specific class for a token.
22
23   set_content $string
24       The "set_content" method allows to set/change the string that the
25       "MDOM::Token" object represents.
26
27       Returns the string you set the Token to
28
29   add_content $string
30       The "add_content" method allows you to add additional bytes of code to
31       the end of the Token.
32
33       Returns the new full string after the bytes have been added.
34
35   length
36       The "length" method returns the length of the string in a Token.
37
38   source
39       Returns the makefile source for the current token
40
41
42
43perl v5.32.0                      2020-07-28                    MDOM::Token(3)
Impressum