{
    "mode": "perldoc",
    "parameter": "Class::MOP::Method::Constructor",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Class%3A%3AMOP%3A%3AMethod%3A%3AConstructor/json",
    "generated": "2026-06-15T21:17:40Z",
    "synopsis": "use Class::MOP::Method::Constructor;\nmy $constructor = Class::MOP::Method::Constructor->new(\nmetaclass => $metaclass,\noptions   => {\ndebug => 1, # this is all for now\n},\n);\n# calling the constructor ...\n$constructor->body->execute($metaclass->name, %params);",
    "sections": {
        "NAME": {
            "content": "Class::MOP::Method::Constructor - Method Meta Object for constructors\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.2200\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Class::MOP::Method::Constructor;\n\nmy $constructor = Class::MOP::Method::Constructor->new(\nmetaclass => $metaclass,\noptions   => {\ndebug => 1, # this is all for now\n},\n);\n\n# calling the constructor ...\n$constructor->body->execute($metaclass->name, %params);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a subclass of Class::MOP::Method which generates constructor methods.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Class::MOP::Method::Constructor->new(%options)\nThis creates a new constructor object. It accepts a hash reference of options.\n\n*       metaclass\n\nThis should be a Class::MOP::Class object. It is required.\n\n*       name\n\nThe method name (without a package name). This is required.\n\n*       packagename\n\nThe package name for the method. This is required.\n\n*       isinline\n\nThis indicates whether or not the constructor should be inlined. This defaults to\nfalse.\n\n$metamethod->isinline\nReturns a boolean indicating whether or not the constructor is inlined.\n\n$metamethod->associatedmetaclass\nThis returns the Class::MOP::Class object for the method.\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": "Class::MOP::Method::Constructor - Method Meta Object for constructors",
    "flags": [],
    "examples": [],
    "see_also": []
}