Package ghidra.program.model.lang
Class SleighLanguageDescription
java.lang.Object
ghidra.program.model.lang.BasicLanguageDescription
ghidra.program.model.lang.SleighLanguageDescription
- All Implemented Interfaces:
LanguageDescription
Class for holding Language identifiers
-
Constructor Summary
ConstructorDescriptionSleighLanguageDescription
(LanguageID id, String description, Processor processor, Endian endian, Endian instructionEndian, int size, String variant, int version, int minorVersion, boolean deprecated, Map<String, Integer> spaceTruncations, List<CompilerSpecDescription> compilerSpecDescriptions, Map<String, List<String>> externalNames) Construct a new language description -
Method Summary
Modifier and TypeMethodDescriptionGet the specification file (if it exists)Get the specification file (if it exists)int
getTruncatedSpaceSize
(String spaceName) Get the truncated space size for the specified address spacevoid
setDefsFile
(ResourceFile defsFile) Set the (optional) specification file associated with this languagevoid
setManualIndexFile
(ResourceFile manualIndexFile) void
setSlaFile
(ResourceFile slaFile) void
setSpecFile
(ResourceFile specFile) Set the (optional) specification file associated with this languageMethods inherited from class ghidra.program.model.lang.BasicLanguageDescription
equals, getCompatibleCompilerSpecDescriptions, getCompilerSpecDescriptionByID, getDescription, getEndian, getExternalNames, getInstructionEndian, getLanguageID, getMinorVersion, getProcessor, getSize, getVariant, getVersion, hashCode, isDeprecated, toString
-
Constructor Details
-
SleighLanguageDescription
public SleighLanguageDescription(LanguageID id, String description, Processor processor, Endian endian, Endian instructionEndian, int size, String variant, int version, int minorVersion, boolean deprecated, Map<String, Integer> spaceTruncations, List<CompilerSpecDescription> compilerSpecDescriptions, Map<String, List<String>> externalNames) Construct a new language description- Parameters:
id
- the name of the languagedescription
- language description textprocessor
- processor name/familyendian
- data endiannessinstructionEndian
- instruction endiannesssize
- processor sizevariant
- processor variant nameversion
- the major version of the language.minorVersion
- minor version of languagedeprecated
- true if this language should only be used for existing programs.spaceTruncations
- address space truncations (or null)compilerSpecDescriptions
- one or more compiler spec descriptionsexternalNames
- collection of external tools' names for the language
-
-
Method Details
-
getTruncatedSpaceNames
- Returns:
- set of address space names which have been identified for truncation
-
getTruncatedSpaceSize
Get the truncated space size for the specified address space- Parameters:
spaceName
- address space name- Returns:
- truncated space size in bytes
- Throws:
NoSuchElementException
-
setDefsFile
Set the (optional) specification file associated with this language- Parameters:
defsFile
- the specFile to associate with this description.
-
getDefsFile
Get the specification file (if it exists)- Returns:
- specification file
-
setSpecFile
Set the (optional) specification file associated with this language- Parameters:
specFile
- the specFile to associate with this description.
-
getSpecFile
Get the specification file (if it exists)- Returns:
- specification file
-
setSlaFile
- Parameters:
slaFile
-
-
getSlaFile
- Returns:
-
getManualIndexFile
-
setManualIndexFile
-