Record Class SourceLanguageSpecExtension.SpecExtensionRule

java.lang.Object
java.lang.Record
ghidra.app.util.sourcelanguage.SourceLanguageSpecExtension.SpecExtensionRule
Record Components:
processor - The name of the processor (required)
endian - The processor endianness ("little" or "big") (could be empty/null for wildcard)
size - The processor size (i.e., "32, "64", etc) (could be empty/null for wildcard)
variant - The processor variant (could be empty/null for wildcard)
formats - The names of the supported binary file formats (could be empty/null for wildcard)
contents - The contents of the SpecExtension, which is currently always XML
Enclosing interface:
SourceLanguageSpecExtension

public static record SourceLanguageSpecExtension.SpecExtensionRule(String processor, String endian, String size, String variant, List<String> formats, String contents) extends Record
Processor-related attributes that form conditions for applying the given spec extension contents to a program
  • Constructor Details

    • SpecExtensionRule

      public SpecExtensionRule(String processor, String endian, String size, String variant, List<String> formats, String contents)
      Creates an instance of a SpecExtensionRule record class.
      Parameters:
      processor - the value for the processor record component
      endian - the value for the endian record component
      size - the value for the size record component
      variant - the value for the variant record component
      formats - the value for the formats record component
      contents - the value for the contents record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • processor

      public String processor()
      Returns the value of the processor record component.
      Returns:
      the value of the processor record component
    • endian

      public String endian()
      Returns the value of the endian record component.
      Returns:
      the value of the endian record component
    • size

      public String size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • variant

      public String variant()
      Returns the value of the variant record component.
      Returns:
      the value of the variant record component
    • formats

      public List<String> formats()
      Returns the value of the formats record component.
      Returns:
      the value of the formats record component
    • contents

      public String contents()
      Returns the value of the contents record component.
      Returns:
      the value of the contents record component