Package ghidra.program.model.lang
Class SleighLanguageDescription
- java.lang.Object
-
- ghidra.program.model.lang.BasicLanguageDescription
-
- ghidra.program.model.lang.SleighLanguageDescription
-
- All Implemented Interfaces:
LanguageDescription
public class SleighLanguageDescription extends BasicLanguageDescription
Class for holding Language identifiers
-
-
Constructor Summary
Constructors Constructor Description SleighLanguageDescription(LanguageID id, java.lang.String description, Processor processor, Endian endian, Endian instructionEndian, int size, java.lang.String variant, int version, int minorVersion, boolean deprecated, java.util.Map<java.lang.String,java.lang.Integer> spaceTruncations, java.util.List<CompilerSpecDescription> compilerSpecDescriptions, java.util.Map<java.lang.String,java.util.List<java.lang.String>> externalNames)Construct a new language description
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceFilegetDefsFile()Get the specification file (if it exists)ResourceFilegetManualIndexFile()ResourceFilegetSlaFile()ResourceFilegetSpecFile()Get the specification file (if it exists)java.util.Set<java.lang.String>getTruncatedSpaceNames()intgetTruncatedSpaceSize(java.lang.String spaceName)Get the truncated space size for the specified address spacevoidsetDefsFile(ResourceFile defsFile)Set the (optional) specification file associated with this languagevoidsetManualIndexFile(ResourceFile manualIndexFile)voidsetSlaFile(ResourceFile slaFile)voidsetSpecFile(ResourceFile specFile)Set the (optional) specification file associated with this language-
Methods 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 Detail
-
SleighLanguageDescription
public SleighLanguageDescription(LanguageID id, java.lang.String description, Processor processor, Endian endian, Endian instructionEndian, int size, java.lang.String variant, int version, int minorVersion, boolean deprecated, java.util.Map<java.lang.String,java.lang.Integer> spaceTruncations, java.util.List<CompilerSpecDescription> compilerSpecDescriptions, java.util.Map<java.lang.String,java.util.List<java.lang.String>> externalNames)
Construct a new language description- Parameters:
id- the name of the languagedescription- language description textprocessor- processor name/familyendian- data endianessinstructionEndian- instruction endianesssize- 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 Detail
-
getTruncatedSpaceNames
public java.util.Set<java.lang.String> getTruncatedSpaceNames()
- Returns:
- set of address space names which have been identified for truncation
-
getTruncatedSpaceSize
public int getTruncatedSpaceSize(java.lang.String spaceName) throws java.util.NoSuchElementExceptionGet the truncated space size for the specified address space- Parameters:
spaceName- address space name- Returns:
- truncated space size in bytes
- Throws:
java.util.NoSuchElementException
-
setDefsFile
public void setDefsFile(ResourceFile defsFile)
Set the (optional) specification file associated with this language- Parameters:
defsFile- the specFile to associate with this description.
-
getDefsFile
public ResourceFile getDefsFile()
Get the specification file (if it exists)- Returns:
- specification file
-
setSpecFile
public void setSpecFile(ResourceFile specFile)
Set the (optional) specification file associated with this language- Parameters:
specFile- the specFile to associate with this description.
-
getSpecFile
public ResourceFile getSpecFile()
Get the specification file (if it exists)- Returns:
- specification file
-
setSlaFile
public void setSlaFile(ResourceFile slaFile)
- Parameters:
slaFile-
-
getSlaFile
public ResourceFile getSlaFile()
- Returns:
-
getManualIndexFile
public ResourceFile getManualIndexFile()
-
setManualIndexFile
public void setManualIndexFile(ResourceFile manualIndexFile)
-
-