Class IccLinker

  • All Implemented Interfaces:
    java.lang.Cloneable, Linker, Processor

    public final class IccLinker
    extends CommandLineLinker
    Adapter for the IBM (R) OS/390 (tm) Linker
    Author:
    Hiram Chirino (cojonudo14@hotmail.com)
    • Method Detail

      • getDataSetInstance

        public static IccLinker getDataSetInstance()
      • getInstance

        public static IccLinker getInstance()
      • addBase

        protected void addBase​(long base,
                               java.util.Vector args)
        Specified by:
        addBase in class CommandLineLinker
      • addFixed

        protected void addFixed​(java.lang.Boolean fixed,
                                java.util.Vector args)
        Specified by:
        addFixed in class CommandLineLinker
      • addIncremental

        protected void addIncremental​(boolean incremental,
                                      java.util.Vector args)
        Specified by:
        addIncremental in class CommandLineLinker
      • addLibrarySets

        protected java.lang.String[] addLibrarySets​(CCTask task,
                                                    LibrarySet[] libsets,
                                                    java.util.Vector preargs,
                                                    java.util.Vector midargs,
                                                    java.util.Vector endargs)
        Overrides:
        addLibrarySets in class CommandLineLinker
      • addMap

        protected void addMap​(boolean map,
                              java.util.Vector args)
        Specified by:
        addMap in class CommandLineLinker
      • addStack

        protected void addStack​(int stack,
                                java.util.Vector args)
        Specified by:
        addStack in class CommandLineLinker
      • addEntry

        protected void addEntry​(java.lang.String entry,
                                java.util.Vector args)
        Specified by:
        addEntry in class CommandLineLinker
      • getLibraryPath

        public java.io.File[] getLibraryPath()
        Description copied from interface: Linker
        returns the library path for the linker
      • getLibraryPatterns

        public java.lang.String[] getLibraryPatterns​(java.lang.String[] libnames,
                                                     LibraryTypeEnum libType)
        Description copied from interface: Linker
        Returns a set of filename patterns corresponding to library names. For example, "advapi32" would be expanded to "advapi32.dll" by DevStudioLinker and to "libadvapi32.a" and "libadvapi32.so" by GccLinker.
        Parameters:
        libnames - array of library names
      • getLinker

        public Linker getLinker​(LinkType linkType)
        Description copied from interface: Linker
        Gets the linker for the specified link type.
        Returns:
        appropriate linker or null, will return this if this linker can handle the specified link type
      • isCaseSensitive

        public boolean isCaseSensitive()
        Description copied from interface: Linker
        Returns true if the linker is case-sensitive
      • runCommand

        protected int runCommand​(CCTask task,
                                 java.io.File workingDir,
                                 java.lang.String[] cmdline)
                          throws org.apache.tools.ant.BuildException
        Description copied from class: CommandLineLinker
        This method is exposed so test classes can overload and test the arguments without actually spawning the compiler
        Overrides:
        runCommand in class CommandLineLinker
        Throws:
        org.apache.tools.ant.BuildException
      • getOutputFileNames

        public java.lang.String[] getOutputFileNames​(java.lang.String baseName,
                                                     VersionInfo versionInfo)
        Description copied from interface: Processor
        Output file name (no path components) corresponding to source file
        Specified by:
        getOutputFileNames in interface Processor
        Overrides:
        getOutputFileNames in class CommandLineLinker
        Parameters:
        baseName - input file
        Returns:
        output file name or null if no output file or name not determined by input file