Patent ID: 9183001
Filing Date: 2015-11-10
Classification: G06F

Abstract:
1. At a computer system including at least one processor and a memory, a computer-implemented method for providing a simulation of a type-level construct on an interface instance, the method comprising: instantiating an interface instance comprising an instance object and one or more instance members; instantiating a separate typed object which is configured to maintain one or more simulated type-level parameterized constructors, the simulated type-level parameterized constructors having associated parameters; scanning a plurality of interface instances to identify an interface instance that provides a method having a specified set of parameters, the identified method being matched to the parameters of the simulated type-level parameterized constructors to determine an appropriate interface instance to dispatch method calls against; associating the instantiated interface instance with the separate typed object, wherein the separate typed object is configured to route method invocations for the identified method from the interface instance to one or more simulated type-level parameterized constructors and static members of the type; and simulating a type-level parameterized constructor by redirecting attempts to execute the static members to the static members' associated interface instance, the redirection allowing a runtime to simulate the presence of static members over the top of the interface instance associated with the separate typed object by at least: