Package com.igormaznitsa.jcp
Class JCPreprocessor
java.lang.Object
com.igormaznitsa.jcp.JCPreprocessor
The main class implements the Java Comment Preprocessor, it has the main
method and can be started from a command string
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final CommandLineHandler[]
private final PreprocessorContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
execute()
findAllFiles
(String baseFolderCanonicalPath, File dir, AntPathMatcher antPathMatcher, String[] excludedFolderPatterns) private Collection
<FileInfoContainer> findAllFilesToBePreprocessed
(File[] srcDirs, String[] excludedFolderPatterns) static Iterable
<CommandLineHandler> private static void
help()
static void
private static void
(package private) void
private static PreprocessorContext
processCommandString
(PreprocessorContext context, String[] originalStrings, String[] normalizedStrings) private void
processFileExclusion
(List<PreprocessingState.ExcludeIfInfo> foundExcludeIf) private List
<PreprocessingState.ExcludeIfInfo>
-
Field Details
-
context
-
COMMAND_LINE_HANDLERS
-
-
Constructor Details
-
JCPreprocessor
-
-
Method Details
-
getCommandLineHandlers
-
getContext
-
execute
- Throws:
IOException
-
processFileExclusion
private void processFileExclusion(@MustNotContainNull List<PreprocessingState.ExcludeIfInfo> foundExcludeIf) -
processGlobalDirectives
@MustNotContainNull private List<PreprocessingState.ExcludeIfInfo> processGlobalDirectives(@MustNotContainNull Collection<FileInfoContainer> files) throws IOException - Throws:
IOException
-
preprocessFiles
private JCPreprocessor.PreprocessingStatistics preprocessFiles(@MustNotContainNull Collection<FileInfoContainer> files) throws IOException - Throws:
IOException
-
createDestinationDirectory
- Throws:
IOException
-
findAllFilesToBePreprocessed
@MustNotContainNull private Collection<FileInfoContainer> findAllFilesToBePreprocessed(@MustNotContainNull File[] srcDirs, @MustNotContainNull String[] excludedFolderPatterns) throws IOException - Throws:
IOException
-
findAllFiles
private Set<File> findAllFiles(String baseFolderCanonicalPath, File dir, AntPathMatcher antPathMatcher, @MustNotContainNull String[] excludedFolderPatterns) throws IOException - Throws:
IOException
-
main
-
processCommandString
private static PreprocessorContext processCommandString(PreprocessorContext context, @MustNotContainNull String[] originalStrings, @MustNotContainNull String[] normalizedStrings) throws IOException - Throws:
IOException
-
processCfgFiles
- Throws:
IOException
-
printHeader
private static void printHeader() -
help
private static void help()
-