Manual Reference Pages - MOOSE::POLICY::JAVAACCESSORS (3)
Moose::Policy::JavaAccessors - BeCause EveryOne Loves CamelCase
use Moose::Policy Moose::Policy::JavaAccessors;
has bar => (is => rw, default => Foo::bar);
has baz => (is => ro, default => Foo::baz);
# Foo now has (get, set)Bar methods as well as getBaz
<B>Moose::Policy is deprecatedB>.
This meta-policy changes the behavior of Mooses default behavior in
regard to accessors to follow Java convention and use CamelCase.
This does a very niave conversion to CamelCase, basically it just
runs ucfirst on the attribute name. Since I dont use CamelCase
(at least not anymore), this is good enough. If you really want to
use this, and need a more sophisicated conversion, patches welcome :)
All complex software has bugs lurking in it, and this module is no
exception. If you find a bug please either email me, or add the bug
Stevan Little <firstname.lastname@example.org>
COPYRIGHT AND LICENSE
Copyright 2006-2007 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
|perl v5.20.3 ||MOOSE::POLICY::JAVAACCESSORS (3) ||2010-11-21 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.