public final class PreprocessingState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PreprocessingState.ExcludeIfInfo |
static class |
PreprocessingState.PrinterType |
Modifier and Type | Field and Description |
---|---|
static FilePositionInfo[] |
EMPTY_STACK |
static int |
MAX_WRITE_BUFFER_SIZE |
public static final FilePositionInfo[] EMPTY_STACK
public static final int MAX_WRITE_BUFFER_SIZE
public String getLastReadString()
public void pushExcludeIfData(FileInfoContainer infoContainer, String excludeIfCondition, int stringIndex)
@MustNotContainNull public List<PreprocessingState.ExcludeIfInfo> popAllExcludeIfInfoData()
public PreprocessingState.ExcludeIfInfo popExcludeIfData()
public Set<PreprocessingFlag> getPreprocessingFlags()
public ResetablePrinter getPrinter() throws IOException
IOException
public TextFileDataContainer getRootTextContainer()
public TextFileDataContainer openFile(File file) throws IOException
IOException
public TextFileDataContainer peekFile()
@MustNotContainNull public FilePositionInfo[] makeIncludeStack()
public TextFileDataContainer popTextContainer()
public FileInfoContainer getRootFileInfo()
public boolean isIncludeStackEmpty()
public boolean isOnlyRootOnStack()
public PreprocessingState popWhile()
public PreprocessingState pushWhile(boolean makeActive)
public TextFileDataContainer peekWhile()
public boolean hasReadLineNextLineInEnd()
public String nextLine()
public PreprocessingState goToString(int stringIndex)
public PreprocessingState pushIf(boolean makeActive)
public void popAllIFUntilContainerWithFile(TextFileDataContainer container)
public PreprocessingState popIf()
public boolean isAtActiveWhile()
public boolean isAtActiveIf()
public boolean isDirectiveCanBeProcessedIgnoreBreak()
public boolean isDirectiveCanBeProcessed()
public TextFileDataContainer peekIf()
public boolean isIfStackEmpty()
public boolean isWhileStackEmpty()
public void setPrinter(PreprocessingState.PrinterType type)
public void resetPrinters()
public void saveBuffersToStreams(OutputStream prefix, OutputStream normal, OutputStream postfix) throws IOException
IOException
public boolean saveBuffersToFile(File outFile, boolean removeComments) throws IOException
IOException
public Writer writePrinterBuffers(Writer writer) throws IOException
IOException
public PreprocessorException makeException(String message, String causeString, Throwable cause)
public void dispose()
Copyright © 2011–2020 Igor Maznitsa. All rights reserved.