×

Automatic customization of classes

  • US 8,132,150 B2
  • Filed: 02/20/2008
  • Issued: 03/06/2012
  • Est. Priority Date: 09/29/2003
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method on an information processing system for automatic replacement of object classes, comprising:

  • performing static analysis on a program containing a plurality of objects in order to determine constraints on transformations that can be applied and to detect unused functionality in one or more of the objects to be replaced;

    analyzing the plurality of objects to detect usage patterns of functionality in the one or more objects replaced;

    andgenerating customized classes based upon the static analysis and the usage patterns detected;

    wherein generating customized classes based upon the usage patterns detected includes;

    identifying a customizable container class C with superclass B;

    creating a class CustomC which contains methods and fields that are identical to those in class C, wherein if B is not customizable, then CustomC'"'"'s superclass is B, otherwise CustomC'"'"'s superclass is CustomB;

    introducing a type CT, and making both C and CustomC a subtype of CT and wherein type CT contains declarations of all methods in C that are not declared in any superclass of C; and

    introducing a type C

    , and making C

    a subclass of both C and CustomC, wherein type C

    contains no methods, and wherein CT and C

    are intermediate types not provided as output during the generating of custom classes; and

    determining at least one equivalence class E of declaration elements and expressions that must have a same type.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×