×

Incremental modification detector, and methods, systems, and apparatus for implementing the same

  • US 7,966,602 B1
  • Filed: 03/16/2006
  • Issued: 06/21/2011
  • Est. Priority Date: 03/16/2006
  • Status: Active Grant
First Claim
Patent Images

1. A method for selecting an annotation processor associated with an annotation for reprocessing, the annotation being included in a computer software source code, the method comprising:

  • capturing an annotation snapshot of an annotation within an object-oriented program, wherein the annotation is defined to associate an attribute with a declaration within the object-oriented program, and wherein the annotation snapshot represents a current state of only structural information of the annotation;

    calculating a hash value for the captured annotation snapshot such that the hash value is based on only structural information of the annotation, such that a change in non-structural information of the annotation does not cause a change in the hash value calculated for the captured annotation snapshot, wherein the hash value for the captured annotation snapshot is a sum of hash values of structural source members within the captured annotation snapshot, and wherein the hash value of a given structural source member is calculated as an exclusive-or of a first hash value of a name of the given structural source member with a second hash value of a value of the given structural source member;

    comparing the calculated hash value for the captured annotation snapshot with a hash value of a previous captured instance of the annotation snapshot; and

    marking the annotation processor associated with the annotation for reprocessing if the hash value for the captured annotation snapshot is different from the hash value of the previous captured instance of the annotation snapshot.

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