1 package Moose::Meta::Method::Accessor::Native::Reader;
8 with 'Moose::Meta::Method::Accessor::Native';
10 requires '_return_value';
12 sub _generate_method {
16 my $slot_access = $self->_get_value($inv);
20 'my ' . $inv . ' = shift;',
21 $self->_inline_curried_arguments,
22 $self->_inline_reader_core($inv, $slot_access, @_),
27 sub _inline_reader_core {
29 my ($inv, $slot_access, @extra) = @_;
32 $self->_inline_check_argument_count,
33 $self->_inline_process_arguments($inv, $slot_access),
34 $self->_inline_check_arguments,
35 $self->_inline_check_lazy($inv, '$type_constraint', '$type_constraint_obj'),
36 $self->_inline_return_value($slot_access),
40 sub _inline_process_arguments { return }
42 sub _inline_check_arguments { return }