1 package Moose::Meta::Mixin::AttributeCore;
6 use base 'Class::MOP::Mixin::AttributeCore';
8 __PACKAGE__->meta->add_attribute( 'isa' => ( reader => '_isa_metadata' ) );
9 __PACKAGE__->meta->add_attribute( 'does' => ( reader => '_does_metadata' ) );
10 __PACKAGE__->meta->add_attribute( 'is' => ( reader => '_is_metadata' ) );
12 __PACKAGE__->meta->add_attribute( 'required' => ( reader => 'is_required' ) );
13 __PACKAGE__->meta->add_attribute( 'lazy' => ( reader => 'is_lazy' ) );
14 __PACKAGE__->meta->add_attribute(
15 'lazy_build' => ( reader => 'is_lazy_build' ) );
16 __PACKAGE__->meta->add_attribute( 'coerce' => ( reader => 'should_coerce' ) );
17 __PACKAGE__->meta->add_attribute( 'weak_ref' => ( reader => 'is_weak_ref' ) );
18 __PACKAGE__->meta->add_attribute(
19 'auto_deref' => ( reader => 'should_auto_deref' ) );
20 __PACKAGE__->meta->add_attribute(
21 'type_constraint' => (
22 reader => 'type_constraint',
23 predicate => 'has_type_constraint',
26 __PACKAGE__->meta->add_attribute(
29 predicate => 'has_trigger',
32 __PACKAGE__->meta->add_attribute(
35 writer => '_set_handles',
36 predicate => 'has_handles',
39 __PACKAGE__->meta->add_attribute(
41 reader => 'documentation',
42 predicate => 'has_documentation',
48 # ABSTRACT: Core attributes shared by attribute metaclasses
56 This class implements the core attributes (aka properties) shared by all Moose
57 attributes. See the L<Moose::Meta::Attribute> documentation for API details.
61 See L<Moose/BUGS> for details on reporting bugs.