クラス Compiler

  • 直系の既知のサブクラス:
    Minifier

    public abstract class Compiler
    extends java.lang.Object
    Compiler
    • フィールドの概要

      フィールド 
      修飾子とタイプ フィールド 説明
      protected org.gradle.api.logging.Logger log  
      protected java.lang.String outputExtension  
    • コンストラクタの概要

      コンストラクタ 
      コンストラクタ 説明
      Compiler​(java.lang.String outputExtension, java.lang.String regex, java.util.Set<java.lang.String> excludeRegex, boolean continueIfErrorExist)  
    • メソッドの概要

      すべてのメソッド インスタンス・メソッド abstractメソッド concreteメソッド 
      修飾子とタイプ メソッド 説明
      protected void afterEvaluate​(java.nio.file.Path filePath, java.nio.file.Path outputPath, java.util.Optional<java.lang.Throwable> exception)
      If we handle compile result, this method override.
      protected abstract java.lang.String compile​(java.nio.file.Path filePath)  
      protected void compileExecute​(java.nio.file.Path filePath, java.nio.file.Path outputPath)  
      protected java.nio.file.Path convetToOutputPath​(java.nio.file.Path inputRootPath, java.nio.file.Path outputRootPath, java.nio.file.Path inputFilePath)  
      void execute​(java.io.File inputDirectory, java.io.File outputDirectory)  
      protected java.util.Set<java.nio.file.Path> getTargets​(java.io.File inputDirectory)  
      protected void outputFile​(java.io.File outputFile, java.lang.String content)  
      • クラスから継承されたメソッド java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • フィールドの詳細

      • outputExtension

        protected final java.lang.String outputExtension
      • log

        protected final org.gradle.api.logging.Logger log
    • コンストラクタの詳細

      • Compiler

        public Compiler​(java.lang.String outputExtension,
                        java.lang.String regex,
                        java.util.Set<java.lang.String> excludeRegex,
                        boolean continueIfErrorExist)
    • メソッドの詳細

      • execute

        public final void execute​(java.io.File inputDirectory,
                                  java.io.File outputDirectory)
      • compileExecute

        protected final void compileExecute​(java.nio.file.Path filePath,
                                            java.nio.file.Path outputPath)
      • compile

        protected abstract java.lang.String compile​(java.nio.file.Path filePath)
      • afterEvaluate

        protected void afterEvaluate​(java.nio.file.Path filePath,
                                     java.nio.file.Path outputPath,
                                     java.util.Optional<java.lang.Throwable> exception)
        If we handle compile result, this method override.
        パラメータ:
        filePath - compile target path
        outputPath - compiled output path
        exception - if happened error
      • getTargets

        protected java.util.Set<java.nio.file.Path> getTargets​(java.io.File inputDirectory)
                                                        throws java.io.IOException
        例外:
        java.io.IOException
      • convetToOutputPath

        protected java.nio.file.Path convetToOutputPath​(java.nio.file.Path inputRootPath,
                                                        java.nio.file.Path outputRootPath,
                                                        java.nio.file.Path inputFilePath)
      • outputFile

        protected void outputFile​(java.io.File outputFile,
                                  java.lang.String content)
                           throws java.io.IOException
        例外:
        java.io.IOException