Package ghidra.app.util.html
Class DataTypeLine
- java.lang.Object
-
- ghidra.app.util.html.DataTypeLine
-
- All Implemented Interfaces:
ValidatableLine
- Direct Known Subclasses:
EmptyDataTypeLine
public class DataTypeLine extends java.lang.Object implements ValidatableLine
-
-
Field Summary
-
Fields inherited from interface ghidra.app.util.html.ValidatableLine
INVALID_COLOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatableLinecopy()java.lang.StringgetComment()java.awt.ColorgetCommentColor()DataTypegetDataType()java.lang.StringgetName()java.awt.ColorgetNameColor()java.lang.StringgetText()java.lang.StringgetType()java.awt.ColorgetTypeColor()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)voidsetCommentColor(java.awt.Color commentColor)voidsetNameColor(java.awt.Color nameColor)voidsetTypeColor(java.awt.Color typeColor)voidsetValidationLine(ValidatableLine line)Sets the other line that this line is validated against.java.lang.StringtoString()voidupdateColor(ValidatableLine otherValidatableLine, java.awt.Color invalidColor)
-
-
-
Method Detail
-
copy
public ValidatableLine copy()
- Specified by:
copyin interfaceValidatableLine
-
isDiffColored
public boolean isDiffColored()
- Specified by:
isDiffColoredin interfaceValidatableLine
-
getType
public java.lang.String getType()
-
getName
public java.lang.String getName()
-
getComment
public java.lang.String getComment()
-
getDataType
public DataType getDataType()
-
hasUniversalId
public boolean hasUniversalId()
-
getTypeColor
public java.awt.Color getTypeColor()
-
setTypeColor
public void setTypeColor(java.awt.Color typeColor)
-
getNameColor
public java.awt.Color getNameColor()
-
setNameColor
public void setNameColor(java.awt.Color nameColor)
-
getCommentColor
public java.awt.Color getCommentColor()
-
setCommentColor
public void setCommentColor(java.awt.Color commentColor)
-
updateColor
public void updateColor(ValidatableLine otherValidatableLine, java.awt.Color invalidColor)
- Specified by:
updateColorin interfaceValidatableLine
-
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
-
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
-
-