Enum AnalyzerType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AnalyzerType>

    public enum AnalyzerType
    extends java.lang.Enum<AnalyzerType>
    AnalyzerType defines various types of analyzers that Ghidra provides. Analyzers get kicked off based on certain events or conditions, such as a function being defined at a location. Currently there are four types (although only three are used, Data really has no analyzers yet). BYTES - analyze anywhere defined bytes are present (block of memory added) INSTRUCTIONS - analyze anywhere instructions are defined FUNCTIONS - analyze where a function is defined FUNCTION-MODIFIERS - analyze functions whose modifiers have changed modifiers include: - FUNCTION_CHANGED_THUNK - FUNCTION_CHANGED_INLINE - FUNCTION_CHANGED_NORETURN - FUNCTION_CHANGED_CALL_FIXUP - FUNCTION_CHANGED_PURGE FUNCTION-SIGNATURES - analyze functions whose signatures have changed signature include: - FUNCTION_CHANGED_PARAMETERS - FUNCTION_CHANGED_RETURN DATA - analyze where data has been defined. An analyzer can be kicked off because something has caused a change to program, such as adding a function. They can also be kicked off because a specific area of the program has been requested to be analyzed by the user.
    • Enum Constant Detail

      • BYTE_ANALYZER

        public static final AnalyzerType BYTE_ANALYZER
      • INSTRUCTION_ANALYZER

        public static final AnalyzerType INSTRUCTION_ANALYZER
      • FUNCTION_ANALYZER

        public static final AnalyzerType FUNCTION_ANALYZER
      • FUNCTION_MODIFIERS_ANALYZER

        public static final AnalyzerType FUNCTION_MODIFIERS_ANALYZER
      • FUNCTION_SIGNATURES_ANALYZER

        public static final AnalyzerType FUNCTION_SIGNATURES_ANALYZER
      • DATA_ANALYZER

        public static final AnalyzerType DATA_ANALYZER
      • ONE_SHOT_ANALYZER

        public static final AnalyzerType ONE_SHOT_ANALYZER
    • Method Detail

      • values

        public static AnalyzerType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AnalyzerType c : AnalyzerType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AnalyzerType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Return the name of this AnalyzerType.
      • getDescription

        public java.lang.String getDescription()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<AnalyzerType>