CA2480791A1 - System and method for object oriented interface checking and method dispatching - Google Patents

System and method for object oriented interface checking and method dispatching Download PDF

Info

Publication number
CA2480791A1
CA2480791A1 CA002480791A CA2480791A CA2480791A1 CA 2480791 A1 CA2480791 A1 CA 2480791A1 CA 002480791 A CA002480791 A CA 002480791A CA 2480791 A CA2480791 A CA 2480791A CA 2480791 A1 CA2480791 A1 CA 2480791A1
Authority
CA
Canada
Prior art keywords
interface
class
runtime
ordinals
dispatch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CA002480791A
Other languages
French (fr)
Other versions
CA2480791C (en
Inventor
Anthony F. Scian
David P. Yach
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BlackBerry Ltd
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Publication of CA2480791A1 publication Critical patent/CA2480791A1/en
Application granted granted Critical
Publication of CA2480791C publication Critical patent/CA2480791C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/4492Inheritance

Abstract

Method and system for interface checking and interface method dispatching for wireless devices. Relationships between classes and object~oriented interfaces are analyzed and certain properties are exploited for use in performing interface checking and/or interface method dispatching.

Claims (10)

1. A method for handling runtime objects operating on a wireless device, wherein the runtime objects are instantiations of classes, wherein a class can implement an object-oriented interface having methods, comprising the steps of:
assigning, for a class, an interface ordinal to an interface based upon a relationship existing between the class and the interface;
associating with at least one interface ordinal a reference that points to an interface implemented by a class;
assigning, for a class, a method ordinal to an interface's' method based upon a relationship existing between the class and the method;
associating with at least one method ordinal a reference that points to a method of an interface;
wherein an assigned interface ordinal and an associated reference are to be used to check whether a runtime object operating on the wireless device is an instantiation of an interface;
wherein an assigned method ordinal and an associated method reference are to be used to perform a dispatch of an interface's method implemented by the runtime object.
2. The method of claim 1, wherein a direct interface check is performed to verify if the runtime object can be cast into the type of an interface by performing steps comprising:
providing class data for the runtime object in order to determine what class type provided the constructor for the runtime object;
using the interface ordinals association with the interface references to check whether the runtime object is an instance of an interface.
3. The method of claim 1, wherein a dispatch is performed by performing steps comprising:
providing class data for the runtime object in order to determine what class type provided the constructor for the runtime object;
using the method ordinals association with the method references to directly dispatch the method.
4. The method of claim 1, wherein a compiler system generates check and dispatch information based upon an input set of classes and set of interfaces, wherein the check and dispatch information includes the interface ordinals, the interface references associated with the interface ordinals, the method ordinals, and the method references associated with the method ordinals, wherein the wireless device includes runtime storage to store on the wireless device the assigned interface ordinals and their associated interface references,.
5. The method of claim 4, wherein the runtime storage stores on the wireless device the assigned method ordinals and their associated method references.
6. The method of claim 5, wherein the runtime storage comprises runtime context which includes objects for which a direct check is performed and includes method calls on objects for which a direct dispatch is performed.
7. The method of claim 6, wherein the wireless device includes a runtime processor and operates within a Java-based computer environment, wherein an assigned interface ordinal and an associated reference are to be used by the runtime processor to check whether a runtime object operating on the wireless device is an instantiation of an interface;
wherein an assigned method ordinal and an associated method reference are to be used by the runtime processor to perform a dispatch of an interface's method implemented by the runtime object.
8. The method of claim 7, wherein a method call on the wireless device is used as a trigger to invoke a direct check and direct dispatch using the check and dispatch information.
9. A system for handling runtime objects operating on a wireless device, wherein the runtime objects are instantiations of classes, wherein a class can implement an object-oriented interface having methods, comprising:
class interface check data structure, wherein the class interface check data structure stores associations between interface ordinals and references to interfaces, wherein the ordinals were assigned to interfaces such that a first constraint is substantially satisfied, wherein the first constraint provides that two interfaces are assigned different interface ordinals if there exists a class that implements both of the interfaces;
class interface dispatch data structure, wherein the class interface dispatch data structure stores associations between method ordinals and references to methods, wherein the ordinals were assigned to methods such that a second constraint was substantially satisfied, wherein the second constraint provides that two methods have different method ordinals if there exists a class that implements both of the methods;
wherein the class interface check data structure is to be used to check whether a runtime object operating on the wireless device is an instantiation of an interface;
wherein the class interface dispatch data structure is to be used to perform a dispatch of an interface's method implemented by the runtime object.
10. The system of claim 9 further comprising:
a compiler system that assigns the ordinals to interfaces such that the first constraint is substantially satisfied, wherein the compiler assigns the ordinals to methods such that the second constraint is substantially satisfied.
CA2480791A 2002-03-29 2003-03-28 System and method for object oriented interface checking and method dispatching Expired - Lifetime CA2480791C (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US36813802P 2002-03-29 2002-03-29
US60/368,138 2002-03-29
PCT/CA2003/000453 WO2003083653A2 (en) 2002-03-29 2003-03-28 System and method for object oriented interface checking and method dispatching

Publications (2)

Publication Number Publication Date
CA2480791A1 true CA2480791A1 (en) 2003-10-09
CA2480791C CA2480791C (en) 2011-05-03

Family

ID=28675448

Family Applications (1)

Application Number Title Priority Date Filing Date
CA2480791A Expired - Lifetime CA2480791C (en) 2002-03-29 2003-03-28 System and method for object oriented interface checking and method dispatching

Country Status (5)

Country Link
US (1) US7478409B2 (en)
EP (1) EP1490760A2 (en)
AU (1) AU2003213927A1 (en)
CA (1) CA2480791C (en)
WO (1) WO2003083653A2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7587421B2 (en) * 2004-01-30 2009-09-08 International Business Machines Corporation Method, system, and article of manufacture for generating device specific requests
US8793671B2 (en) * 2008-06-28 2014-07-29 Microsoft Corporation Interface optimization in a closed system
US8261295B1 (en) * 2011-03-16 2012-09-04 Google Inc. High-level language for specifying configurations of cloud-based deployments
US8910127B2 (en) * 2012-09-20 2014-12-09 Identify Software Ltd. (IL) Estimating indirect interface implementation before load time based on directly implemented methods
US9632755B1 (en) 2015-10-06 2017-04-25 International Business Machines Corporation Interface method resolution in object oriented programming models

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5889995A (en) * 1996-05-20 1999-03-30 Sun Microsystems, Inc. Using constant selectors for method identification
GB9825102D0 (en) * 1998-11-16 1999-01-13 Insignia Solutions Plc Computer system
US6877163B1 (en) * 1999-06-14 2005-04-05 Sun Microsystems, Inc. Method and system for dynamic proxy classes
WO2000079386A1 (en) 1999-06-22 2000-12-28 Motorola, Inc. Method for providing an optimized memory allocation for java functions
US6651248B1 (en) * 2000-09-01 2003-11-18 International Business Machines Corporation Method and apparatus for efficient interface method dispatch
US6941550B1 (en) * 2001-07-09 2005-09-06 Microsoft Corporation Interface invoke mechanism

Also Published As

Publication number Publication date
CA2480791C (en) 2011-05-03
WO2003083653A3 (en) 2004-03-04
EP1490760A2 (en) 2004-12-29
US20050132007A1 (en) 2005-06-16
WO2003083653A2 (en) 2003-10-09
AU2003213927A1 (en) 2003-10-13
US7478409B2 (en) 2009-01-13

Similar Documents

Publication Publication Date Title
US20050177581A1 (en) Systems and methods for supporting inheritance for user-defined types
US8370531B1 (en) Method and system for accessing objects defined within an external object-oriented environment
EP1603057A2 (en) Systems and methods for the implementation of unordered and ordered collections in data store
WO2012088109A3 (en) Providing a security boundary
AU2003264264A1 (en) Electronic data structure for controlling access to data objects using locks
US20120331445A1 (en) Unchanged Object Management
US7076785B2 (en) Lazy loading with code conversion
WO2001033349A3 (en) Architectures for netcentric computing systems
CN103902634A (en) Method for achieving automatic binding between View assembly and database fields through Adapter
WO2001067236A3 (en) System and method for preloading classes in a data processing device that does not have a virtual memory manager
US8667507B2 (en) Deep copying objects in a collocated environment
CN108647061A (en) Call method, device and the computing device of system hidden method
US6941550B1 (en) Interface invoke mechanism
CA2480791A1 (en) System and method for object oriented interface checking and method dispatching
CA2485087A1 (en) Simplified deallocation of memory for programming objects
WO2006038132A2 (en) Parsing and handling events from .net objects
EP1557756A3 (en) Deterministic rule-based dispatch of objects to code for processing objects
JP4728675B2 (en) System and method for building unordered and ordered collections in a data store
EP2756396A1 (en) Simulation of static members and parameterized constructors on an interface-based api
KR101440615B1 (en) Systems and methods for supporting inheritance for user-defined types
GB2392280A (en) Identifying references to objects during bytecode verification
Belblidia et al. A Dynamic Operational Semantics for JVML.
Cifuentes et al. Internal Deployment of the Parfait Static Code Analysis Tool at Oracle: (Invited Talk)
Ege et al. Using Java to add" stored procedures" to databases
Long et al. A proposed approach to semantic integration between robot and agent systems

Legal Events

Date Code Title Description
EEER Examination request
MKEX Expiry

Effective date: 20230328