Package ghidra.app.util.html
Class VariableTextLine
- java.lang.Object
-
- ghidra.app.util.html.VariableTextLine
-
- All Implemented Interfaces:
ValidatableLine
- Direct Known Subclasses:
EmptyVariableTextLine
public class VariableTextLine extends java.lang.Object implements ValidatableLine
-
-
Field Summary
-
Fields inherited from interface ghidra.app.util.html.ValidatableLine
INVALID_COLOR
-
-
Constructor Summary
Constructors Constructor Description VariableTextLine(java.lang.String variableType, java.lang.String variableName, DataType dataType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatableLine
copy()
DataType
getDataType()
java.lang.String
getText()
java.lang.String
getVariableName()
java.awt.Color
getVariableNameColor()
java.lang.String
getVariableType()
java.awt.Color
getVariableTypeColor()
boolean
hasUniversalId()
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 otherValidatableLine)
void
setValidationLine(ValidatableLine line)
Sets the other line that this line is validated against.java.lang.String
toString()
void
updateColor(ValidatableLine otherValidatableLine, java.awt.Color invalidColor)
-
-
-
Constructor Detail
-
VariableTextLine
public VariableTextLine(java.lang.String variableType, java.lang.String variableName, DataType dataType)
-
-
Method Detail
-
copy
public ValidatableLine copy()
- Specified by:
copy
in interfaceValidatableLine
-
getVariableType
public java.lang.String getVariableType()
-
getVariableName
public java.lang.String getVariableName()
-
getDataType
public DataType getDataType()
-
hasUniversalId
public boolean hasUniversalId()
-
isDiffColored
public boolean isDiffColored()
- Specified by:
isDiffColored
in interfaceValidatableLine
-
getVariableTypeColor
public java.awt.Color getVariableTypeColor()
-
getVariableNameColor
public java.awt.Color getVariableNameColor()
-
isValidated
public boolean isValidated()
Description copied from interface:ValidatableLine
True means that this line has been matched against another line, regardless of whether the two lines are the same or not.- Specified by:
isValidated
in interfaceValidatableLine
- Returns:
- true if this line has been matched against another line
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceValidatableLine
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
matches
public boolean matches(ValidatableLine otherValidatableLine)
- Specified by:
matches
in interfaceValidatableLine
-
updateColor
public void updateColor(ValidatableLine otherValidatableLine, java.awt.Color invalidColor)
- Specified by:
updateColor
in interfaceValidatableLine
-
setValidationLine
public void setValidationLine(ValidatableLine line)
Description copied from interface:ValidatableLine
Sets the other line that this line is validated against. The other line may be a full, partial, or no match at all.- Specified by:
setValidationLine
in interfaceValidatableLine
- Parameters:
line
- the line against which this line is validated
-
-