role Metamodel::ParametricRoleGroupHOW
Represents a group of roles with different parameterizations
does Metamodel::Namingdoes Metamodel::Documentingdoes Metamodel::Stashingdoes Metamodel::TypePretensedoes Metamodel::RolePunningdoes Metamodel::BoolificationProtocol
A ParametricRoleGroupHOW
groups a set of ParametricRoleHOW
, every one of them representing a single role declaration with their own parameter sets.
([::T] ).HOW.say; # OUTPUT: «Perl6::Metamodel::ParametricRoleHOW.new»Zape.HOW.say ; # OUTPUT: «Perl6::Metamodel::ParametricRoleGroupHOW.new»
ParametricRoleHOW
s need to be added to this kind of group:
my \zape := Metamodel::ParametricRoleGroupHOW.new_type( name => "zape");my \zipi := Metamodel::ParametricRoleHOW.new_type( name => "zipi", group => zape);say zipi.HOW; # OUTPUT: «Perl6::Metamodel::ParametricRoleHOW.new»
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
Routines supplied by role Metamodel::Naming
Metamodel::ParametricRoleGroupHOW does role Metamodel::Naming, which provides the following routines:
(Metamodel::Naming) method name
method name()
Returns the name of the metaobject, if any.
say 42.^name; # OUTPUT: «Int»
(Metamodel::Naming) method set_name
method set_name(, )
Sets the new name of the metaobject.