Package ghidra.program.model.data
Interface InternalDataTypeComponent
- All Superinterfaces:
DataTypeComponent
- All Known Implementing Classes:
DataTypeComponentImpl
-
Field Summary
Fields inherited from interface ghidra.program.model.data.DataTypeComponent
DEFAULT_FIELD_NAME_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
cleanupFieldName
(String name) Internal method for cleaning up field names.void
setDataType
(DataType dataType) Sets the DataType for this component.static String
void
update
(int ordinal, int offset, int length) Update component ordinal, offset and length during alignmentMethods inherited from interface ghidra.program.model.data.DataTypeComponent
getComment, getDataType, getDefaultFieldName, getDefaultSettings, getEndOffset, getFieldName, getLength, getOffset, getOrdinal, getParent, isBitFieldComponent, isEquivalent, isUndefined, isZeroBitFieldComponent, setComment, setFieldName
-
Method Details
-
setDataType
Sets the DataType for this component. Must be used carefully since the component will not be resized.- Parameters:
dataType
- the new DataType for this component
-
update
void update(int ordinal, int offset, int length) Update component ordinal, offset and length during alignment- Parameters:
ordinal
- updated ordinaloffset
- updated offsetlength
- updated byte length
-
toString
-
cleanupFieldName
Internal method for cleaning up field names.- Parameters:
name
- the new field name- Returns:
- the name with bad chars removed and also set back to null in the event the new name is the default name.
-