Package ghidra.app.decompiler
Class DecompilerLocation
- java.lang.Object
 - 
- ghidra.program.util.ProgramLocation
 - 
- ghidra.app.decompiler.DecompilerLocation
 
 
 
- 
- All Implemented Interfaces:
 java.lang.Comparable<ProgramLocation>
public class DecompilerLocation extends ProgramLocation
 
- 
- 
Field Summary
- 
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DecompilerLocation()Default constructor required for restoring a program location from XML.DecompilerLocation(Program program, Address address, Address functionEntryPoint, DecompileResults results, ClangToken token, int lineNumber, int charPos) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetCharPos()DecompileResultsgetDecompile()Results from the decompilationAddressgetFunctionEntryPoint()intgetLineNumber()ClangTokengetToken()C text token at the current cursor locationjava.lang.StringgetTokenName()inthashCode()voidrestoreState(Program program1, SaveState obj)Restore this program location using the given program and save state object.voidsaveState(SaveState saveState)Save this program location to the given save state object.java.lang.StringtoString()- 
Methods inherited from class ghidra.program.util.ProgramLocation
compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, isValid 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
DecompilerLocation
public DecompilerLocation(Program program, Address address, Address functionEntryPoint, DecompileResults results, ClangToken token, int lineNumber, int charPos)
 
- 
DecompilerLocation
public DecompilerLocation()
Default constructor required for restoring a program location from XML. 
 - 
 
- 
Method Detail
- 
getFunctionEntryPoint
public Address getFunctionEntryPoint()
 
- 
getDecompile
public DecompileResults getDecompile()
Results from the decompilation- Returns:
 - C-AST, DFG, and CFG object. null if there are no results attached to this location
 
 
- 
getToken
public ClangToken getToken()
C text token at the current cursor location- Returns:
 - token at this location, could be null if there are no decompiler results
 
 
- 
getTokenName
public java.lang.String getTokenName()
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classProgramLocation
 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classProgramLocation
 
- 
saveState
public void saveState(SaveState saveState)
Description copied from class:ProgramLocationSave this program location to the given save state object.- Overrides:
 saveStatein classProgramLocation- Parameters:
 saveState- the save state object for saving the location
 
- 
restoreState
public void restoreState(Program program1, SaveState obj)
Description copied from class:ProgramLocationRestore this program location using the given program and save state object.- Overrides:
 restoreStatein classProgramLocation- Parameters:
 program1- program to restore fromobj- the save state to restore from
 
- 
getLineNumber
public int getLineNumber()
 
- 
getCharPos
public int getCharPos()
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classProgramLocation
 
 - 
 
 -