# US 2003/0079199 A1 · Method and apparatus for providing programming assistance

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2003/0079199 A1
- Document ID: US20030079199A1
- Status: Published application
- Kind: A1
- Application number: 10/003,395
- Filed: 2001-10-23
- Published: 2003-04-24
- Earliest claimed: 2001-10-23
- Assignees: International Business Machines Corporation
- Inventors: Eric Lawrence Barsness; John Matthew Santosuosso
- Web page: https://patentgrep.com/patent/US20030079199A1

## CPC

- G06F 8/33: Intelligent editors
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments provide a method, article of manufacture, and apparatus for providing programming assistance in integrated development environments. In one embodiment, a list of internal and/or external variables associated with a particular method is generated. In another embodiment, a list of internal and/or external variables is ranked in order of probability for usage within a selected method call.

## Claims

### Claim 1

A method of providing programming assistance for an integrated development environment, comprising:
receiving a selection of a method call from a list of method calls; and
providing a list of variables associated with and available to be passed to the method call.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving a selection of a variable from the list of variables; and
modifying source code displayed on an output device according to the selection of the method call and the selection of the variable.

### Claim 3 (depends on 1)

The method of claim 1, wherein the variables are selected from internal variables, external variables, and combinations thereof.

### Claim 4 (depends on 1)

The method of claim 1, wherein the method calls are selected from internal method calls, external method calls, and combinations thereof.

### Claim 5 (depends on 1)

The method of claim 1, wherein providing comprises determining at least one variable type.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the at least one variable type comprises searching at least one data structure for at least one variable type and storing the at least one variable type.

### Claim 7 (depends on 6)

The method of claim 6, further comprising searching the at least one data structure for one or more internal variables comprising an internal variable type and comparing each of the internal variable types to the at least one variable type wherein if the internal variable type matches the variable type then storing the internal variables.

### Claim 8 (depends on 6)

The method of claim 6, further comprising searching the at least one data structure for one or more external variables comprising an external variable type and comparing each of the external variable types to the at least one variable type wherein if the external variable type matches the variable type then storing the external variables.

### Claim 9 (depends on 1)

The method of claim 1, wherein providing the list of variables comprises generating a list of classes to search.

### Claim 10 (depends on 9)

The method of claim 9, wherein providing the list of variables comprises searching the list of classes for variables matching a variable type.

### Claim 11 (depends on 1)

The method of claim 1, further comprising sorting the variables in hierarchical order.

### Claim 12 (depends on 11)

The method of claim 11, wherein sorting the variables in hierarchical order comprises weighting the variables.

### Claim 13 (depends on 11)

The method of claim 11, wherein weighting the variables comprises associating each variable with a weighting factor based on attributes comprising a most recently modified variable attribute, a most recently created variable attribute, a local variable attribute, class attribute, external attribute, usage attribute, initialized attribute, and combinations thereof.

### Claim 14 (depends on 13)

The method of claim 13, wherein associating each variable with a weighting factor based on attributes comprises summing the weighting factors for each variable and ranking the variables based upon a summation value.

### Claim 15

A computer-readable medium comprising a programming assistance tool, wherein the programming assistance tool, when executed by a processor performs an operation comprising:
upon receiving a selection of a method call from a list of method calls for a source code document, generating, for display, a list of variables associated with and available to be passed to the method call, wherein the selection of the method call and a selection of a variable from the list of variables are to be input to the source code document.

### Claim 16 (depends on 15)

The computer-readable medium of claim 15, wherein the variables are selected from internal variables, external variables, and combinations thereof.

### Claim 17 (depends on 15)

The computer-readable medium of claim 15, wherein the method calls are selected from internal method calls, external method calls, and combinations thereof.

### Claim 18 (depends on 15)

The computer-readable medium of claim 15, wherein providing comprises determining at least one variable type.

### Claim 19 (depends on 18)

The computer-readable medium of claim 18, wherein determining at least one variable type further comprises searching at least one data structure for at least one variable type and storing the at least one variable type.

### Claim 20 (depends on 19)

The computer-readable medium of claim 19, further comprising searching the at least one data structure for one or more internal variables comprising an internal variable type and comparing each of the internal variable types to the at least one variable type wherein if the internal variable type matches the variable type then storing the internal variables.

### Claim 21 (depends on 19)

The computer-readable medium of claim 19, further comprising searching the at least one data structure for one or more external variables comprising an external variable type and comparing each of the external variable types to the at least one variable type wherein if the external variable type matches the variable type then storing the external variables.

### Claim 22 (depends on 15)

The computer-readable medium of claim 15, wherein generating the list of variables comprises generating a list of classes to search.

### Claim 23 (depends on 22)

The computer-readable medium of claim 22, wherein generating the list of variables comprises searching the list of classes for the variables matching the variable type.

### Claim 24 (depends on 15)

The computer-readable medium of claim 15, further comprising listing the variables in hierarchical order.

### Claim 25 (depends on 24)

The computer-readable medium of claim 24, wherein listing the variables in hierarchical order comprises weighting the variables.

### Claim 26 (depends on 25)

The computer-readable medium of claim 25, wherein weighting the variables comprises associating each variable with a weighting factor based on attributes comprising a most recently modified variable attribute, a most recently created variable attribute, a local variable attribute, class attribute, external attribute, usage attribute, initialized attribute, and combinations thereof.

### Claim 27 (depends on 26)

The computer-readable medium of claim 26, wherein associating each variable with a weighting factor based on attributes comprises summing the weighting factors for each variable and ranking the variables based upon a summation value.

### Claim 28

A processing system, comprising:
a memory comprising:
a source code document;
a programming assistance tool to modify the source code document;
a method call list configurable with a list of method calls; and
a variables list configurable with a list of variables available to pass to at least one method call from the list of method calls; and
a processor which, when executing the programming assistance tool, is configured to perform an operation comprising:
receive a selection of a method call from the list of method calls;
prepare, for display, the list of variables associated with and available to be passed to the method call;
receive a selection of a variable from the list of variables; and
modify the source code document according to the selection of the method call and the selection of the variable.

### Claim 29 (depends on 28)

The processing system of claim 28, wherein the processor is configured to sort the list of method calls into a hierarchy based on at least one of usage, alphabetical order, accessibility, and combinations thereof.

### Claim 30 (depends on 28)

The processing system of claim 28, wherein the memory further comprises a variable type data structure and wherein the processor is configured to provide the list of variables by accessing the variable type data structure to determine at least one variable type.

### Claim 31 (depends on 28)

The processing system of claim 28, wherein the processor is configured to sort the variables in a hierarchical order.

### Claim 32 (depends on 31)

The processing system of claim 31, wherein processor is configured to sort the variables in the hierarchical order by weighting the variables.

### Claim 33 (depends on 32)

The processing system of claim 32, wherein weighting the variables comprises associating each variable with a weighting factor based on attributes comprising a most recently modified variable attribute, a most recently created variable attribute, a local variable attribute, class attribute, external attribute, usage attribute, initialized attribute, and combinations thereof.

### Claim 34 (depends on 33)

The processing system of claim 33, wherein associating each variable with a weighting factor based on attributes comprises summing the weighting factors for each variable and ranking the variables based upon a summation value.
