Package ghidra.program.model.data
Interface ParameterDefinition
-
- All Superinterfaces:
java.lang.Comparable<ParameterDefinition>
- All Known Implementing Classes:
ParameterDefinitionImpl
public interface ParameterDefinition extends java.lang.Comparable<ParameterDefinition>
ParameterDefinition
specifies a parameter which can be used to specify a function definition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getComment()
Get the Comment for this variableDataType
getDataType()
Get the Data Type of this variableint
getLength()
Get the length of this variablejava.lang.String
getName()
Get the Name of this variable.int
getOrdinal()
Returns the ordinal (index) of this parameter within the function signature.boolean
isEquivalent(ParameterDefinition parm)
Returns true if the specified parameter definition represents the same parameter by ordinal and dataTypeboolean
isEquivalent(Variable variable)
Returns true if the specified variable represents the same parameter by ordinal and dataTypevoid
setComment(java.lang.String comment)
Set the comment for this variablevoid
setDataType(DataType type)
Set the Data Type of this variable.void
setName(java.lang.String name)
Set the name of this variable.
-
-
-
Method Detail
-
getOrdinal
int getOrdinal()
Returns the ordinal (index) of this parameter within the function signature.
-
getDataType
DataType getDataType()
Get the Data Type of this variable- Returns:
- the data type of the variable
-
setDataType
void setDataType(DataType type) throws InvalidInputException
Set the Data Type of this variable. The given dataType must have a fixed length.- Parameters:
type
- the data type- Throws:
InvalidInputException
- if data type is not a fixed length or will not fit.
-
getName
java.lang.String getName()
Get the Name of this variable.- Returns:
- the name of the variable or null if no name has been specified.
-
getLength
int getLength()
Get the length of this variable- Returns:
- the length of the variable
-
setName
void setName(java.lang.String name)
Set the name of this variable.- Parameters:
name
- the name
-
getComment
java.lang.String getComment()
Get the Comment for this variable- Returns:
- the comment
-
setComment
void setComment(java.lang.String comment)
Set the comment for this variable- Parameters:
comment
- the comment
-
isEquivalent
boolean isEquivalent(Variable variable)
Returns true if the specified variable represents the same parameter by ordinal and dataType
-
isEquivalent
boolean isEquivalent(ParameterDefinition parm)
Returns true if the specified parameter definition represents the same parameter by ordinal and dataType
-
-