use strict;
use warnings;
-use Carp qw(cluck);
-our $VERSION = '0.92';
+use Carp qw( cluck );
+use Scalar::Util qw( blessed );
+
+our $VERSION = '1.00';
$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
'Class::MOP::subname' => 0.93,
'Class::MOP::in_global_destruction' => 0.93,
+ 'Class::MOP::Package::get_method_map' => 0.93,
+
'Class::MOP::Class::construct_class_instance' => 0.93,
'Class::MOP::Class::check_metaclass_compatibility' => 0.93,
'Class::MOP::Class::create_meta_instance' => 0.93,
'Class::MOP::Class::alias_method' => 0.93,
'Class::MOP::Class::compute_all_applicable_methods' => 0.93,
'Class::MOP::Class::compute_all_applicable_attributes' => 0.93,
+ 'Class::MOP::Class::get_attribute_map' => 0.95,
'Class::MOP::Instance::bless_instance_structure' => 0.93,
package
Class::MOP::Package;
+sub get_method_map {
+ Class::MOP::Deprecated::warn(
+ 'The get_method_map method has been made private.'
+ . " The public version is deprecated and will be removed in a future release.\n"
+ );
+ my $self = shift;
+
+ my $map = $self->_full_method_map;
+
+ $map->{$_} = $self->get_method($_)
+ for grep { !blessed( $map->{$_} ) } keys %{$map};
+
+ return $map;
+}
+
package
Class::MOP::Module;
shift->get_all_attributes(@_);
}
+sub get_attribute_map {
+ Class::MOP::Deprecated::warn(
+ "The get_attribute_map method has been deprecated.\n");
+
+ shift->_attribute_map(@_);
+}
+
package
Class::MOP::Instance;
=head1 FUNCTIONS
-This class provides methods that have been deprecated but remain for backward compatibility.
-
-If you specify C<< -compatible => $version >>, you can use deprecated features without warnings.
-Note that this special treatment is package-scoped.
-
-=over 4
-
-=item B<Class::MOP::Deprecated::warn($message)>
-
-Checks compatibility for the caller feature, and produces warnings if needed.
-
-This function is used in internals.
+This class provides methods that have been deprecated but remain for backward
+compatibility.
-=back
+If you specify C<< -compatible => $version >>, you can use deprecated features
+without warnings. Note that this special treatment is limited to the package
+that loads C<Class::MOP::Deprecated>.
=head1 AUTHORS
=head1 COPYRIGHT AND LICENSE
-Copyright 2006-2009 by Infinity Interactive, Inc.
+Copyright 2006-2010 by Infinity Interactive, Inc.
L<http://www.iinteractive.com>