|
Aliases are often used for frequently accessed methods or to map a method expected to exist to an existing method serving the expected functionality.
Expected methods can be called without changes in either the object or the external model. Internal accesses still happen by accessing the real method directly while external ones are redirected via the alias.
Methods with parameters may be defined by creating a new Pattern using MethodAlias as SubPattern or by giving the whole parameters with alias and realName . The latter will result in a very powerful way for mapping methods as, for example, the order of parameters may be different.
Pattern MethodAlias Category redirection ObjectType use target SingleMethod implement alias SingleMethod use realName End