Claims
- 1. A dispatch table for a class that inherits from at least one superclass, the dispatch table Comprising:
a plurality of entries for a particular method, wherein each entry for the method is associated with a distinct accessibility.
- 2. The dispatch table of claim 1 wherein the distinct accessibility is one of a public accessibility, a private accessibility, a protected accessibility or a package private accessibility.
- 3. The dispatch table of claim 1 wherein a each entry of the plurality of entries for a particular method is assigned a priority.
- 4. The dispatch table of claim 1 further comprising a superinterface which the class inherits from.
- 5. The dispatch table of claim 4 wherein the dispatch table further comprises a miranda method.
- 6. The dispatch table of claim 1 wherein the dispatch table comprises a portion copied from the at least one superclass and the particular method in the first class also exists in the at least one superclass.
- 7. The dispatch table of claim 6 wherein the at least one superclass is a direct superclass.
- 8. The dispatch table of claim 6 further comprising a new entry in the dispatch table for the particular method when it is determined that the at least one superclass version of the particular method is not accessible.
- 9. The dispatch table of claim 6 further comprising an overwritten entry in the dispatch table for the particular method when it is determined that the ancestor superclass version of the particular method is accessible.
- 10. The dispatch table of claim 1 wherein the dispatch table is implemented by all object oriented language.
- 11. The dispatch table of claim 10 wherein the object oriented language is JAVA.
- 12. The dispatch table of claim 1 wherein the class belongs to a package.
- 13. A dispatch table for a class that inherits from at least one superclass, the dispatch table comprising:
a plurality of entries for a particular method, wherein each entry for the method is associated with a distinct accessibility; a superclass dispatch table copied from one of the at least one superclass; a dispatch table index for the particular method and a common accessibility when the particular method and common accessibility exist in both the class and the at least one superclass; and a dispatch table entry for each index assigned to the particular method and the common accessibility.
- 14. The dispatch table of claim 13 further comprising a priority for each entry assigned to each index.
- 15. The dispatch table of claim 14 wherein a primary priority is assigned to the entry corresponding to the particular method and the common accessibility corresponding to the accessibility of the class.
- 16. The method of claim 13 wherein the accessibility is one of a public accessibility, a private accessibility, a protected accessibility or a package private accessibility.
- 17. A dispatch table for a class that inherits from a direct superclass, the dispatch table comprising:
a plurality of entries for a particular method, wherein each entry for the method is associated with a distinct accessibility; a direct superclass dispatch table copied from the direct superclass; a new entry in the dispatch table for the particular method in the first class when the particular method also exists in the direct superclass and when the direct superclass of the version is not accessible; and an overwritten entry in the dispatch table for the particular method in the first class when the particular method also exists in the direct superclass and when the direct superclass of the version is accessible.
- 18. The dispatch table of claim 17 wherein the dispatch table is implemented by an object oriented language.
- 19. The dispatch table of claim 17 wherein the object oriented language is JAVA.
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application is a continuation of U.S. Patent Application entitled “Method and Apparatus for Dispatch Table Construction” by Gilad Bracha et al., filed on Apr. 26, 1999 (U.S. application Ser. No. 09/299,946), which is incorporated by reference herein.
Continuations (1)
|
Number |
Date |
Country |
Parent |
09299946 |
Apr 1999 |
US |
Child |
10103310 |
Mar 2002 |
US |