Restricting class inheritance relationships
First Claim
1. One or more tangible non-transitory computer-readable storage media for storing computer-executable instructions executable by processing logic, the media storing one or more instructions for:
- defining by the computer a first class as a subclass of a superclass in the programming environment, wherein the subclass and the first class are handle classes;
defining by the computer a second class and a third class as non-handle classes in the programming environment;
preventing by the computer defining a subclass of the handle first class and the non-handle second class based on the first class being a handle class and the second class being a non-handle class in the programming environment;
defining by the computer a class attribute that identifies combinable classes;
identifying by the computer the non-handle third class as combinable with handle classes in the programming environment based on the class attribute; and
defining by the computer a subclass of the non-handle third class and the handle first class in the programming environment, wherein the non-handle third class and the handle first class are combinable based on the class attribute.
1 Assignment
0 Petitions
Accused Products
Abstract
In an embodiment, a system may include a processor having memory storing processor-executable instructions for a programming environment. The processor may perform the following instructions. A first, second, and third class may be defined. The second class may be defined as being compatible with the first class. The third class may be defined as being incompatible with the first class. A fourth class may be defined as a subclass of both the first class and the second class. A fifth class may be prevented from being a subclass of both the first class and the third class.
50 Citations
16 Claims
-
1. One or more tangible non-transitory computer-readable storage media for storing computer-executable instructions executable by processing logic, the media storing one or more instructions for:
-
defining by the computer a first class as a subclass of a superclass in the programming environment, wherein the subclass and the first class are handle classes; defining by the computer a second class and a third class as non-handle classes in the programming environment; preventing by the computer defining a subclass of the handle first class and the non-handle second class based on the first class being a handle class and the second class being a non-handle class in the programming environment; defining by the computer a class attribute that identifies combinable classes; identifying by the computer the non-handle third class as combinable with handle classes in the programming environment based on the class attribute; and defining by the computer a subclass of the non-handle third class and the handle first class in the programming environment, wherein the non-handle third class and the handle first class are combinable based on the class attribute. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A method for operating a programming environment using a computer, the method comprising:
-
defining by the computer a first class as a handle class; defining by the computer a second class and a third class as non-handle classes; defining by the computer a class attribute that identifies combinable classes; identifying, by the computer, the non-handle third class as combinable with handle classes and the non-handle second class as incompatible with handle classes, the identifying based on the class attribute; defining by the computer a subclass of the handle first class and the non-handle third class based on the class attribute; preventing by the computer defining a subclass of the handle first class and the non-handle second class based on the class attribute; defining by the computer a class list for the first class, the class list including at least one permitted subclass; inserting by the computer the non-handle second class into the class list; defining by the computer the non-handle second class as a subclass from the handle first class based on the class list for the first class; and preventing by the computer a fourth class from being a subclass from the handle first class, where the fourth class was not in the class list. - View Dependent Claims (14, 15)
-
-
16. A system comprising:
-
one or more processors having memory storing processor-executable instructions for a programming application; and the one or more processors to perform the following based on executing the instructions; defining a first class as a handle class; defining a second class and a third class as non-handle classes; defining a class attribute that identifies combinable classes, the class attribute identifying the non-handle second class as combinable with handle classes and the non-handle third class as incompatible with handle classes; defining a non-handle fourth class as a subclass of both the first class and the second class based on the class attribute of the second class; and preventing a non-handle fifth class from being a subclass of both the first class and the third class based on the class attribute of the third class.
-
Specification