public final class JCPreprocessor
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JCPreprocessor.PreprocessingStatistics |
| Modifier and Type | Field and Description |
|---|---|
(package private) static CommandLineHandler[] |
COMMAND_LINE_HANDLERS |
private PreprocessorContext |
context |
| Constructor and Description |
|---|
JCPreprocessor(PreprocessorContext context) |
| Modifier and Type | Method and Description |
|---|---|
private void |
createDestinationDirectory() |
JCPreprocessor.PreprocessingStatistics |
execute() |
private java.util.Set<java.io.File> |
findAllFiles(java.lang.String baseFolderCanonicalPath,
java.io.File dir,
AntPathMatcher antPathMatcher,
java.lang.String[] excludedFolderPatterns) |
private java.util.Collection<FileInfoContainer> |
findAllFilesToBePreprocessed(java.io.File[] srcDirs,
java.lang.String[] excludedFolderPatterns) |
static java.lang.Iterable<CommandLineHandler> |
getCommandLineHandlers() |
PreprocessorContext |
getContext() |
private static void |
help() |
static void |
main(java.lang.String... args) |
private JCPreprocessor.PreprocessingStatistics |
preprocessFiles(java.util.Collection<FileInfoContainer> files) |
private static void |
printHeader() |
(package private) void |
processCfgFiles() |
private static PreprocessorContext |
processCommandString(PreprocessorContext context,
java.lang.String[] originalStrings,
java.lang.String[] normalizedStrings) |
private void |
processFileExclusion(java.util.List<PreprocessingState.ExcludeIfInfo> foundExcludeIf) |
private java.util.List<PreprocessingState.ExcludeIfInfo> |
processGlobalDirectives(java.util.Collection<FileInfoContainer> files) |
private final PreprocessorContext context
static final CommandLineHandler[] COMMAND_LINE_HANDLERS
public JCPreprocessor(PreprocessorContext context)
public static java.lang.Iterable<CommandLineHandler> getCommandLineHandlers()
public PreprocessorContext getContext()
public JCPreprocessor.PreprocessingStatistics execute() throws java.io.IOException
java.io.IOExceptionprivate void processFileExclusion(@MustNotContainNull java.util.List<PreprocessingState.ExcludeIfInfo> foundExcludeIf)
@MustNotContainNull private java.util.List<PreprocessingState.ExcludeIfInfo> processGlobalDirectives(@MustNotContainNull java.util.Collection<FileInfoContainer> files) throws java.io.IOException
java.io.IOExceptionprivate JCPreprocessor.PreprocessingStatistics preprocessFiles(@MustNotContainNull java.util.Collection<FileInfoContainer> files) throws java.io.IOException
java.io.IOExceptionprivate void createDestinationDirectory()
throws java.io.IOException
java.io.IOException@MustNotContainNull private java.util.Collection<FileInfoContainer> findAllFilesToBePreprocessed(@MustNotContainNull java.io.File[] srcDirs, @MustNotContainNull java.lang.String[] excludedFolderPatterns) throws java.io.IOException
java.io.IOExceptionprivate java.util.Set<java.io.File> findAllFiles(java.lang.String baseFolderCanonicalPath,
java.io.File dir,
AntPathMatcher antPathMatcher,
@MustNotContainNull
java.lang.String[] excludedFolderPatterns)
throws java.io.IOException
java.io.IOExceptionpublic static void main(@MustNotContainNull java.lang.String... args)
private static PreprocessorContext processCommandString(PreprocessorContext context, @MustNotContainNull java.lang.String[] originalStrings, @MustNotContainNull java.lang.String[] normalizedStrings) throws java.io.IOException
java.io.IOExceptionvoid processCfgFiles()
throws java.io.IOException
java.io.IOExceptionprivate static void printHeader()
private static void help()