Perl::Critic::Utils::PPI - Utility functions for dealing with PPI objects.



NAME

Perl::Critic::Utils::PPI - Utility functions for dealing with PPI objects.


DESCRIPTION

Provides classification of the PPI::Elements manpage.


IMPORTABLE SUBS

is_ppi_expression_or_generic_statement( $element )
Answers whether the parameter is an expression or an undifferentiated statement. I.e. the parameter either is a the PPI::Statement::Expression manpage or the class of the parameter is the PPI::Statement manpage and not one of its subclasses other than Expression.

is_ppi_generic_statement( $element )
Answers whether the parameter is an undifferentiated statement, i.e. the parameter is a the PPI::Statement manpage but not one of its subclasses.

is_ppi_statement_subclass( $element )
Answers whether the parameter is a specialized statement, i.e. the parameter is a the PPI::Statement manpage but the class of the parameter is not the PPI::Statement manpage.


AUTHOR

Elliot Shank <perl@galumph.com>


COPYRIGHT

Copyright (c) 2007 Elliot Shank. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module.

 Perl::Critic::Utils::PPI - Utility functions for dealing with PPI objects.