Package ghidra.program.model.data
Class GenericDataType
- java.lang.Object
-
- ghidra.program.model.data.AbstractDataType
-
- ghidra.program.model.data.DataTypeImpl
-
- ghidra.program.model.data.GenericDataType
-
- All Implemented Interfaces:
DataType,java.util.EventListener,javax.swing.event.ChangeListener
- Direct Known Subclasses:
CompositeDataTypeImpl,EnumDataType,FunctionDefinitionDataType,TypedefDataType
public abstract class GenericDataType extends DataTypeImpl
Base implementation for a generic data type.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanpacked-
Fields inherited from class ghidra.program.model.data.DataTypeImpl
defaultSettings
-
Fields inherited from class ghidra.program.model.data.AbstractDataType
categoryPath, dataMgr, name
-
Fields inherited from interface ghidra.program.model.data.DataType
CONFLICT_SUFFIX, DEFAULT, NO_LAST_CHANGE_TIME, NO_SOURCE_SYNC_TIME, VOID
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericDataType(CategoryPath path, java.lang.String name, DataTypeManager dataMgr)protectedGenericDataType(CategoryPath path, java.lang.String name, UniversalID universalID, SourceArchive sourceArchive, long lastChangeTime, long lastChangeTimeInSourceArchive, DataTypeManager dataMgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetCategoryPath(CategoryPath path)voidsetName(java.lang.String name)Sets the name of the dataTypevoidsetNameAndCategory(CategoryPath path, java.lang.String name)Sets the name and category of a dataType at the same time.-
Methods inherited from class ghidra.program.model.data.DataTypeImpl
addParent, equals, getAlignment, getDefaultSettings, getLastChangeTime, getLastChangeTimeInSourceArchive, getParents, getPathName, getSettingsDefinitions, getSourceArchive, getUniversalID, getValueClass, hashCode, notifyDeleted, notifyNameChanged, notifyReplaced, notifySizeChanged, removeParent, replaceWith, setDefaultSettings, setDescription, setLastChangeTime, setLastChangeTimeInSourceArchive, setSourceArchive, stateChanged
-
Methods inherited from class ghidra.program.model.data.AbstractDataType
dataTypeDeleted, dataTypeNameChanged, dataTypeReplaced, dataTypeSizeChanged, dependsOn, getCategoryPath, getDataOrganization, getDataTypeManager, getDataTypePath, getDefaultAbbreviatedLabelPrefix, getDefaultLabelPrefix, getDefaultLabelPrefix, getDefaultOffcutLabelPrefix, getDisplayName, getDocs, getMnemonic, getName, isDeleted, isDynamicallySized, isNotYetDefined, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ghidra.program.model.data.DataType
clone, copy, getDescription, getLength, getRepresentation, getValue, isEquivalent
-
-
-
-
Constructor Detail
-
GenericDataType
protected GenericDataType(CategoryPath path, java.lang.String name, DataTypeManager dataMgr)
-
GenericDataType
protected GenericDataType(CategoryPath path, java.lang.String name, UniversalID universalID, SourceArchive sourceArchive, long lastChangeTime, long lastChangeTimeInSourceArchive, DataTypeManager dataMgr)
-
-
Method Detail
-
setNameAndCategory
public void setNameAndCategory(CategoryPath path, java.lang.String name) throws InvalidNameException, DuplicateNameException
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 invalidDuplicateNameException- if a dataType already exists with that name and
-
setName
public void setName(java.lang.String name) throws InvalidNameExceptionDescription 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
public void setCategoryPath(CategoryPath path)
- Specified by:
setCategoryPathin interfaceDataType- Overrides:
setCategoryPathin classAbstractDataType- Parameters:
path- set the categoryPath associated with this data type
-
-