发明名称 METHOD FOR ACCESSING INTERNAL STATES OF OBJECTS IN OBJECT ORIENTED PROGRAMMING
摘要 A method provides an annotated language extension for the class of an object, the extension identifying an internal state that may be exposed via simple accessor methods. The extension could apply to an entire object type, or to a specific state within the object. Annotations that can be added to the extension include @Accessable, @Gettable and @Settable. In one embodiment, a method selectively accesses one or more object states. The method includes generating an annotated extension identifying each internal object state to be exposed for access, adding a usage annotation to the extension that defines an accessor method associated with each identified state, and operating a virtual machine to call the accessor method associated with a particular identified state. The particular state may then be accessed, as defined by the called accessor method.
申请公布号 US2008022260(A1) 申请公布日期 2008.01.24
申请号 US20060428593 申请日期 2006.07.05
申请人 KINDER STEPHEN JOSEPH;KNUTSON JAMES IRWIN 发明人 KINDER STEPHEN JOSEPH;KNUTSON JAMES IRWIN
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址
您可能感兴趣的专利