Package ghidra.app.decompiler.location
Class FunctionNameDecompilerLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.FunctionLocation
ghidra.program.util.FunctionSignatureFieldLocation
ghidra.program.util.FunctionNameFieldLocation
ghidra.app.decompiler.location.FunctionNameDecompilerLocation
- All Implemented Interfaces:
DecompilerLocation
,Cloneable
,Comparable<ProgramLocation>
public class FunctionNameDecompilerLocation
extends FunctionNameFieldLocation
implements DecompilerLocation
A location created when a function name is clicked in the Decompiler.
-
Field Summary
Fields inherited from class ghidra.program.util.FunctionLocation
functionAddr
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionNameDecompilerLocation
(Program program, Address address, String funcionName, DecompilerLocationInfo info) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns the character position.Results from the decompilationint
Returns the line number.getToken()
C text token at the current cursor locationReturns the name of the token for the current location.int
hashCode()
void
restoreState
(Program p, SaveState ss) Restore this function location using the given program and save state object.void
Save this function location to the given save state object.Methods inherited from class ghidra.program.util.FunctionNameFieldLocation
getFunctionName, 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
clone, compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, getTranslatedCopy
-
Constructor Details
-
FunctionNameDecompilerLocation
public FunctionNameDecompilerLocation(Program program, Address address, String funcionName, DecompilerLocationInfo info) -
FunctionNameDecompilerLocation
public FunctionNameDecompilerLocation()
-
-
Method Details
-
getFunctionEntryPoint
- Specified by:
getFunctionEntryPoint
in interfaceDecompilerLocation
-
getDecompile
Description copied from interface:DecompilerLocation
Results from the decompilation- Specified by:
getDecompile
in interfaceDecompilerLocation
- Returns:
- C-AST, DFG, and CFG object. null if there are no results attached to this location
-
getToken
Description copied from interface:DecompilerLocation
C text token at the current cursor location- Specified by:
getToken
in interfaceDecompilerLocation
- Returns:
- token at this location, could be null if there are no decompiler results
-
getTokenName
Description copied from interface:DecompilerLocation
Returns the name of the token for the current location.- Specified by:
getTokenName
in interfaceDecompilerLocation
- Returns:
- the name of the token for the current location
-
getLineNumber
public int getLineNumber()Description copied from interface:DecompilerLocation
Returns the line number.- Specified by:
getLineNumber
in interfaceDecompilerLocation
- Returns:
- the line number
-
getCharPos
public int getCharPos()Description copied from interface:DecompilerLocation
Returns the character position.- Specified by:
getCharPos
in interfaceDecompilerLocation
- Returns:
- the character position
-
saveState
Description copied from class:FunctionLocation
Save this function location to the given save state object.- Overrides:
saveState
in classFunctionNameFieldLocation
- Parameters:
ss
- the save state object for saving the location
-
restoreState
Description copied from class:FunctionLocation
Restore this function location using the given program and save state object.- Overrides:
restoreState
in classFunctionNameFieldLocation
- Parameters:
p
- the program containing the function locationss
- the save state object for saving the location
-
hashCode
public int hashCode()- Overrides:
hashCode
in classFunctionNameFieldLocation
-
equals
- Overrides:
equals
in classFunctionNameFieldLocation
-