Package ghidra.program.model.lang
Class BasicLanguageDescription
java.lang.Object
ghidra.program.model.lang.BasicLanguageDescription
- All Implemented Interfaces:
LanguageDescription
- Direct Known Subclasses:
SleighLanguageDescription
-
Constructor Summary
ConstructorDescriptionBasicLanguageDescription
(LanguageID id, Processor processor, Endian endian, Endian instructionEndian, int size, String variant, String description, int version, int minorVersion, boolean deprecated, CompilerSpecDescription compilerSpec, Map<String, List<String>> externalNames) BasicLanguageDescription
(LanguageID id, Processor processor, Endian endian, Endian instructionEndian, int size, String variant, String description, int version, int minorVersion, boolean deprecated, List<CompilerSpecDescription> compilerSpecs, Map<String, List<String>> externalNames) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCompilerSpecDescriptionByID
(CompilerSpecID compilerSpecID) getExternalNames
(String key) Returns external names for this language associated with other tools.int
int
getSize()
int
int
hashCode()
boolean
toString()
-
Constructor Details
-
BasicLanguageDescription
-
BasicLanguageDescription
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getDescription
- Specified by:
getDescription
in interfaceLanguageDescription
-
getEndian
- Specified by:
getEndian
in interfaceLanguageDescription
-
getInstructionEndian
- Specified by:
getInstructionEndian
in interfaceLanguageDescription
-
getLanguageID
- Specified by:
getLanguageID
in interfaceLanguageDescription
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceLanguageDescription
-
getVersion
public int getVersion()- Specified by:
getVersion
in interfaceLanguageDescription
-
getProcessor
- Specified by:
getProcessor
in interfaceLanguageDescription
-
getSize
public int getSize()- Specified by:
getSize
in interfaceLanguageDescription
-
getVariant
- Specified by:
getVariant
in interfaceLanguageDescription
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecated
in interfaceLanguageDescription
-
getCompatibleCompilerSpecDescriptions
- Specified by:
getCompatibleCompilerSpecDescriptions
in interfaceLanguageDescription
-
getCompilerSpecDescriptionByID
public CompilerSpecDescription getCompilerSpecDescriptionByID(CompilerSpecID compilerSpecID) throws CompilerSpecNotFoundException - Specified by:
getCompilerSpecDescriptionByID
in interfaceLanguageDescription
- Throws:
CompilerSpecNotFoundException
-
toString
-
getExternalNames
Description copied from interface:LanguageDescription
Returns external names for this language associated with other tools. For example, x86 languages are usually referred to as "metapc" by IDA-PRO. So, getExternalNames("IDA-PRO") will return "metapc" for most x86 languages.- Specified by:
getExternalNames
in interfaceLanguageDescription
- Parameters:
key
- external tool for looking up external tool names- Returns:
- external names for this language associated with tool 'key' -- null if there are no results
-