IP Library Patent Application 11499886
Patent Application
App. No. 11/499,886

Stepwise source code refactoring

Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US None
App. No.
11/499,886
Abstract

With stepwise source code refactoring or rewriting, preconditions and resulting edits are divided into categories that can be applied to the source code after only some parsing and analysis work has been completed.

Claims (55)

1 . A method, comprising:

defining one or more preconditions for a source code refactoring transformation;

automatically applying the refactoring transformation to source code, including testing of at least one precondition; and

providing a user with results after the at least one precondition is tested.

2 . The method of claim 1 , further comprising:

defining a category of preconditions; and

providing a user with results after at least some of the preconditions in the category are tested.

3 . The method of claim 2 , further comprising:

defining the category to include preconditions to be tested prior to parsing of the source code.

4 . The method of claim 2 , further comprising:

defining the category to include preconditions to be tested after a file containing the source code is parsed.

5 . The method of claim 2 , further comprising:

defining the category to include preconditions to be tested after parsing is complete.

6 . The method of claim 1 , further comprising:

defining a category of edits; and

providing a user with results after the category of edits is performed.

7 . The method of claim 6 , further comprising:

defining the category to include edits to perform after a file containing the source code is parsed.

8 . The method of claim 6 , further comprising:

defining the category to include edits to perform after all parsing is complete.

9 . The method of claim 1 , where providing results further comprises:

providing the user with a list of errors.

10 . The method of claim 1 , where providing results further comprises:

providing the user with a warning.

11 . The method of claim 1 , further comprising:

providing the user with visual feedback relating to the progress of the refactoring transformation.

12 . The method of claim 1 , further comprising:

providing the user with a list of source code files to be transformed;

providing the user with a control mechanism for allowing the user to modify the order in which the source code files are to be transformed;

receiving input from the user specifying a new order; and

responsive to the input, modifying the order in which the source code files are to be transformed in accordance with the input.

13 . The method of claim 1 , further comprising:

providing the user with a display including a first portion and a second portion, where the first portion is configured for displaying source code prior to applying the refactoring transformation and the second portion is configured for displaying refactored source code.

14 . The method of claim 1 , further comprising:

providing a set of identifiers for identifying particular source code files out of a plurality of source code files for parsing.

15 . A method, comprising:

defining one or more preconditions for source code re-writing;

automatically re-writing the source code, including testing at least one precondition; and

providing a user with results after the at least one precondition is tested.

16 . A system, comprising:

a user interface manager configured for providing a user interface for presentation on a device, the user interface including one or more user interface elements for receiving input specifying a refactoring transformation and source code that will be acted upon by the refactoring transformation; and

a refactoring transformation engine coupled to the user interface manager and configured for refactoring the specified source code using the specified refactoring transformation, including testing for at least one precondition, the refactoring transformation engine further configured to provide results for presentation in the user interface after the at least one precondition is tested.

17 . A computer-readable medium having instructions stored thereon, which, when executed by a processor, causes the processor to perform the operations of:

defining one or more categories of one or more preconditions for a source code refactoring transformation;

automatically applying the refactoring transformation to source code, including testing of at least one precondition in at least one category; and

providing a user with results after the at least one precondition is tested.

18 . The computer-readable medium of claim 17 , further comprising:

defining a category of edits; and

providing a user with results after the category of edits is performed.

19 . The computer-readable medium of claim 17 , further comprising:

providing the user with visual feedback relating to the progress of the refactoring transformation.

20 . A system, comprising:

means for defining one or more categories of one or more preconditions for a source code refactoring transformation;

means for automatically applying the refactoring transformation to source code, including testing of at least one precondition in at least one category; and

means for providing a user with results after the at least one precondition is tested.

Assignments (2)
CHANGE OF NAME Recorded Apr 10, 2007
From: APPLE COMPUTER, INC.
To: APPLE INC.
Reel/Frame 019142/0442 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 15, 2006
From: BOWDIDGE, ROBERT; PAYNE, DAVID; WENDKER, ANDREAS; NAROFF, STEVE; PONTIOUS, ANDREW; GOLDSTEIN, THEODORE C.
To: APPLE COMPUTER, INC.
Reel/Frame 018641/0364 →