1PPIx::Regexp::Token(3)User Contributed Perl DocumentationPPIx::Regexp::Token(3)
2
3
4

NAME

6       PPIx::Regexp::Token - Base class for PPIx::Regexp tokens.
7

SYNOPSIS

9        use PPIx::Regexp::Dumper;
10        PPIx::Regexp::Dumper->new( 'qr{foo}' )->print();
11

INHERITANCE

13       "PPIx::Regexp::Token" is a PPIx::Regexp::Element.
14
15       "PPIx::Regexp::Token" is the parent of PPIx::Regexp::Token::Assertion,
16       PPIx::Regexp::Token::Backtrack, PPIx::Regexp::Token::CharClass,
17       PPIx::Regexp::Token::Code, PPIx::Regexp::Token::Comment,
18       PPIx::Regexp::Token::Control, PPIx::Regexp::Token::Greediness,
19       PPIx::Regexp::Token::GroupType, PPIx::Regexp::Token::Literal,
20       PPIx::Regexp::Token::Modifier, PPIx::Regexp::Token::Operator,
21       PPIx::Regexp::Token::Quantifier, PPIx::Regexp::Token::Reference,
22       PPIx::Regexp::Token::Structure, PPIx::Regexp::Token::Unknown,
23       PPIx::Regexp::Token::Unmatched and PPIx::Regexp::Token::Whitespace.
24

DESCRIPTION

26       This class represents the base of the class hierarchy for tokens in the
27       PPIx::Regexp package.
28

METHODS

30       This class provides the following public methods. Methods not
31       documented here are private, and unsupported in the sense that the
32       author reserves the right to change or remove them without notice.
33
34   can_be_quantified
35        $token->can_be_quantified()
36            and print "This token can be quantified.\n";
37
38       This method returns true if the token can be quantified.
39
40   is_quantifier
41        $token->is_quantifier()
42            and print "This token is a quantifier.\n";
43
44       This method returns true if the token is a quantifier. You can not tell
45       this from the token's class, because a right curly bracket may
46       represent a quantifier for the purposes of figuring out whether a
47       greediness token is possible.
48

SUPPORT

50       Support is by the author. Please file bug reports at
51       <http://rt.cpan.org>, or in electronic mail to the author.
52

AUTHOR

54       Thomas R. Wyant, III wyant at cpan dot org
55
57       Copyright (C) 2009-2010, Thomas R. Wyant, III
58
59       This program is free software; you can redistribute it and/or modify it
60       under the same terms as Perl 5.10.0. For more details, see the full
61       text of the licenses in the directory LICENSES.
62
63       This program is distributed in the hope that it will be useful, but
64       without any warranty; without even the implied warranty of
65       merchantability or fitness for a particular purpose.
66
67
68
69perl v5.12.0                      2010-06-08            PPIx::Regexp::Token(3)
Impressum