Package ghidra.program.util
Class FunctionParameterNameFieldLocation
- java.lang.Object
-
- ghidra.program.util.ProgramLocation
-
- ghidra.program.util.FunctionLocation
-
- ghidra.program.util.FunctionSignatureFieldLocation
-
- ghidra.program.util.FunctionParameterFieldLocation
-
- ghidra.program.util.FunctionParameterNameFieldLocation
-
- All Implemented Interfaces:
java.lang.Comparable<ProgramLocation>
public class FunctionParameterNameFieldLocation extends FunctionParameterFieldLocation
AFunctionSignatureFieldLocation
that indicates the user clicked on a function parameter name.
-
-
Field Summary
-
Fields inherited from class ghidra.program.util.FunctionLocation
functionAddr
-
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
-
Constructor Summary
Constructors Constructor Description FunctionParameterNameFieldLocation()
Default constructor needed for restoring a program location from XMLFunctionParameterNameFieldLocation(Program program, Address locationAddr, Address functionAddr, int charOffset, java.lang.String signature, Parameter parameter)
Construct a new FunctionParameterNameFieldLocation object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getParameterName()
int
hashCode()
void
restoreState(Program p, SaveState obj)
Restore this function location using the given program and save state object.void
saveState(SaveState obj)
Save this function location to the given save state object.-
Methods inherited from class ghidra.program.util.FunctionParameterFieldLocation
getOrdinal, getParameter, toString
-
Methods inherited from class ghidra.program.util.FunctionSignatureFieldLocation
getSignature, isFieldBasedPositioning
-
Methods inherited from class ghidra.program.util.FunctionLocation
getFunctionAddress, isValid
-
Methods inherited from class ghidra.program.util.ProgramLocation
compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow
-
-
-
-
Constructor Detail
-
FunctionParameterNameFieldLocation
public FunctionParameterNameFieldLocation(Program program, Address locationAddr, Address functionAddr, int charOffset, java.lang.String signature, Parameter parameter)
Construct a new FunctionParameterNameFieldLocation object.- Parameters:
the
- program of the locationlocationAddr
- the address of the listing location (i.e., referent code unit)functionAddr
- the function addresscharOffset
- the position within the function signature string for this location.signature
- the function signature string at this location.parameter
- the function parameter at this location.
-
FunctionParameterNameFieldLocation
public FunctionParameterNameFieldLocation()
Default constructor needed for restoring a program location from XML
-
-
Method Detail
-
getParameterName
public java.lang.String getParameterName()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFunctionSignatureFieldLocation
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classFunctionParameterFieldLocation
- See Also:
Object.equals(java.lang.Object)
-
saveState
public void saveState(SaveState obj)
Description copied from class:FunctionLocation
Save this function location to the given save state object.- Overrides:
saveState
in classFunctionParameterFieldLocation
- Parameters:
obj
- the save state object for saving the location
-
restoreState
public void restoreState(Program p, SaveState obj)
Description copied from class:FunctionLocation
Restore this function location using the given program and save state object.- Overrides:
restoreState
in classFunctionParameterFieldLocation
-
-