Package ghidra.program.model.lang
Class CompilerSpecID
- java.lang.Object
-
- ghidra.program.model.lang.CompilerSpecID
-
- All Implemented Interfaces:
java.lang.Comparable<CompilerSpecID>
public class CompilerSpecID extends java.lang.Object implements java.lang.Comparable<CompilerSpecID>
Represents an opinion's compiler (gcc, borlandcpp, etc).
-
-
Constructor Summary
Constructors Constructor Description CompilerSpecID(java.lang.String id)Creates a new compiler spec ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CompilerSpecID o)booleanequals(java.lang.Object obj)java.lang.StringgetIdAsString()Gets the compiler spec ID as a string.inthashCode()java.lang.StringtoString()
-
-
-
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 null or empty.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(CompilerSpecID o)
- Specified by:
compareToin interfacejava.lang.Comparable<CompilerSpecID>
-
-