2 package Class::MOP::Method::Generated;
10 our $AUTHORITY = 'cpan:STEVAN';
12 use base 'Class::MOP::Method';
21 # specific to this subclass
22 '$!is_inline' => ($options{is_inline} || 0),
25 $self->initialize_body;
32 sub is_inline { (shift)->{'$!is_inline'} }
35 confess "No body to initialize, " . __PACKAGE__ . " is an abstract base class";
48 Class::MOP::Method::Generated - Abstract base class for generated methods
52 This is a C<Class::MOP::Method> subclass which is used interally
53 by C<Class::MOP::Method::Accessor> and C<Class::MOP::Method::Constructor>.
59 =item B<new (%options)>
61 This creates the method based on the criteria in C<%options>,
68 This is a boolean to indicate if the method should be generated
69 as a closure, or as a more optimized inline version.
75 This returns the boolean which was passed into C<new>.
77 =item B<initialize_body>
79 This is an abstract method and will throw an exception if called.
85 Stevan Little E<lt>stevan@iinteractive.comE<gt>
87 =head1 COPYRIGHT AND LICENSE
89 Copyright 2006-2008 by Infinity Interactive, Inc.
91 L<http://www.iinteractive.com>
93 This library is free software; you can redistribute it and/or modify
94 it under the same terms as Perl itself.