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


Manual Reference Pages  -  PARSE::METHOD::SIGNATURES::PARAM (3)

.ds Aq ’

NAME

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

CONTENTS

ATTRIBUTES

All attributes of this class are read-only.

    required

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

    sigil

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

    type_constraints

<B>Type:B> Parse::Method::Signatures::TypeConstraint

<B>Predicate:B> 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.

    default_value

<B>Type:B> Str

<B>Predicate:B> 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’.

    constraints

<B>Type:B> ArrayRef[Str]

<B>Predicate:B> has_constraints

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

    param_traits

<B>Type:B> ArrayRef[ Tupple[Str,Str] ]

<B>Predicate:B> has_traits

Traits that this parameter is declared to have. For instance



 $foo does coerce



would have a trait of



 [does, coerce]



METHODS

    to_string

    meta_type_constraint

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;



SEE ALSO

Parse::Method::Signatures.

AUTHORS

Ash Berlin <ash@cpan.org>.

Florian Ragwitz <rafl@debian.org>.

LICENSE

Licensed under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PARSE::METHOD::SIGNATURES::PARAM (3) 2013-02-28

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