Automatic content completion of valid values for method argument variables
First Claim
1. A method for developing source code for a computer program;
- wherein the method comprises the steps of;
accessing a portion of source code through a code editor;
identifying code comprising a method argument, said method argument being of a type that has a defined range of values; and
inserting code into said method argument code, said inserted code defining allowable values for said method argument, said allowable values comprising a subset of said defined range of values for that type of method argument.
2 Assignments
0 Petitions
Accused Products
Abstract
The invention is directed to a method which derives from metadata definitions the allowable values for a method argument, where said allowable values are a subset or a restricted set of values from a defined range of values for that type of method argument. The subset of allowable values is then converted into a fragment of source code that can be used to initialise the argument variable with one of the allowable values when the method is invoked. The fragment of source code is inserted into the source code for that method argument using an editor tool. A system for implementing the method may comprise an integrated development environment (IDE) program.
-
Citations
18 Claims
-
1. A method for developing source code for a computer program;
- wherein the method comprises the steps of;
accessing a portion of source code through a code editor;
identifying code comprising a method argument, said method argument being of a type that has a defined range of values; and
inserting code into said method argument code, said inserted code defining allowable values for said method argument, said allowable values comprising a subset of said defined range of values for that type of method argument. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
- wherein the method comprises the steps of;
-
9. A system for developing source code for a computer program, wherein the system comprises:
-
an editor tool for accessing a portion of source code from a source code file;
means for identifying code comprising a method argument, said means being arranged to identify a method argument of a type that has a defined range of values; and
means for inserting code into said method argument code, said means being arranged to insert code defining allowable values for said method argument, said allowable values comprising a subset of said defined range of values for that type of method argument. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer for developing source code for a computer program, wherein the computer comprises:
-
a machine readable medium for storing program code executable by a processor; and
an editor tool for accessing a portion of source code from a source code file;
wherein the processor executes the stored machine code in order to identify code comprising a method argument, said processor being arranged to identify a method argument of a type that has a defined range of values and for inserting code into said method argument code, and to insert code defining allowable values for said method argument, said allowable values comprising a subset of said defined range of values for that type of method argument.
-
-
18. A machine readable medium comprising code executable by a processor of a computer for implementing the steps of:
-
accessing a portion of source code through a code editor;
identifying code comprising a method argument, said method argument being of a type that has a defined range of values; and
inserting code into said method argument code, said inserted code defining allowable values for said method argument, said allowable values comprising a subset of said defined range of values for that type of method argument.
-
Specification