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 int
compareTo(CompilerSpecID o)
boolean
equals(java.lang.Object obj)
java.lang.String
getIdAsString()
Gets the compiler spec ID as a string.int
hashCode()
java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(CompilerSpecID o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<CompilerSpecID>
-
-