Package ghidra.program.model.lang
Class BasicLanguageDescription
- java.lang.Object
-
- ghidra.program.model.lang.BasicLanguageDescription
-
- All Implemented Interfaces:
LanguageDescription
- Direct Known Subclasses:
SleighLanguageDescription
public class BasicLanguageDescription extends java.lang.Object implements LanguageDescription
-
-
Constructor Summary
Constructors Constructor Description BasicLanguageDescription(LanguageID id, Processor processor, Endian endian, Endian instructionEndian, int size, java.lang.String variant, java.lang.String description, int version, int minorVersion, boolean deprecated, CompilerSpecDescription compilerSpec, java.util.Map<java.lang.String,java.util.List<java.lang.String>> externalNames)
BasicLanguageDescription(LanguageID id, Processor processor, Endian endian, Endian instructionEndian, int size, java.lang.String variant, java.lang.String description, int version, int minorVersion, boolean deprecated, java.util.List<CompilerSpecDescription> compilerSpecs, java.util.Map<java.lang.String,java.util.List<java.lang.String>> externalNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<CompilerSpecDescription>
getCompatibleCompilerSpecDescriptions()
CompilerSpecDescription
getCompilerSpecDescriptionByID(CompilerSpecID compilerSpecID)
java.lang.String
getDescription()
Endian
getEndian()
java.util.List<java.lang.String>
getExternalNames(java.lang.String key)
Returns external names for this language associated with other tools.Endian
getInstructionEndian()
LanguageID
getLanguageID()
int
getMinorVersion()
Processor
getProcessor()
int
getSize()
java.lang.String
getVariant()
int
getVersion()
int
hashCode()
boolean
isDeprecated()
java.lang.String
toString()
-
-
-
Constructor Detail
-
BasicLanguageDescription
public BasicLanguageDescription(LanguageID id, Processor processor, Endian endian, Endian instructionEndian, int size, java.lang.String variant, java.lang.String description, int version, int minorVersion, boolean deprecated, CompilerSpecDescription compilerSpec, java.util.Map<java.lang.String,java.util.List<java.lang.String>> externalNames)
-
BasicLanguageDescription
public BasicLanguageDescription(LanguageID id, Processor processor, Endian endian, Endian instructionEndian, int size, java.lang.String variant, java.lang.String description, int version, int minorVersion, boolean deprecated, java.util.List<CompilerSpecDescription> compilerSpecs, java.util.Map<java.lang.String,java.util.List<java.lang.String>> externalNames)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceLanguageDescription
-
getEndian
public Endian getEndian()
- Specified by:
getEndian
in interfaceLanguageDescription
-
getInstructionEndian
public Endian getInstructionEndian()
- Specified by:
getInstructionEndian
in interfaceLanguageDescription
-
getLanguageID
public LanguageID 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
public Processor getProcessor()
- Specified by:
getProcessor
in interfaceLanguageDescription
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceLanguageDescription
-
getVariant
public java.lang.String getVariant()
- Specified by:
getVariant
in interfaceLanguageDescription
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecated
in interfaceLanguageDescription
-
getCompatibleCompilerSpecDescriptions
public java.util.List<CompilerSpecDescription> getCompatibleCompilerSpecDescriptions()
- Specified by:
getCompatibleCompilerSpecDescriptions
in interfaceLanguageDescription
-
getCompilerSpecDescriptionByID
public CompilerSpecDescription getCompilerSpecDescriptionByID(CompilerSpecID compilerSpecID) throws CompilerSpecNotFoundException
- Specified by:
getCompilerSpecDescriptionByID
in interfaceLanguageDescription
- Throws:
CompilerSpecNotFoundException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getExternalNames
public java.util.List<java.lang.String> getExternalNames(java.lang.String key)
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
-
-