Class LanguageID

  • All Implemented Interfaces:
    java.lang.Comparable<LanguageID>

    public class LanguageID
    extends java.lang.Object
    implements java.lang.Comparable<LanguageID>
    Represents an opinion's processor language (x86:LE:32:default, 8051:BE:16:default, etc).
    • Constructor Summary

      Constructors 
      Constructor Description
      LanguageID​(java.lang.String id)
      Creates a new language ID.
    • Constructor Detail

      • LanguageID

        public LanguageID​(java.lang.String id)
        Creates a new language ID.
        Parameters:
        id - The language ID (x86:LE:32:default, 8051:BE:16:default, etc).
        Throws:
        java.lang.IllegalArgumentException - if the language ID is null or empty.
    • Method Detail

      • getIdAsString

        public java.lang.String getIdAsString()
        Gets the compiler spec ID as a string.
        Returns:
        The compilers spec ID as a string.
        Throws:
        java.lang.IllegalArgumentException - if the compiler spec ID is not null or empty.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(LanguageID o)
        Specified by:
        compareTo in interface java.lang.Comparable<LanguageID>