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 ValidatableLinecopy()DataTypegetDataType()java.lang.StringgetText()java.lang.StringgetVariableName()java.awt.ColorgetVariableNameColor()java.lang.StringgetVariableType()java.awt.ColorgetVariableTypeColor()booleanhasUniversalId()booleanisDiffColored()booleanisValidated()True means that this line has been matched against another line, regardless of whether the two lines are the same or not.booleanmatches(ValidatableLine otherValidatableLine)voidsetValidationLine(ValidatableLine line)Sets the other line that this line is validated against.java.lang.StringtoString()voidupdateColor(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:
copyin 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:
isDiffColoredin interfaceValidatableLine
-
getVariableTypeColor
public java.awt.Color getVariableTypeColor()
-
getVariableNameColor
public java.awt.Color getVariableNameColor()
-
isValidated
public boolean isValidated()
Description copied from interface:ValidatableLineTrue means that this line has been matched against another line, regardless of whether the two lines are the same or not.- Specified by:
isValidatedin interfaceValidatableLine- Returns:
- true if this line has been matched against another line
-
getText
public java.lang.String getText()
- Specified by:
getTextin interfaceValidatableLine
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
matches
public boolean matches(ValidatableLine otherValidatableLine)
- Specified by:
matchesin interfaceValidatableLine
-
updateColor
public void updateColor(ValidatableLine otherValidatableLine, java.awt.Color invalidColor)
- Specified by:
updateColorin interfaceValidatableLine
-
setValidationLine
public void setValidationLine(ValidatableLine line)
Description copied from interface:ValidatableLineSets the other line that this line is validated against. The other line may be a full, partial, or no match at all.- Specified by:
setValidationLinein interfaceValidatableLine- Parameters:
line- the line against which this line is validated
-
-