Invention Grant
US08141035B2 Method for accessing internal states of objects in object oriented programming
失效
用于访问面向对象编程中对象的内部状态的方法
- Patent Title: Method for accessing internal states of objects in object oriented programming
- Patent Title (中): 用于访问面向对象编程中对象的内部状态的方法
-
Application No.: US11428593Application Date: 2006-07-05
-
Publication No.: US08141035B2Publication Date: 2012-03-20
- Inventor: Stephen Joseph Kinder , James Irwin Knutson
- Applicant: Stephen Joseph Kinder , James Irwin Knutson
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Yee & Associates, P.C.
- Agent David A. Mims, Jr.
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
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.
Public/Granted literature
- US20080022260A1 METHOD FOR ACCESSING INTERNAL STATES OF OBJECTS IN OBJECT ORIENTED PROGRAMMING Public/Granted day:2008-01-24
Information query