1ExtUtils::XSpp::Node::CUlsaesrs(C3o)ntributed Perl DocumEexnttUattiilosn::XSpp::Node::Class(3)
2
3
4

NAME

6       ExtUtils::XSpp::Node::Class - A class (inherits from Package).
7

DESCRIPTION

9       An ExtUtils::XSpp::Node::Package sub-class representing a class
10       declaration such as
11
12         %name{PerlClassName} class MyClass : public BaseClass
13         {
14           ...
15         }
16
17       The Perl-level class name and the C++ class name attributes are
18       inherited from the ExtUtils::XSpp::Node::Package class.
19

METHODS

21   new
22       Creates a new "ExtUtils::XSpp::Node::Class" object.
23
24       Optional named parameters: "methods" can be a reference to an array of
25       methods (ExtUtils::XSpp::Node::Method) of the class, and
26       "base_classes", a reference to an array of base classes
27       ("ExtUtils::XSpp::Node::Class" objects).  "catch" may be a list of
28       exception names that all methods in the class handle.
29
30   add_methods
31       Adds new methods to the class. By default, their scope is "public".
32       Takes arbitrary number of arguments which are processed in order.
33
34       If an argument is an ExtUtils::XSpp::Node::Access, the current method
35       scope is changed accordingly for all following methods.
36
37       If an argument is an ExtUtils::XSpp::Node::Method it is added to the
38       list of methods of the class.  The method's class name is set to the
39       current class and its scope is set to the current method scope.
40

ACCESSORS

42   methods
43       Returns the internal reference to the array of methods in this class.
44       Each of the methods is an "ExtUtils::XSpp::Node::Method"
45
46   base_classes
47       Returns the internal reference to the array of base classes of this
48       class.
49
50       If the base classes have been defined in the same file, these are the
51       complete class objects including method definitions, otherwise only the
52       C++ and Perl name of the class are available as attributes.
53
54
55
56perl v5.36.0                      2023-01-20    ExtUtils::XSpp::Node::Class(3)
Impressum