Class GosuCompiler

    • Field Detail

      • SOURCE_EXTS

        private static final java.lang.String[] SOURCE_EXTS
      • _compilingSourceFile

        protected java.io.File _compilingSourceFile
    • Constructor Detail

      • GosuCompiler

        public GosuCompiler()
    • Method Detail

      • getSourceFiles

        private java.util.List<java.lang.String> getSourceFiles​(CommandLineOptions options)
      • addToSources

        private void addToSources​(java.nio.file.Path sourcePath,
                                  java.util.List<java.lang.String> sourceFiles)
      • isSourceFile

        private boolean isSourceFile​(java.lang.String absolutePathName)
      • makeJavacOptions

        private java.util.List<java.lang.String> makeJavacOptions​(CommandLineOptions options)
      • getType

        private IType getType​(java.io.File file)
      • isCompilable

        private boolean isCompilable​(IType type)
      • createJavaOutputFiles

        private void createJavaOutputFiles​(java.util.Collection<manifold.internal.javac.InMemoryClassJavaFileObject> compiledJavaFiles,
                                           ICompilerDriver driver)
      • getStackTrace

        public static java.lang.String getStackTrace​(java.lang.Throwable e)
      • combine

        private java.lang.String combine​(java.lang.String message1,
                                         java.lang.String message2)
      • mkDir

        private boolean mkDir​(java.io.File file)
      • mkdirs

        private boolean mkdirs​(java.io.File file)
      • createNewFile

        private boolean createNewFile​(java.io.File file)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • maybeCopySourceFile

        private void maybeCopySourceFile​(java.io.File parent,
                                         IGosuClass gsClass,
                                         java.io.File sourceFile,
                                         ICompilerDriver driver)
      • copyFile

        public void copyFile​(java.io.File sourceFile,
                             java.io.File destFile)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • populateGosuClassFile

        private void populateGosuClassFile​(java.io.File outputFile,
                                           IGosuClass gosuClass,
                                           ICompilerDriver driver)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • populateJavaClassFile

        private void populateJavaClassFile​(java.io.File outputFile,
                                           byte[] bytes,
                                           ICompilerDriver driver)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • initializeGosu

        public long initializeGosu​(java.util.List<java.lang.String> sourceFolders,
                                   java.util.List<java.lang.String> classpath,
                                   java.util.List<java.lang.String> backingSourcePath,
                                   java.lang.String outputPath)
        Specified by:
        initializeGosu in interface IGosuCompiler
      • createFileSystemInstance

        private static IFileSystem createFileSystemInstance()
      • isPathIgnored

        public boolean isPathIgnored​(java.lang.String sourceFile)
        Specified by:
        isPathIgnored in interface IGosuCompiler