Package ghidra.app.util.html
Class CompositeDataTypeHTMLRepresentation
- java.lang.Object
 - 
- ghidra.app.util.html.HTMLDataTypeRepresentation
 - 
- ghidra.app.util.html.CompositeDataTypeHTMLRepresentation
 
 
 
- 
public class CompositeDataTypeHTMLRepresentation extends HTMLDataTypeRepresentation
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringALIGNMENT_VALUE_PREFIXprotected java.util.List<ValidatableLine>alignmentTextprotected TextLinealignmentValueTextprotected java.util.List<ValidatableLine>bodyContentprotected TextLinedisplayNameprotected TextLinefooterTextprotected java.util.List<ValidatableLine>headerContentprotected java.util.List<java.lang.String>warningLines- 
Fields inherited from class ghidra.app.util.html.HTMLDataTypeRepresentation
BR, CHARACTER_SPACE, DIFF_COLOR, ELLIPSES, EMPTY_TAG, END_COMMENT, FORWARD_SLASH, HTML_CLOSE, HTML_OPEN, HTML_SPACE, INDENT_CLOSE, INDENT_OPEN, LENGTH_PREFIX, MAX_CHARACTER_LENGTH, MAX_COMPONENTS, MAX_LINE_LENGTH, MIDDLE_COMMENT, originalHTMLData, START_COMMENT, TAB, TABLE_CLOSE, TABLE_OPEN, TD_CLOSE, TD_OPEN, TR_CLOSE, TR_OPEN, TT_CLOSE, TT_OPEN 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description CompositeDataTypeHTMLRepresentation(Composite comp)protectedCompositeDataTypeHTMLRepresentation(java.util.List<java.lang.String> warningLines, java.util.List<ValidatableLine> header, java.util.List<ValidatableLine> bodyContent, java.util.List<ValidatableLine> alignmentText, TextLine footerText, TextLine displayName, TextLine alignmentValue) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.StringBuilderaddAlignmentValue(java.lang.String alignmentValueString, java.lang.StringBuilder buffer)protected java.util.List<ValidatableLine>buildAlignmentText(Composite dataType)protected TextLinebuildAlignmentValueText(Composite composite)protected TextLinebuildFooterText(DataType dataType)protected java.util.List<java.lang.String>buildWarnings(Composite comp)protected PlaceHolderLinecreatePlaceHolderLine(ValidatableLine oppositeLine)Extension point for adding empty lines.HTMLDataTypeRepresentation[]diff(HTMLDataTypeRepresentation otherRepresentation)Compares this representation and the given representation creates a diff string for both representations.protected voiddiffAlignment(java.util.List<ValidatableLine> myLines, java.util.List<ValidatableLine> otherLines)java.lang.StringgetHTMLContentString()This is likeHTMLDataTypeRepresentation.getHTMLString(), but does not put HTML tags around the datajava.lang.StringgetHTMLString()Returns an HTML string for this data representation object.- 
Methods inherited from class ghidra.app.util.html.HTMLDataTypeRepresentation
addDataTypeLength, addDataTypeLength, buildHeaderText, completelyDifferentDiff, copyLines, createCommentLines, diffTextLine, getCommentForDataType, getDataTypeLengthString, getDiffInput, getDiffInput, getFullHTMLContentString, getFullHTMLString, getLocatableDataType, truncateAsNecessary, truncateAsNecessary, wrapStringInColor 
 - 
 
 - 
 
- 
- 
Field Detail
- 
warningLines
protected java.util.List<java.lang.String> warningLines
 
- 
headerContent
protected java.util.List<ValidatableLine> headerContent
 
- 
bodyContent
protected java.util.List<ValidatableLine> bodyContent
 
- 
footerText
protected TextLine footerText
 
- 
displayName
protected TextLine displayName
 
- 
alignmentText
protected java.util.List<ValidatableLine> alignmentText
 
- 
alignmentValueText
protected TextLine alignmentValueText
 
- 
ALIGNMENT_VALUE_PREFIX
protected static final java.lang.String ALIGNMENT_VALUE_PREFIX
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
CompositeDataTypeHTMLRepresentation
protected CompositeDataTypeHTMLRepresentation(java.util.List<java.lang.String> warningLines, java.util.List<ValidatableLine> header, java.util.List<ValidatableLine> bodyContent, java.util.List<ValidatableLine> alignmentText, TextLine footerText, TextLine displayName, TextLine alignmentValue) 
- 
CompositeDataTypeHTMLRepresentation
public CompositeDataTypeHTMLRepresentation(Composite comp)
 
 - 
 
- 
Method Detail
- 
buildWarnings
protected java.util.List<java.lang.String> buildWarnings(Composite comp)
 
- 
buildFooterText
protected TextLine buildFooterText(DataType dataType)
- Overrides:
 buildFooterTextin classHTMLDataTypeRepresentation
 
- 
buildAlignmentText
protected java.util.List<ValidatableLine> buildAlignmentText(Composite dataType)
 
- 
addAlignmentValue
protected static java.lang.StringBuilder addAlignmentValue(java.lang.String alignmentValueString, java.lang.StringBuilder buffer) 
- 
getHTMLString
public java.lang.String getHTMLString()
Description copied from class:HTMLDataTypeRepresentationReturns an HTML string for this data representation object. The HTML returned will be truncated if it is too long. To get the full HTML, callHTMLDataTypeRepresentation.getFullHTMLString().- Overrides:
 getHTMLStringin classHTMLDataTypeRepresentation- Returns:
 - the html
 - See Also:
 HTMLDataTypeRepresentation.getFullHTMLString()
 
- 
getHTMLContentString
public java.lang.String getHTMLContentString()
Description copied from class:HTMLDataTypeRepresentationThis is likeHTMLDataTypeRepresentation.getHTMLString(), but does not put HTML tags around the data- Overrides:
 getHTMLContentStringin classHTMLDataTypeRepresentation- Returns:
 - the content
 
 
- 
createPlaceHolderLine
protected PlaceHolderLine createPlaceHolderLine(ValidatableLine oppositeLine)
Description copied from class:HTMLDataTypeRepresentationExtension point for adding empty lines. Subclasses that do not wish to use the default empty text line can override this method.- Overrides:
 createPlaceHolderLinein classHTMLDataTypeRepresentation- Parameters:
 oppositeLine- the line that will go along with the newly created placeholder line- Returns:
 - the placeholder line
 
 
- 
diff
public HTMLDataTypeRepresentation[] diff(HTMLDataTypeRepresentation otherRepresentation)
Description copied from class:HTMLDataTypeRepresentationCompares this representation and the given representation creates a diff string for both representations.- Specified by:
 diffin classHTMLDataTypeRepresentation- Parameters:
 otherRepresentation- the other representation to diff against.- Returns:
 - An array of two strings: the first is this object's diff value, the second is the given objects diff value.
 
 
- 
diffAlignment
protected void diffAlignment(java.util.List<ValidatableLine> myLines, java.util.List<ValidatableLine> otherLines)
 
 - 
 
 -