{
    "mode": "perldoc",
    "parameter": "Moose::Meta::Role::Composite",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Moose%3A%3AMeta%3A%3ARole%3A%3AComposite/json",
    "generated": "2026-06-10T17:06:21Z",
    "sections": {
        "NAME": {
            "content": "Moose::Meta::Role::Composite - An object to represent the set of roles\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.2200\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "A composite is a role that consists of a set of two or more roles.\n\nThe API of a composite role is almost identical to that of a regular role.\n",
            "subsections": []
        },
        "INHERITANCE": {
            "content": "\"Moose::Meta::Role::Composite\" is a subclass of Moose::Meta::Role.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Moose::Meta::Role::Composite->new(%options)\nThis returns a new composite role object. It accepts the same options as its parent class, with\na few changes:\n\n*   roles\n\nThis option is an array reference containing a list of Moose::Meta::Role object. This is a\nrequired option.\n\n*   name\n\nIf a name is not given, one is generated from the roles provided.\n\n*   applyparams(\\%roleparams)\n\nCreates a new RoleSummation role application with %roleparams and applies the composite\nrole to it. The RoleSummation role application class used is determined by the composite\nrole's \"applicationrolesummationclass\" attribute.\n\n*   reinitialize($metaclass)\n\nLike \"Class::MOP::Package->reinitialize\", but doesn't allow passing a string with the\npackage name, as there is no real package for composite roles.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "See \"BUGS\" in Moose for details on reporting bugs.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "*   Stevan Little <stevan@cpan.org>\n\n*   Dave Rolsky <autarch@urth.org>\n\n*   Jesse Luehrs <doy@cpan.org>\n\n*   Shawn M Moore <sartak@cpan.org>\n\n*   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>\n\n*   Karen Etheridge <ether@cpan.org>\n\n*   Florian Ragwitz <rafl@debian.org>\n\n*   Hans Dieter Pearcey <hdp@cpan.org>\n\n*   Chris Prather <chris@prather.org>\n\n*   Matt S Trout <mstrout@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is copyright (c) 2006 by Infinity Interactive, Inc.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
            "subsections": []
        }
    },
    "summary": "Moose::Meta::Role::Composite - An object to represent the set of roles",
    "flags": [],
    "examples": [],
    "see_also": []
}