Class FactoryStructureDataType

    • Constructor Detail

      • FactoryStructureDataType

        protected FactoryStructureDataType​(java.lang.String name,
                                           DataTypeManager dtm)
        Constructs a new DynamicStructureDataType with the given name
        Parameters:
        name - the name of this dataType
    • Method Detail

      • clone

        public abstract DataType clone​(DataTypeManager dtm)
        Description copied from interface: DataType
        Returns an instance of this DataType with its universalID and SourceArchive identity retained.

        The current instanceof will be returned if this datatype's DataTypeManager matches the specified dtm. The recursion depth of a clone will stop on any datatype whose DataTypeManager matches the specified dtm and simply use the existing datatype instance.

        Specified by:
        clone in interface DataType
        Parameters:
        dtm - the data-type manager instance whose data-organization should apply.
        Returns:
        cloned instance which may be the same as this instance
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: DataType
        Get a String briefly describing this DataType.
        Specified by:
        getDescription in interface DataType
        Returns:
        a one-liner describing this DataType.
        See Also:
        DataType.getDescription()
      • getDataType

        public DataType getDataType​(MemBuffer buf)
        Description copied from interface: FactoryDataType
        Returns the appropriate DataType which corresponds to the specified memory location.
        Specified by:
        getDataType in interface FactoryDataType
        Parameters:
        buf - memory location
        Returns:
        fabricated datatype based upon memory data
      • setCategoryPath

        protected Structure setCategoryPath​(Structure struct,
                                            MemBuffer buf)
        Set the category of this data type.
        Parameters:
        struct -
        buf -
        Returns:
        Returns a new structure with the correct category.
      • populateDynamicStructure

        protected abstract void populateDynamicStructure​(MemBuffer buf,
                                                         Structure es)