Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

extutils::xspp::node::class(3pm) [debian man page]

ExtUtils::XSpp::Node::Class(3pm)			User Contributed Perl Documentation			  ExtUtils::XSpp::Node::Class(3pm)

NAME
ExtUtils::XSpp::Node::Class - A class (inherits from Package). DESCRIPTION
An ExtUtils::XSpp::Node::Package sub-class representing a class declaration such as %name{PerlClassName} class MyClass : public BaseClass { ... } The Perl-level class name and the C++ class name attributes are inherited from the ExtUtils::XSpp::Node::Package class. METHODS
new Creates a new "ExtUtils::XSpp::Node::Class" object. Optional named parameters: "methods" can be a reference to an array of methods (ExtUtils::XSpp::Node::Method) of the class, and "base_classes", a reference to an array of base classes ("ExtUtils::XSpp::Node::Class" objects). "catch" may be a list of exception names that all methods in the class handle. add_methods Adds new methods to the class. By default, their scope is "public". Takes arbitrary number of arguments which are processed in order. If an argument is an ExtUtils::XSpp::Node::Access, the current method scope is changed accordingly for all following methods. If an argument is an ExtUtils::XSpp::Node::Method it is added to the list of methods of the class. The method's class name is set to the current class and its scope is set to the current method scope. ACCESSORS
methods Returns the internal reference to the array of methods in this class. Each of the methods is an "ExtUtils::XSpp::Node::Method" base_classes Returns the internal reference to the array of base classes of this class. If the base classes have been defined in the same file, these are the complete class objects including method definitions, otherwise only the C++ and Perl name of the class are available as attributes. perl v5.14.2 2011-12-20 ExtUtils::XSpp::Node::Class(3pm)

Check Out this Related Man Page

ExtUtils::XSpp::Node::Argument(3pm)			User Contributed Perl Documentation		       ExtUtils::XSpp::Node::Argument(3pm)

NAME
ExtUtils::XSpp::Node::Argument - Node representing a method/function argument DESCRIPTION
An ExtUtils::XSpp::Node subclass representing a single function or method argument such as int foo = 0. which would translate to an "ExtUtils::XSpp::Node::Argument" which has its "type" set to "int", its "name" set to "foo" and its "default" set to 0.. METHODS
new Creates a new "ExtUtils::XSpp::Node::Argument". Named parameters: "type" indicating the C++ argument type, "name" indicating the variable name, and optionally "default" indicating the default value of the argument. uses_length Returns true if the argument uses the XS length feature, false otherwise. implementation_name Returns the same as the "name" method unless the argument is of the "%length(something)" variant. In that case, "implementation_name" returns a munged version of the name that addresses the name mangling done by xsubpp: "XSauto_length_of_somthing". fix_name_in_code Given a code string, replaces any occurrances of the name of this "Argument" with its implementation name. If the implementation name is the same as the name, which is the most likely case, the code remains completely untouched. Returns the potentially modified code. ACCESSORS
type Returns the type of the argument. name Returns the variable name of the argument variable. default Returns the default for the function parameter if any. has_default Returns whether there is a default for the function parameter. perl v5.14.2 2011-12-20 ExtUtils::XSpp::Node::Argument(3pm)
Man Page