Package ghidra.app.util.html
Interface ValidatableLine
- All Known Subinterfaces:
PlaceHolderLine
- All Known Implementing Classes:
DataTypeLine,EmptyDataTypeLine,EmptyTextLine,EmptyVariableTextLine,TextLine,VariableTextLine
public interface ValidatableLine
A loose concept that represents a line of text, potentially with multiple parts, that can
be validated against other instances and can change the color of the text.
Validation is performed against another ValidatableLine, which will be set by
calling setValidationLine(ValidatableLine).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncopy()getText()booleanbooleanTrue means that this line has been matched against another line, regardless of whether the two lines are the same or not.booleanmatches(ValidatableLine otherLine) voidsetTextColor(Color color) Set color for all text.voidSets the other line that this line is validated against.voidupdateColor(ValidatableLine otherLine, Color invalidColor)
-
Field Details
-
INVALID_COLOR
-
-
Method Details
-
updateColor
-
isDiffColored
boolean isDiffColored() -
matches
-
copy
ValidatableLine copy() -
getText
String getText() -
setTextColor
Set color for all text.- Parameters:
color- text color
-
setValidationLine
Sets the other line that this line is validated against. The other line may be a full, partial, or no match at all.- Parameters:
line- the line against which this line is validated
-
isValidated
boolean isValidated()True means that this line has been matched against another line, regardless of whether the two lines are the same or not.- Returns:
- true if this line has been matched against another line
-