Class GenericDataType
java.lang.Object
ghidra.program.model.data.AbstractDataType
ghidra.program.model.data.DataTypeImpl
ghidra.program.model.data.GenericDataType
- All Implemented Interfaces:
DataType
- Direct Known Subclasses:
CompositeDataTypeImpl, EnumDataType, FunctionDefinitionDataType, PointerTypedef, TypedefDataType
Base implementation for a generic data type.
-
Field Summary
Fields inherited from class DataTypeImpl
defaultSettingsFields inherited from class AbstractDataType
categoryPath, dataMgr, EMPTY_TYPEDEF_DEFINITIONS, nameFields inherited from interface DataType
CONFLICT_SUFFIX, DEFAULT, NO_LAST_CHANGE_TIME, NO_SOURCE_SYNC_TIME, TYPEDEF_ATTRIBUTE_PREFIX, TYPEDEF_ATTRIBUTE_SUFFIX, VOID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGenericDataType(CategoryPath path, String name, DataTypeManager dataMgr) protectedGenericDataType(CategoryPath path, String name, UniversalID universalID, SourceArchive sourceArchive, long lastChangeTime, long lastChangeTimeInSourceArchive, DataTypeManager dataMgr) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCategoryPath(CategoryPath path) Set the categoryPath associated with this datatypevoidSets the name of the datatypevoidsetNameAndCategory(CategoryPath path, String name) Sets the name and category of a datatype at the same time.Methods inherited from class DataTypeImpl
addParent, equals, getAlignedLength, getAlignment, getDefaultSettings, getLastChangeTime, getLastChangeTimeInSourceArchive, getParents, getSettingsDefinitions, getSourceArchive, getUniversalID, getValueClass, hashCode, notifyAlignmentChanged, notifyDeleted, notifyNameChanged, notifyParents, notifyReplaced, notifySizeChanged, removeParent, replaceWith, setDescription, setLastChangeTime, setLastChangeTimeInSourceArchive, setSourceArchiveMethods inherited from class AbstractDataType
dataTypeAlignmentChanged, dataTypeDeleted, dataTypeNameChanged, dataTypeReplaced, dataTypeSizeChanged, dependsOn, encodeRepresentation, encodeValue, getCategoryPath, getDataOrganization, getDataOrganization, getDataTypeManager, getDataTypePath, getDefaultAbbreviatedLabelPrefix, getDefaultLabelPrefix, getDefaultLabelPrefix, getDefaultOffcutLabelPrefix, getDisplayName, getMnemonic, getName, getPathName, getTypeDefSettingsDefinitions, hasLanguageDependantLength, isDeleted, isEncodable, isNotYetDefined, isZeroLength, toStringMethods inherited from interface DataType
clone, copy, getDescription, getLength, getRepresentation, getValue, isEquivalent
-
Constructor Details
-
GenericDataType
-
GenericDataType
protected GenericDataType(CategoryPath path, String name, UniversalID universalID, SourceArchive sourceArchive, long lastChangeTime, long lastChangeTimeInSourceArchive, DataTypeManager dataMgr)
-
-
Method Details
-
setNameAndCategory
Description copied from interface:DataTypeSets the name and category of a datatype at the same time.- Specified by:
setNameAndCategoryin interfaceDataType- Overrides:
setNameAndCategoryin classAbstractDataType- Parameters:
path- the new category path.name- the new name- Throws:
InvalidNameException- if the name is invalid
-
setName
Description copied from interface:DataTypeSets the name of the datatype- Specified by:
setNamein interfaceDataType- Overrides:
setNamein classAbstractDataType- Parameters:
name- the new name for this datatype.- Throws:
InvalidNameException- if the given name does not form a valid name.
-
setCategoryPath
Description copied from interface:DataTypeSet the categoryPath associated with this datatype- Specified by:
setCategoryPathin interfaceDataType- Overrides:
setCategoryPathin classAbstractDataType- Parameters:
path- the new path
-