Interface DataTypeArchive

    • Field Detail

      • DATA_TYPE_ARCHIVE_INFO

        static final java.lang.String DATA_TYPE_ARCHIVE_INFO
        Name of data type archive information property list
        See Also:
        Constant Field Values
      • DATA_TYPE_ARCHIVE_SETTINGS

        static final java.lang.String DATA_TYPE_ARCHIVE_SETTINGS
        Name of data type archive settings property list
        See Also:
        Constant Field Values
      • DATE_CREATED

        static final java.lang.String DATE_CREATED
        Name of date created property
        See Also:
        Constant Field Values
      • CREATED_WITH_GHIDRA_VERSION

        static final java.lang.String CREATED_WITH_GHIDRA_VERSION
        Name of ghidra version property
        See Also:
        Constant Field Values
      • JANUARY_1_1970

        static final java.util.Date JANUARY_1_1970
        A date from January 1, 1970
    • Method Detail

      • getDefaultPointerSize

        int getDefaultPointerSize()
        Gets the default pointer size as it may be stored within the data type archive.
        Returns:
        default pointer size.
      • getCreationDate

        java.util.Date getCreationDate()
        Returns the creation date of this data type archive. existed, then Jan 1, 1970 is returned.
        Returns:
        the creation date of this data type archive
      • getChanges

        DataTypeArchiveChangeSet getChanges()
        Get the data type archive changes since the last save as a set of addresses.
        Returns:
        set of changed addresses within program.
      • setChanged

        void setChanged​(int type,
                        java.lang.Object oldValue,
                        java.lang.Object newValue)
        Mark the state this data type archive as having changed and generate the event. Any or all parameters may be null.
        Parameters:
        type - event type
        oldValue - original value
        newValue - new value
      • setObjChanged

        void setObjChanged​(int type,
                           java.lang.Object affectedObj,
                           java.lang.Object oldValue,
                           java.lang.Object newValue)
        Mark the state of a data type archive as having changed and generate the event. Any or all parameters may be null.
        Parameters:
        type - event type
        affectedObj - object that is the subject of the event
        oldValue - original value or an Object that is related to the event
        newValue - new value or an Object that is related to the the event
      • invalidate

        void invalidate()
        Invalidates any caching in a data type archive. NOTE: Over-using this method can adversely affect system performance.
      • updateID

        void updateID()