Enum Class SpecExtension.Type

java.lang.Object
java.lang.Enum<SpecExtension.Type>
ghidra.program.database.SpecExtension.Type
All Implemented Interfaces:
Serializable, Comparable<SpecExtension.Type>, Constable
Enclosing class:
SpecExtension

public static enum SpecExtension.Type extends Enum<SpecExtension.Type>
The possible types of spec extensions.
  • Enum Constant Details

  • Method Details

    • values

      public static SpecExtension.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SpecExtension.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getTagName

      public String getTagName()
      Get the XML tag name associated with the specific extension type.
      Returns:
      the tag name
    • getOptionName

      public String getOptionName(String formalName)
      For a given extension's formal name, generate the option name used to store the extension. The option name is the tag name concatenated with the formal name, separated by '_'
      Parameters:
      formalName - is the formal name of the extension
      Returns:
      the option name