Class SleighLanguageDescription

    • 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 language
        description - language description text
        processor - processor name/family
        endian - data endianess
        instructionEndian - instruction endianess
        size - processor size
        variant - processor variant name
        version - the major version of the language.
        minorVersion - minor version of language
        deprecated - true if this language should only be used for existing programs.
        spaceTruncations - address space truncations (or null)
        compilerSpecDescriptions - one or more compiler spec descriptions
        externalNames - 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.NoSuchElementException
        Get 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 -
      • getManualIndexFile

        public ResourceFile getManualIndexFile()
      • setManualIndexFile

        public void setManualIndexFile​(ResourceFile manualIndexFile)