Class AbstractOsFileConventions

  • All Implemented Interfaces:
    OsFileConventions
    Direct Known Subclasses:
    PosixFileConventions, WindowsFileConventions

    public abstract class AbstractOsFileConventions
    extends java.lang.Object
    implements OsFileConventions
    Default implementation of the 'File' methods which are all pass-through. These are here to be overridden in tests that work with -nB scripts from other platforms.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static OsFileConventions createForCurrentHost()
      Return an implementation of ScriptOSFileConventions that will work when the Host OS is the same as the OS that generated the ndk-build -nB script.
      java.lang.String getFileName​(java.lang.String filename)  
      java.lang.String getFileParent​(java.lang.String filename)  
      boolean isPathAbsolute​(java.lang.String file)  
      java.io.File toFile​(java.io.File parent, java.lang.String child)  
      java.io.File toFile​(java.lang.String filename)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractOsFileConventions

        public AbstractOsFileConventions()
    • Method Detail

      • createForCurrentHost

        public static OsFileConventions createForCurrentHost()
        Return an implementation of ScriptOSFileConventions that will work when the Host OS is the same as the OS that generated the ndk-build -nB script.
      • getFileParent

        @NonNull
        public java.lang.String getFileParent​(@NonNull
                                              java.lang.String filename)
        Specified by:
        getFileParent in interface OsFileConventions
      • getFileName

        @NonNull
        public java.lang.String getFileName​(@NonNull
                                            java.lang.String filename)
        Specified by:
        getFileName in interface OsFileConventions
      • toFile

        @NonNull
        public java.io.File toFile​(@NonNull
                                   java.lang.String filename)
        Specified by:
        toFile in interface OsFileConventions
      • toFile

        @NonNull
        public java.io.File toFile​(@NonNull
                                   java.io.File parent,
                                   @NonNull
                                   java.lang.String child)
        Specified by:
        toFile in interface OsFileConventions