1ExtUtils::XSpp::Node::AUrsgeurmeCnotn(t3r)ibuted Perl DoEcxutmUetnitlast:i:oXnSpp::Node::Argument(3)
2
3
4
6 ExtUtils::XSpp::Node::Argument - Node representing a method/function
7 argument
8
10 An ExtUtils::XSpp::Node subclass representing a single function or
11 method argument such as
12
13 int foo = 0.
14
15 which would translate to an "ExtUtils::XSpp::Node::Argument" which has
16 its "type" set to "int", its "name" set to "foo" and its "default" set
17 to 0..
18
20 new
21 Creates a new "ExtUtils::XSpp::Node::Argument".
22
23 Named parameters: "type" indicating the C++ argument type, "name"
24 indicating the variable name, and optionally "default" indicating the
25 default value of the argument.
26
27 uses_length
28 Returns true if the argument uses the XS length feature, false
29 otherwise.
30
31 implementation_name
32 Returns the same as the "name" method unless the argument is of the
33 "%length(something)" variant. In that case, "implementation_name"
34 returns a munged version of the name that addresses the name mangling
35 done by xsubpp: "XSauto_length_of_somthing".
36
37 fix_name_in_code
38 Given a code string, replaces any occurrances of the name of this
39 "Argument" with its implementation name. If the implementation name is
40 the same as the name, which is the most likely case, the code remains
41 completely untouched.
42
43 Returns the potentially modified code.
44
46 type
47 Returns the type of the argument.
48
49 name
50 Returns the variable name of the argument variable.
51
52 default
53 Returns the default for the function parameter if any.
54
55 has_default
56 Returns whether there is a default for the function parameter.
57
58 function
59 Returns a reference to the containing function/method.
60
61 index
62 Returns the 0-based index of the argument in the argument list.
63
64
65
66perl v5.32.1 2021-01-27 ExtUtils::XSpp::Node::Argument(3)