role Metamodel::ParametricRoleGroupHOW

Represents a group of roles with different parameterizations

class Metamodel::ParametricRoleGroupHOW
    does Metamodel::Naming
    does Metamodel::Documenting
    does Metamodel::Stashing
    does Metamodel::TypePretense
    does Metamodel::RolePunning
    does Metamodel::BoolificationProtocol {}

A ParametricRoleGroupHOW groups a set of ParametricRoleHOW, every one of them representing a single role declaration with their own parameter sets.

(role Zape[::T{}).HOW.say# OUTPUT: «␤» 
Zape.HOW.say ; # OUTPUT: «␤» 

ParametricRoleHOWs need to be added to this kind of group:

my \zape := Metamodel::ParametricRoleGroupHOW.new_typename => "zape");
my \zipi := Metamodel::ParametricRoleHOW.new_typename => "zipi"group => zape);
say zipi.HOW# OUTPUT: «␤» 

Note: As most of the Metamodel classes, this class is here mainly for illustration purposes and it's not intended for the final user to instantiate.

Type Graph

Type relations for Metamodel::ParametricRoleGroupHOW
perl6-type-graph Metamodel::ParametricRoleGroupHOW Metamodel::ParametricRoleGroupHOW Any Any Metamodel::ParametricRoleGroupHOW->Any Metamodel::Naming Metamodel::Naming Metamodel::ParametricRoleGroupHOW->Metamodel::Naming Metamodel::Stashing Metamodel::Stashing Metamodel::ParametricRoleGroupHOW->Metamodel::Stashing Metamodel::TypePretense Metamodel::TypePretense Metamodel::ParametricRoleGroupHOW->Metamodel::TypePretense Metamodel::RolePunning Metamodel::RolePunning Metamodel::ParametricRoleGroupHOW->Metamodel::RolePunning Metamodel::BoolificationProtocol Metamodel::BoolificationProtocol Metamodel::ParametricRoleGroupHOW->Metamodel::BoolificationProtocol Mu Mu Any->Mu

Expand above chart

Routines supplied by role Metamodel::Naming

Metamodel::ParametricRoleGroupHOW does role Metamodel::Naming, which provides the following routines:

(Metamodel::Naming) method name

method name($type)

Returns the name of the meta object, if any.

say 42.^name;       # OUTPUT: «Int␤» 

(Metamodel::Naming) method set_name

method set_name($type$new_name)

Sets the new name of the meta object.