GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Parse::Method::Signatures::Param(3) User Contributed Perl Documentation Parse::Method::Signatures::Param(3)

Parse::Method::Signatures::Param - a parsed parameter from a signature

All attributes of this class are read-only.

Is this parameter required (true) or optional (false)?

The effective sigil ('$', '@' or '%') of this parameter.

Type: Parse::Method::Signatures::TypeConstraint

Predicate: has_type_constraints

Representation of the type constraint for this parameter. Most commonly you will just call "meta_type_constraint" and not access this attribute directly.

Type: Str

Predicate: has_default_value

A string that should be eval'd or injected to get the default value for this parameter. For example:

 $name = 'bar'

Would give a default_value of "'bar'".

Type: ArrayRef[Str]

Predicate: has_constraints

"where" constraints for this type. Each member of the array a the string (including enclosing braces) of the where constraint block.

Type: ArrayRef[ Tupple[Str,Str] ]

Predicate: has_traits

Traits that this parameter is declared to have. For instance

 $foo does coerce

would have a trait of

 ['does', 'coerce']

Get the Moose::Meta::TypeConstraint for this parameter. Check first that the type has a type constraint:

 $tc = $param->meta_type_constraint if $param->has_type_constraints;

Parse::Method::Signatures.

Ash Berlin <ash@cpan.org>.

Florian Ragwitz <rafl@debian.org>.

Licensed under the same terms as Perl itself.
2017-04-01 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.