发明名称 Object-oriented enumerated type facility
摘要 One embodiment of the present invention provides a system that facilitates use of an object-oriented enumerated type within a computer program. During operation, the system receives source code for the computer program, wherein the source code contains a declaration for an enumerated type. This declaration specifies a fixed number of enumeration constants that comprise the enumerated type. Next, the system defines the enumerated type using a class defined within an object-oriented programming language, wherein the class includes a constant for each enumeration constant specified in the declaration. If the declaration additionally contains one or more method declarations, these methods are present on the defined class.
申请公布号 US7263687(B2) 申请公布日期 2007.08.28
申请号 US20020237941 申请日期 2002.09.09
申请人 SUN MICROSYSTEMS, INC. 发明人 BLOCH JOSHUA J.;GAFTER NEAL M.
分类号 G06F9/44;G06F9/45 主分类号 G06F9/44
代理机构 代理人
主权项
地址