1 package Moose::Meta::Mixin::AttributeCore;
6 our $VERSION = '0.93_02';
7 our $AUTHORITY = 'cpan:STEVAN';
9 use base 'Class::MOP::Mixin::AttributeCore';
11 __PACKAGE__->meta->add_attribute( 'isa' => ( reader => '_isa_metadata' ) );
12 __PACKAGE__->meta->add_attribute( 'does' => ( reader => '_does_metadata' ) );
13 __PACKAGE__->meta->add_attribute( 'is' => ( reader => '_is_metadata' ) );
15 __PACKAGE__->meta->add_attribute( 'required' => ( reader => 'is_required' ) );
16 __PACKAGE__->meta->add_attribute( 'lazy' => ( reader => 'is_lazy' ) );
17 __PACKAGE__->meta->add_attribute(
18 'lazy_build' => ( reader => 'is_lazy_build' ) );
19 __PACKAGE__->meta->add_attribute( 'coerce' => ( reader => 'should_coerce' ) );
20 __PACKAGE__->meta->add_attribute( 'weak_ref' => ( reader => 'is_weak_ref' ) );
21 __PACKAGE__->meta->add_attribute(
22 'auto_deref' => ( reader => 'should_auto_deref' ) );
23 __PACKAGE__->meta->add_attribute(
24 'type_constraint' => (
25 reader => 'type_constraint',
26 predicate => 'has_type_constraint',
29 __PACKAGE__->meta->add_attribute(
32 predicate => 'has_trigger',
35 __PACKAGE__->meta->add_attribute(
38 writer => '_set_handles',
39 predicate => 'has_handles',
42 __PACKAGE__->meta->add_attribute(
44 reader => 'documentation',
45 predicate => 'has_documentation',
57 Moose::Meta::Mixin::AttributeCore - Core attributes shared by attribute metaclasses
61 This class implements the core attributes (aka properties) shared by all Moose
62 attributes. See the L<Moose::Meta::Attribute> documentation for API details.
66 See L<Moose/BUGS> for details on reporting bugs.
70 Dave Rolsky E<lt>autarch@urth.orgE<gt>
72 =head1 COPYRIGHT AND LICENSE
74 Copyright 2006-2010 by Infinity Interactive, Inc.
76 L<http://www.iinteractive.com>
78 This library is free software; you can redistribute it and/or modify
79 it under the same terms as Perl itself.