com.android.ide.common.res2
Class NoOpResourcePreprocessor

java.lang.Object
  extended by com.android.ide.common.res2.NoOpResourcePreprocessor
All Implemented Interfaces:
ResourcePreprocessor

public class NoOpResourcePreprocessor
extends java.lang.Object
implements ResourcePreprocessor

A ResourcePreprocessor used when no other preprocessor is enabled.


Constructor Summary
NoOpResourcePreprocessor()
           
 
Method Summary
 void generateFile(java.io.File toBeGenerated, java.io.File original)
          Actually generate the file based on the original file.
 java.util.Collection<java.io.File> getFilesToBeGenerated(java.io.File original)
          Returns the paths that should be generated for the given file.
 boolean needsPreprocessing(java.io.File file)
          Checks if the given file should be replaced by N generated files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpResourcePreprocessor

public NoOpResourcePreprocessor()
Method Detail

needsPreprocessing

public boolean needsPreprocessing(java.io.File file)
Description copied from interface: ResourcePreprocessor
Checks if the given file should be replaced by N generated files.

Specified by:
needsPreprocessing in interface ResourcePreprocessor

getFilesToBeGenerated

public java.util.Collection<java.io.File> getFilesToBeGenerated(java.io.File original)
Description copied from interface: ResourcePreprocessor
Returns the paths that should be generated for the given file.

Specified by:
getFilesToBeGenerated in interface ResourcePreprocessor

generateFile

public void generateFile(java.io.File toBeGenerated,
                         java.io.File original)
                  throws java.io.IOException
Description copied from interface: ResourcePreprocessor
Actually generate the file based on the original file.

Specified by:
generateFile in interface ResourcePreprocessor
Throws:
java.io.IOException