Package ghidra.program.util
Class RepeatableCommentFieldLocation
java.lang.Object
ghidra.program.util.ProgramLocation
ghidra.program.util.CodeUnitLocation
ghidra.program.util.CommentFieldLocation
ghidra.program.util.RepeatableCommentFieldLocation
- All Implemented Interfaces:
Cloneable
,Comparable<ProgramLocation>
The
RepeatableCommentFieldLocation
class contains specific location information
within the Repeatable comment of an EOL comment field of a CodeUnitLocation object.-
Field Summary
Fields inherited from class ghidra.program.util.CommentFieldLocation
comment, type
Fields inherited from class ghidra.program.util.ProgramLocation
addr, program, refAddr
-
Constructor Summary
ConstructorDescriptionDefault constructor needed for restoring an end-of-line field location from XML.RepeatableCommentFieldLocation
(Program program, Address addr, int[] componentPath, String[] comment, int row, int charOffset, int currentCommentRow) Construct a new RepeatableCommentFieldLocation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
hashCode()
void
restoreState
(Program p, SaveState obj) Restore this program location using the given program and save state object.void
Save this program location to the given save state object.toString()
Returns a String representation of this location.Methods inherited from class ghidra.program.util.CommentFieldLocation
getComment, getCommentType, validateType
Methods inherited from class ghidra.program.util.CodeUnitLocation
isValid
Methods inherited from class ghidra.program.util.ProgramLocation
clone, compareAddr, compareTo, getAddress, getByteAddress, getCharOffset, getColumn, getComponentPath, getLocation, getProgram, getRefAddress, getRow, getTranslatedCopy
-
Constructor Details
-
RepeatableCommentFieldLocation
public RepeatableCommentFieldLocation(Program program, Address addr, int[] componentPath, String[] comment, int row, int charOffset, int currentCommentRow) Construct a new RepeatableCommentFieldLocation.- Parameters:
program
- the program of the locationaddr
- the address of the codeunit.componentPath
- the componentPath of the codeUnitcomment
- comment text for the particular comment indicated by the address, subtype, and reference address.row
- the line within the Eol comment.charOffset
- the character position on the line within the comment line.currentCommentRow
- the row index relative to the beginning of the repeatable comment as displayed in the Eol comment field.
-
RepeatableCommentFieldLocation
public RepeatableCommentFieldLocation()Default constructor needed for restoring an end-of-line field location from XML.
-
-
Method Details
-
getCurrentCommentRow
public int getCurrentCommentRow() -
hashCode
public int hashCode()- Overrides:
hashCode
in classCommentFieldLocation
-
equals
- Overrides:
equals
in classCommentFieldLocation
-
restoreState
Description copied from class:ProgramLocation
Restore this program location using the given program and save state object.- Overrides:
restoreState
in classCommentFieldLocation
- Parameters:
p
- program to restore fromobj
- the save state to restore from
-
saveState
Description copied from class:ProgramLocation
Save this program location to the given save state object.- Overrides:
saveState
in classCommentFieldLocation
- Parameters:
obj
- the save state object for saving the location
-
toString
Description copied from class:CommentFieldLocation
Returns a String representation of this location.- Overrides:
toString
in classCommentFieldLocation
-