Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Moose::Policy::JavaAccessors 0.03

    Download button

    No screenshots available
    Downloads: 336  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Stevan Little | More programs
    Perl Artistic License / FREE
    June 25th, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Moose::Policy::JavaAccessors description

    Moose::Policy::JavaAccessors - BeCause EveryOne Loves CamelCase.

    Moose::Policy::JavaAccessors - BeCause EveryOne Loves CamelCase.

    SYNOPSIS

    package Foo;

    use Moose::Policy 'Moose::Policy::JavaAccessors';
    use Moose;

    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

    This meta-policy changes the behavior of Moose's default behavior in regard to accessors to follow Java convention and use CamelCase.

    CAVEAT

    This does a very niave conversion to CamelCase, basically it just runs ucfirst on the attribute name. Since I don't 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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Moose behavior | Java convention | Perl module | Moose::Policy::JavaA | Moose | behavior

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM