Class FileInfoContainer
java.lang.Object
com.igormaznitsa.jcp.containers.FileInfoContainer
The class is one from the main classes in the preprocessor because it describes a preprocessing file and contains business logic for the process
- Author:
- Igor Maznitsa (igor.maznitsa@igormaznitsa.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanpreprocessFile(PreprocessingState state, PreprocessorContext context) Preprocess file, NB!protected AfterDirectiveProcessingBehaviourprocessDirective(PreprocessingState state, String directiveString, PreprocessorContext context, boolean firstPass) processGlobalDirectives(PreprocessingState state, PreprocessorContext context) voidsetDestinationDir(String destDir) voidsetDestinationName(String destName) voidsetExcluded(boolean flag) toString()
-
Constructor Details
-
FileInfoContainer
-
-
Method Details
-
getSourceFile
-
isExcludedFromPreprocessing
public boolean isExcludedFromPreprocessing() -
isForCopyOnly
public boolean isForCopyOnly() -
getDestinationDir
-
getDestinationName
-
getDestinationFilePath
-
toString
-
processGlobalDirectives
@MustNotContainNull public List<PreprocessingState.ExcludeIfInfo> processGlobalDirectives(PreprocessingState state, PreprocessorContext context) throws IOException - Throws:
IOException
-
preprocessFile
public PreprocessingState preprocessFile(PreprocessingState state, PreprocessorContext context) throws IOException Preprocess file, NB! it doesn't clear local variables automatically for cloned contexts- Parameters:
state- the start preprocessing state, can be nullcontext- the preprocessor context, must not be null- Returns:
- the state for the preprocessed file
- Throws:
IOException- it will be thrown for IO errorsPreprocessorException- it will be thrown for violation of preprocessing logic, like undefined variable
-
processDirective
protected AfterDirectiveProcessingBehaviour processDirective(PreprocessingState state, String directiveString, PreprocessorContext context, boolean firstPass) throws IOException - Throws:
IOException
-
setDestinationDir
-
setDestinationName
-
setExcluded
public void setExcluded(boolean flag)
-