Structural identification of dynamically generated, pattern-instantiation, generated classes
First Claim
1. A non-transitory, computer-readable storage medium storing program instructions that when executed on a computing device cause the computing device to perform:
- identifying, in a class file, a class name comprising a structural description describing a new class identified by the class name, wherein the structural description comprises information identifying a generator function and one or more parameters for the generator function;
executing the generator function identified by the structural description, wherein said executing comprises providing the one or more parameters identified by the structural description as input to the generator function;
generating the new class based, at least in part, on results from said executing the generator function, wherein the new class is not loadable prior to said generating;
identifying another structural description, wherein the other structural description comprises information identifying another generator function and one or more other parameters for the other generator function; and
determining whether the structural description and the other structural description represent two equivalent classes based, at least in part, on a comparison between the structural description and the other structural description and a comparison between the one or more parameters and the one or more other parameters.
2 Assignments
0 Petitions
Accused Products
Abstract
Structural identification of dynamically generated, pattern-instantiation classes may be utilized using structural descriptions. Instead of describing classes only by name, and using that name to locate that class, a class may be referred to by a generator function and arguments to the generator function. A structural description may specify the generator function and the parameters. In addition, a structural description of a class may be used as a parameter to a generator function specified by another structural description. A structural description may be used similarly to a class name for virtually any situation in which a class name may be used. Classes may be compared using their structural descriptions. For example, two structural descriptions may be considered to be the same class if they specify the same generator function and parameters.
-
Citations
20 Claims
-
1. A non-transitory, computer-readable storage medium storing program instructions that when executed on a computing device cause the computing device to perform:
-
identifying, in a class file, a class name comprising a structural description describing a new class identified by the class name, wherein the structural description comprises information identifying a generator function and one or more parameters for the generator function; executing the generator function identified by the structural description, wherein said executing comprises providing the one or more parameters identified by the structural description as input to the generator function; generating the new class based, at least in part, on results from said executing the generator function, wherein the new class is not loadable prior to said generating; identifying another structural description, wherein the other structural description comprises information identifying another generator function and one or more other parameters for the other generator function; and determining whether the structural description and the other structural description represent two equivalent classes based, at least in part, on a comparison between the structural description and the other structural description and a comparison between the one or more parameters and the one or more other parameters. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method, comprising:
-
identifying, by a compiler or a platform independent, object oriented runtime environment implemented on one or more computing devices, a class name in a class file, wherein the class name comprises a structural description describing a new class identified by the class name, wherein the structural description comprises information identifying a generator function and one or more parameters for the generator function; executing, by the compiler or the platform independent, object oriented runtime environment, the generator function identified by the structural description, wherein said executing comprises providing the one or more parameters identified by the structural description as input to the generator function; generating, by the compiler or the platform independent, object oriented runtime environment, the new class, wherein said generating is based, at least in part, on results from said executing, and wherein the new class is not loadable prior to said generating; identifying, by the compiler or the platform independent, object oriented runtime environment, another structural description, wherein the other structural description comprises information identifying another generator function and one or more other parameters for the other generator function; and determining, by the compiler or the platform independent, object oriented runtime environment, whether the structural description and the other structural description represent two equivalent classes based, at least in part, on a comparison between the structural description and the other structural description and a comparison between the one or more parameters and the one or more other parameters. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A computing device, comprising:
-
a processor; and a memory comprising program instructions, that when executed on the processor cause the processor to; identify, in a class file, a class name comprising a structural description describing a new class identified by the class name, wherein the structural description comprises information identifying a generator function and one or more parameters for the generator function; execute the generator function identified by the structural description, wherein to execute the generator function the program instructions further cause the processor to provide the one or more parameters identified by the structural description as input to the generator function; generate, based at least in part on results from executing the generator function, the new class, wherein the new class is not loadable prior to said generating; identify another structural description, wherein the other structural description comprises information identifying another generator function and one or more other parameters for the other generator function; and determine whether the structural description and the other structural description represent two equivalent classes based, at least in part, on a comparison between the structural description and the other structural description and a comparison between the one or more parameters and the one or more other parameters. - View Dependent Claims (17, 18, 19, 20)
-
Specification