4 mop_instantiate_xs_accessor(pTHX_ SV* const meta_attr, XSPROTO(accessor_impl)){
5 SV* const key = mop_call0(aTHX_ meta_attr, sv_2mortal(newSVpvs("attribute_name")));
7 const char* const pv = SvPV_const(key, len);
8 return mop_install_simple_accessor(aTHX_ NULL /* anonymous */, pv, len, accessor_impl);
11 MODULE = Class::MOP::Method::Accessor PACKAGE = Class::MOP::Method::Accessor
16 INSTALL_SIMPLE_READER_WITH_KEY(Method::Accessor, associated_attribute, attribute);
17 INSTALL_SIMPLE_READER(Method::Accessor, accessor_type);
21 _generate_accessor_method_xs(SV* self)
23 RETVAL = mop_instantiate_xs_accessor(aTHX_ self, mop_xs_simple_accessor);
28 _generate_reader_method_xs(SV* self)
30 RETVAL = mop_instantiate_xs_accessor(aTHX_ self, mop_xs_simple_reader);
35 _generate_writer_method_xs(SV* self)
37 RETVAL = mop_instantiate_xs_accessor(aTHX_ self, mop_xs_simple_writer);
42 _generate_predicate_method_xs(SV* self)
44 RETVAL = mop_instantiate_xs_accessor(aTHX_ self, mop_xs_simple_predicate);
49 _generate_clearer_method_xs(SV* self)
51 RETVAL = mop_instantiate_xs_accessor(aTHX_ self, mop_xs_simple_clearer);