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 ValidatableLine
copy()
java.lang.String
getComment()
java.awt.Color
getCommentColor()
DataType
getDataType()
java.lang.String
getName()
java.awt.Color
getNameColor()
java.lang.String
getText()
java.lang.String
getType()
java.awt.Color
getTypeColor()
boolean
hasUniversalId()
boolean
isDiffColored()
boolean
isFlexibleArray()
Determine if data type should be treated as flexible arrayboolean
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
setCommentColor(java.awt.Color commentColor)
void
setNameColor(java.awt.Color nameColor)
void
setTypeColor(java.awt.Color typeColor)
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)
-
-
-
Method Detail
-
isFlexibleArray
public boolean isFlexibleArray()
Determine if data type should be treated as flexible array- Returns:
- true if data type should be treated as flexible array
-
copy
public ValidatableLine copy()
- Specified by:
copy
in interfaceValidatableLine
-
isDiffColored
public boolean isDiffColored()
- Specified by:
isDiffColored
in 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:
updateColor
in interfaceValidatableLine
-
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
-
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
-
-