C# Class Rakudo.Metamodel.REPRRegistry

This is our central registry of representations.
Exibir arquivo Open project: jnthn/6model

Public Methods

Method Description
get_REPR_by_id ( int ID ) : Representation

Gets a representation by ID.

get_REPR_by_name ( string Name ) : Representation

Gets a representation by name.

register_REPR ( string Name, Representation REPR ) : int

Adds a representation to the registry and returns its registered ID.

Method Details

get_REPR_by_id() public static method

Gets a representation by ID.
public static get_REPR_by_id ( int ID ) : Representation
ID int
return Representation

get_REPR_by_name() public static method

Gets a representation by name.
public static get_REPR_by_name ( string Name ) : Representation
Name string
return Representation

register_REPR() public static method

Adds a representation to the registry and returns its registered ID.
public static register_REPR ( string Name, Representation REPR ) : int
Name string
REPR Representation
return int