GP-4886 Updated javadocs

This commit is contained in:
ghidra1 2024-11-20 15:17:13 -05:00
parent b203afe700
commit e5edde62fa

View file

@ -267,22 +267,22 @@ public class PrototypeModel {
* Note: storage will not be assigned to the {@link DataType#DEFAULT default undefined} datatype, * Note: storage will not be assigned to the {@link DataType#DEFAULT default undefined} datatype,
* zero-length datatype, or any subsequent parameter following such a parameter. * zero-length datatype, or any subsequent parameter following such a parameter.
* <br> * <br>
* Warning: The use of this method is discourage since it can produce inaccurate * Warning: The use of this method with a null {@code params} argument, or incorrect
* results. It is recommended that a complete function signature be used in * datatypes, is highly discouraged since it will produce inaccurate results.
* It is recommended that a complete function signature be used in
* conjunction with the {@link #getStorageLocations(Program, DataType[], boolean)} * conjunction with the {@link #getStorageLocations(Program, DataType[], boolean)}
* method. Parameter storage allocation may be affected by the return datatype * method. Parameter storage allocation may be affected by the return datatype
* used on a function (e.g., hidden return storage parameter). * specified (e.g., hidden return storage parameter).
* *
* @param params existing set parameters to which the next parameter will * @param params existing set parameters to which the next parameter will
* be appended. (may be null) * be appended (may be null). Element-0 corresponds to the return datatype.
* @param dataType dataType associated with next parameter location or null * @param dataType dataType associated with next parameter location or null
* for a default undefined type. * for a default undefined type. If null the speculative first parameter storage
* is returned.
* @param program is the Program * @param program is the Program
* @return next parameter location or {@link VariableStorage#UNASSIGNED_STORAGE} if * @return next parameter location or {@link VariableStorage#UNASSIGNED_STORAGE} if
* unable to determine suitable location * unable to determine suitable location
* @deprecated use of {@link #getStorageLocations(Program, DataType[], boolean)} is preferred.
*/ */
@Deprecated
public VariableStorage getNextArgLocation(Parameter[] params, DataType dataType, public VariableStorage getNextArgLocation(Parameter[] params, DataType dataType,
Program program) { Program program) {
return getArgLocation(params != null ? params.length : 0, params, dataType, program); return getArgLocation(params != null ? params.length : 0, params, dataType, program);
@ -296,27 +296,26 @@ public class PrototypeModel {
* Note: storage will not be assigned to the {@link DataType#DEFAULT default undefined} datatype, * Note: storage will not be assigned to the {@link DataType#DEFAULT default undefined} datatype,
* zero-length datatype, or any subsequent parameter following such a parameter. * zero-length datatype, or any subsequent parameter following such a parameter.
* <br> * <br>
* Warning: The use of this method is discourage since it can produce inaccurate * Warning: The use of this method with a null {@code params} argument, or incorrect
* results. It is recommended that a complete function signature be used in * datatypes, is highly discouraged since it will produce inaccurate results.
* It is recommended that a complete function signature be used in
* conjunction with the {@link #getStorageLocations(Program, DataType[], boolean)} * conjunction with the {@link #getStorageLocations(Program, DataType[], boolean)}
* method. Parameter storage allocation may be affected by the return datatype * method. Parameter storage allocation may be affected by the return datatype
* used on a function (e.g., hidden return storage parameter). * specified (e.g., hidden return storage parameter).
* *
* @param argIndex is the index * @param argIndex is the index (0: return storage, 1..n: parameter storage)
* @param params existing set parameters to which the parameter specified by * @param params existing set parameters to which the parameter specified by
* argIndex will be added/inserted be appended. The preceeding parameters * argIndex will be added/inserted be appended. Element-0 corresponds to the return
* are required for an accurate storage determination to be made. Any preceeding * datatype. Parameter elements prior to the argIndex are required for an accurate
* parameters not specified will be assumed as a 1-byte integer type which could * storage determination to be made. Any preceeding parameters not specified will be assumed
* cause an erroneous storage result to be returned. A null params list will cause * as a 1-byte integer type which could cause an erroneous storage result to be returned.
* all preceeding params to be assumed in a similar fashion. * A null params list will cause all preceeding params to be assumed in a similar fashion.
* @param dataType dataType associated with next parameter location or null * @param dataType dataType associated with next parameter location or null
* for a default undefined type. * for a default undefined type.
* @param program is the Program * @param program is the Program
* @return parameter location or {@link VariableStorage#UNASSIGNED_STORAGE} if * @return parameter location or {@link VariableStorage#UNASSIGNED_STORAGE} if
* unable to determine suitable location * unable to determine suitable location
* @deprecated use of {@link #getStorageLocations(Program, DataType[], boolean)} is preferred.
*/ */
@Deprecated
public VariableStorage getArgLocation(int argIndex, Parameter[] params, DataType dataType, public VariableStorage getArgLocation(int argIndex, Parameter[] params, DataType dataType,
Program program) { Program program) {