System and methods for implementing an explicit interface member in a computer programming language
First Claim
Patent Images
1. A method comprising:
- implementing in a class a first explicit interface having a first explicit interface member by explicitly specifying the relationship between the class and the first explicit interface member, the first explicit interface member being excluded from a public interface of the class;
implementing in the class a second explicit interface having a second explicit interface member, the second explicit interface member having the same signature as the first explicit interface member, the signature comprising a member name, a number of one or more parameters, and a type for each of the number of one or more parameters;
after implementing in the class the first and second explicit interfaces, compiling the class into computer-executable instructions along with a call in the class to the first explicit interface member and a call in the class to the second explicit interface member, the call comprising an identifier of an explicit interface, and a corresponding identifier of an explicit interface member;
in response to processing an instruction of the instructions corresponding to the call to the first explicit interface member, executing the call with the first explicit interface member to produce a first result;
storing the first result in a computer readable storage medium;
in response to processing a second instruction of the instructions corresponding to the call to the second explicit interface member, executing the call with the second explicit interface member to produce a second result; and
storing the second result in the computer readable storage medium.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and methods are provided for implementing an explicit interface member in connection with a computer programming language. Thus, a mechanism is provided that prevents conflicts between independently developed interfaces, enables privately implemented interface members and enables specific versions of generic interfaces that are free from conflict.
-
Citations
36 Claims
-
1. A method comprising:
-
implementing in a class a first explicit interface having a first explicit interface member by explicitly specifying the relationship between the class and the first explicit interface member, the first explicit interface member being excluded from a public interface of the class; implementing in the class a second explicit interface having a second explicit interface member, the second explicit interface member having the same signature as the first explicit interface member, the signature comprising a member name, a number of one or more parameters, and a type for each of the number of one or more parameters; after implementing in the class the first and second explicit interfaces, compiling the class into computer-executable instructions along with a call in the class to the first explicit interface member and a call in the class to the second explicit interface member, the call comprising an identifier of an explicit interface, and a corresponding identifier of an explicit interface member; in response to processing an instruction of the instructions corresponding to the call to the first explicit interface member, executing the call with the first explicit interface member to produce a first result; storing the first result in a computer readable storage medium; in response to processing a second instruction of the instructions corresponding to the call to the second explicit interface member, executing the call with the second explicit interface member to produce a second result; and storing the second result in the computer readable storage medium. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer readable storage medium including processor-executable instructions, the processor-executable instructions generated from a plurality of modules written in an object-oriented programming language, the instructions when executed on the processor, cause operations comprising:
-
implementing in a class a first explicit interface having a first explicit interface member by explicityly specifying the relationship between the class and the first explicit interface member, the first explicit interface member mechanism being excluded from a public interface of the class; implementing in the class a second explicit interface having a second explicit interface member, the second explicit interface member having the same signature as the first explicit interface member, the signature comprising a member name, a number of one or more parameters, and a type for each of the number of one or more parameters; after implementing in the class the first and second explicit interfaces, compiling the class into computer-executable instructions along with a call in the class to the first explicit interface member and a call in the class to the second explicit interface member, the call comprising an identifier of an explicit interface, and a corresponding identifier of an explicit interface member; in response to processing a first instruction of the instructions corresponding to the call to the first explicit interface member, executing the call with the first explicit interface member to produce a first result; storing the first result in a computer readable storage medium; in response to processing a second instruction of the instructions corresponding to the call to the second explicit interface member, executing the call with the second explicit interface member to produce a second result; and storing the second result in the computer readable storage medium. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. A system for generating an object, comprising:
-
a processor; and a memory communicatively coupled to the processor when the system is operational, the memory bearing processor-executable instructions that, when executed on the processor, cause; implementing in a class a first explicit interface having a first explicit interface member by explicitly specifying the relationship between the class and the first explicit interface member, the first explicit interface member being excluded from a public interface of the class; implementing in the class a second explicit interface having a second explicit interface member, the second explicit interface member having the same signature as the first explicit interface member, the signature comprising a member name, a number of one or more parameters, and a type for each of the number of one or more parameters; after implementing in the class the first and second explicit interfaces, compiling the class into computer-executable instructions along with a call in the class to the first explicit interface member and a call in the class to the second explicit interface member, the call comprising an identifier of an explicit interface, and a corresponding identifier of an explicit interface member; in response to processing a first instruction of the instructions corresponding to the call to the first explicit interface member, executing the call with the first explicit interface member to produce a first result; storing the first result in a computer readable storage medium; in response to processing a second instruction of the instructions corresponding to the call to the second explicit interface member, executing the call with the second explicit interface member to produce a second result; and storing the second result in the computer readable storage medium. - View Dependent Claims (26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36)
-
Specification