Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\Pod\Simple\PullParserToken.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Pod::Simple::PullParserToken -- tokens from Pod::Simple::PullParser</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Pod::Simple::PullParserToken -- tokens from Pod::Simple::PullParser</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#see_also">SEE ALSO</a></li> <li><a href="#copyright_and_disclaimers">COPYRIGHT AND DISCLAIMERS</a></li> <li><a href="#author">AUTHOR</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>Pod::Simple::PullParserToken -- tokens from Pod::Simple::PullParser</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <p>Given a $parser that's an object of class Pod::Simple::PullParser (or a subclass)...</p> <pre> while(my $token = $parser->get_token) { $DEBUG and print "Token: ", $token->dump, "\n"; if($token->is_start) { ...access $token->tagname, $token->attr, etc...</pre> <pre> } elsif($token->is_text) { ...access $token->text, $token->text_r, etc... } elsif($token->is_end) { ...access $token->tagname... } }</pre> <p>(Also see <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Pod/Simple/PullParser.html">the Pod::Simple::PullParser manpage</a>)</p> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>When you do $parser->get_token on a <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Pod/Simple/PullParser.html">the Pod::Simple::PullParser manpage</a>, you should get an object of a subclass of Pod::Simple::PullParserToken.</p> <p>Subclasses will add methods, and will also inherit these methods:</p> <dl> <dt><strong><a name="type" class="item">$token->type</a></strong> <dd> <p>This returns the type of the token. This will be either the string "start", the string "text", or the string "end".</p> </dd> <dd> <p>Once you know what the type of an object is, you then know what subclass it belongs to, and therefore what methods it supports.</p> </dd> <dd> <p>Yes, you could probably do the same thing with code like $token->isa('Pod::Simple::PullParserEndToken'), but that's not so pretty as using just $token->type, or even the following shortcuts:</p> </dd> </li> <dt><strong><a name="is_start" class="item">$token->is_start</a></strong> <dd> <p>This is a shortcut for <a href="#type"><code>$token->type() eq "start"</code></a></p> </dd> </li> <dt><strong><a name="is_text" class="item">$token->is_text</a></strong> <dd> <p>This is a shortcut for <a href="#type"><code>$token->type() eq "text"</code></a></p> </dd> </li> <dt><strong><a name="is_end" class="item">$token->is_end</a></strong> <dd> <p>This is a shortcut for <a href="#type"><code>$token->type() eq "end"</code></a></p> </dd> </li> <dt><strong><a name="dump" class="item">$token->dump</a></strong> <dd> <p>This returns a handy stringified value of this object. This is useful for debugging, as in:</p> </dd> <dd> <pre> while(my $token = $parser->get_token) { $DEBUG and print "Token: ", $token->dump, "\n"; ... }</pre> </dd> </li> </dl> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p>My subclasses: <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Pod/Simple/PullParserStartToken.html">the Pod::Simple::PullParserStartToken manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Pod/Simple/PullParserTextToken.html">the Pod::Simple::PullParserTextToken manpage</a>, and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Pod/Simple/PullParserEndToken.html">the Pod::Simple::PullParserEndToken manpage</a>.</p> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Pod/Simple/PullParser.html">the Pod::Simple::PullParser manpage</a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Pod/Simple.html">the Pod::Simple manpage</a></p> <p> </p> <hr /> <h1><a name="copyright_and_disclaimers">COPYRIGHT AND DISCLAIMERS</a></h1> <p>Copyright (c) 2002 Sean M. Burke. All rights reserved.</p> <p>This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p> <p>This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.</p> <p> </p> <hr /> <h1><a name="author">AUTHOR</a></h1> <p>Sean M. Burke <code>sburke@cpan.org</code></p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Pod::Simple::PullParserToken -- tokens from Pod::Simple::PullParser</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de