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 callingsetValidationLine(ValidatableLine)
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.Color
INVALID_COLOR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidatableLine
copy()
java.lang.String
getText()
boolean
isDiffColored()
boolean
isValidated()
True means that this line has been matched against another line, regardless of whether the two lines are the same or not.boolean
matches(ValidatableLine otherLine)
void
setValidationLine(ValidatableLine line)
Sets the other line that this line is validated against.void
updateColor(ValidatableLine otherLine, java.awt.Color invalidColor)
-
-
-
Method Detail
-
updateColor
void updateColor(ValidatableLine otherLine, java.awt.Color invalidColor)
-
isDiffColored
boolean isDiffColored()
-
matches
boolean matches(ValidatableLine otherLine)
-
copy
ValidatableLine copy()
-
getText
java.lang.String getText()
-
setValidationLine
void setValidationLine(ValidatableLine line)
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
-
-