public class FileInfoContainer extends Object
Constructor and Description |
---|
FileInfoContainer(File srcFile,
String dstFileName,
boolean copyOnly) |
Modifier and Type | Method and Description |
---|---|
String |
getDestinationDir() |
String |
getDestinationFilePath() |
String |
getDestinationName() |
File |
getSourceFile() |
boolean |
isExcludedFromPreprocessing() |
boolean |
isForCopyOnly() |
PreprocessingState |
preprocessFile(PreprocessingState state,
PreprocessorContext context)
Preprocess file, NB! it doesn't clear local variables automatically for cloned contexts
|
protected AfterDirectiveProcessingBehaviour |
processDirective(PreprocessingState state,
String directiveString,
PreprocessorContext context,
boolean firstPass) |
List<PreprocessingState.ExcludeIfInfo> |
processGlobalDirectives(PreprocessingState state,
PreprocessorContext context) |
void |
setDestinationDir(String destDir) |
void |
setDestinationName(String destName) |
void |
setExcluded(boolean flag) |
String |
toString() |
public File getSourceFile()
public boolean isExcludedFromPreprocessing()
public boolean isForCopyOnly()
public String getDestinationDir()
public String getDestinationName()
public String getDestinationFilePath()
@MustNotContainNull public List<PreprocessingState.ExcludeIfInfo> processGlobalDirectives(PreprocessingState state, PreprocessorContext context) throws IOException
IOException
public PreprocessingState preprocessFile(PreprocessingState state, PreprocessorContext context) throws IOException
state
- the start preprocessing state, can be nullcontext
- the preprocessor context, must not be nullIOException
- it will be thrown for IO errorsPreprocessorException
- it will be thrown for violation of preprocessing logic, like undefined variableprotected AfterDirectiveProcessingBehaviour processDirective(PreprocessingState state, String directiveString, PreprocessorContext context, boolean firstPass) throws IOException
IOException
public void setDestinationDir(String destDir)
public void setDestinationName(String destName)
public void setExcluded(boolean flag)
Copyright © 2011–2020 Igor Maznitsa. All rights reserved.