Modifier and Type | Method and Description |
---|---|
File |
PreprocessTask.CfgFile.getFile() |
String |
PreprocessTask.Global.getName() |
String |
PreprocessTask.Global.getValue() |
Modifier and Type | Method and Description |
---|---|
void |
PreprocessTask.debug(String message) |
void |
PreprocessTask.error(String message) |
void |
PreprocessTask.info(String message) |
void |
PreprocessTask.warning(String message) |
Modifier and Type | Method and Description |
---|---|
String |
TextFileDataContainer.nextLine() |
Modifier and Type | Method and Description |
---|---|
boolean |
TextFileDataContainer.equals(Object that) |
PreprocessingState |
FileInfoContainer.preprocessFile(PreprocessingState state,
PreprocessorContext context)
Preprocess file, NB! it doesn't clear local variables automatically for cloned contexts
|
List<PreprocessingState.ExcludeIfInfo> |
FileInfoContainer.processGlobalDirectives(PreprocessingState state,
PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
Value |
PreprocessorContext.findVariableForName(String name,
boolean enforceUnknownVarAsNull)
Find value among local and global variables for a name.
|
String |
PreprocessingState.getLastReadString() |
Value |
PreprocessorContext.getLocalVariable(String name)
Get a local variable value
|
PreprocessorExtension |
PreprocessorContext.getPreprocessorExtension()
Get the current preprocessor extension
|
ResetablePrinter |
PreprocessingState.getPrinter() |
Object |
PreprocessorContext.getSharedResource(String name)
Get a shared source from inside map
|
Value |
JCPSpecialVariableProcessor.getVariable(String varName,
PreprocessorContext context) |
Value |
EnvironmentVariableProcessor.getVariable(String varName,
PreprocessorContext context) |
String |
PreprocessingState.nextLine() |
TextFileDataContainer |
PreprocessingState.peekFile() |
TextFileDataContainer |
PreprocessingState.peekIf() |
TextFileDataContainer |
PreprocessingState.peekWhile() |
Object |
PreprocessorContext.removeSharedResource(String name)
Remove a shared object from the inside map for its name
|
Modifier and Type | Method and Description |
---|---|
boolean |
PreprocessorContext.containsGlobalVariable(String name)
Check that there is a named global variable in the inside storage
|
boolean |
PreprocessorContext.containsLocalVariable(String name)
Check that a local variable for a name is presented
|
Value |
PreprocessorContext.findVariableForName(String name,
boolean enforceUnknownVarAsNull)
Find value among local and global variables for a name.
|
Value |
PreprocessorContext.getLocalVariable(String name)
Get a local variable value
|
Value |
SpecialVariableProcessor.getVariable(String varName,
PreprocessorContext context)
Get the value for the variable
|
boolean |
PreprocessorContext.isFileAllowedToBeProcessed(File file)
Check that a file is allowed to be preprocessed fo its extension
|
boolean |
PreprocessorContext.isFileExcludedFromProcess(File file)
Check that a file is excluded from preprocessing and coping actions
|
boolean |
PreprocessorContext.isGlobalVariable(String variableName)
Check that there is a global variable with such name.
|
boolean |
PreprocessorContext.isLocalVariable(String variableName)
Check that there is a local variable with such name.
|
void |
PreprocessorContext.logDebug(String text)
Print some debug info into the current log
|
void |
PreprocessorContext.logError(String text)
Print an information about an error into the current log
|
void |
PreprocessorContext.logInfo(String text)
Print an information into the current log
|
void |
PreprocessorContext.logWarning(String text)
Print an information about a warning situation into the current log
|
PreprocessorException |
PreprocessingState.makeException(String message,
String causeString,
Throwable cause) |
PreprocessorException |
PreprocessingState.makeException(String message,
String causeString,
Throwable cause) |
PreprocessorException |
PreprocessingState.makeException(String message,
String causeString,
Throwable cause) |
PreprocessorException |
PreprocessorContext.makeException(String text,
Throwable cause)
Prepare exception with message and cause, or return cause if it is a preprocessor exception
|
PreprocessorContext |
PreprocessorContext.setPreprocessorExtension(PreprocessorExtension extension)
Set a preprocessor extension, it is a module implements the PreprocessorExtension interface which can process and get some calls from a preprocessor during its work
|
void |
PreprocessorContext.setPreprocessorLogger(PreprocessorLogger logger)
Set the logger to print information and error messages
|
void |
SpecialVariableProcessor.setVariable(String varName,
Value value,
PreprocessorContext context)
Set a value to the variable
|
Modifier and Type | Method and Description |
---|---|
static PreprocessorException |
PreprocessorException.extractPreprocessorException(Throwable thr) |
File |
PreprocessorException.getProcessingFile() |
String |
PreprocessorException.getProcessingString() |
File |
PreprocessorException.getRootFile() |
Modifier and Type | Method and Description |
---|---|
static PreprocessorException |
PreprocessorException.extractPreprocessorException(Throwable thr) |
static String |
PreprocessorException.referenceAsString(char fillChar,
Throwable thr) |
Constructor and Description |
---|
PreprocessorException(String message,
String processedText,
FilePositionInfo[] includeStack,
Throwable cause) |
PreprocessorException(String message,
String processedText,
FilePositionInfo[] includeStack,
Throwable cause) |
PreprocessorException(String message,
String processedText,
FilePositionInfo[] includeStack,
Throwable cause) |
PreprocessorException(String message,
String processedText,
FilePositionInfo[] includeStack,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
ExpressionTreeElement |
ExpressionTreeElement.addTreeElement(ExpressionTreeElement element)
Add tree element with sorting operation depends on priority of the elements
|
ExpressionItemPriority |
ExpressionParser.SpecialItem.getExpressionItemPriority() |
ExpressionItemType |
ExpressionParser.SpecialItem.getExpressionItemType() |
ExpressionTreeElement |
ExpressionTreeElement.getParent()
Get the parent for the element
|
static Object |
Value.getValue(String value,
ValueType type) |
ExpressionItem |
ExpressionParser.readExpression(PushbackReader reader,
ExpressionTree tree,
PreprocessorContext context,
boolean insideBracket,
boolean argument)
It reads an expression from a reader and fill a tree
|
Modifier and Type | Method and Description |
---|---|
boolean |
Value.equals(Object var) |
Constructor and Description |
---|
ExpressionTree(FilePositionInfo[] callStack,
String sources) |
ExpressionTree(FilePositionInfo[] callStack,
String sources) |
Modifier and Type | Method and Description |
---|---|
static <E extends AbstractFunction> |
AbstractFunction.findForClass(Class<E> functionClass)
Allows to find a function handler instance for its class
|
static AbstractFunction |
AbstractFunction.findForName(String str)
Find a function handler for its name
|
String |
AbstractFunction.toString() |
Modifier and Type | Method and Description |
---|---|
Element |
AbstractXMLFunction.findCachedElement(PreprocessorContext context,
String elementId) |
NodeList |
AbstractXMLFunction.findCachedElementList(PreprocessorContext context,
String elementListId) |
Modifier and Type | Method and Description |
---|---|
static <E extends AbstractOperator> |
AbstractOperator.findForClass(Class<E> operatorClass)
Find an operator handler for its class
|
Modifier and Type | Method and Description |
---|---|
void |
PreprocessorLogger.debug(String message)
Log a debug message
|
void |
SystemOutLogger.debug(String text) |
boolean |
SystemOutLogger.equals(Object value) |
void |
PreprocessorLogger.error(String message)
Log an error message
|
void |
SystemOutLogger.error(String text) |
void |
PreprocessorLogger.info(String message)
Log an information message
|
void |
SystemOutLogger.info(String text) |
void |
PreprocessorLogger.warning(String message)
Log a warning message
|
void |
SystemOutLogger.warning(String text) |
Modifier and Type | Method and Description |
---|---|
String |
PreprocessorMojo.getExcluded() |
String |
PreprocessorMojo.getProcessing() |
Value |
MavenPropertiesImporter.getVariable(String varName,
PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
void |
PreprocessorMojo.setExcluded(String excluded) |
void |
PreprocessorMojo.setProcessing(String processing) |
Modifier and Type | Method and Description |
---|---|
static String |
PreprocessorUtils.getFileExtension(File file) |
static String |
PreprocessorUtils.normalizeVariableName(String name) |
Modifier and Type | Method and Description |
---|---|
static String |
PreprocessorUtils.getFileExtension(File file) |
static String |
PreprocessorUtils.getFilePath(File file) |
static boolean |
PreprocessorUtils.isFileContentEquals(File src,
File dst) |
static boolean |
PreprocessorUtils.isFileContentEquals(File src,
File dst) |
static String |
PreprocessorUtils.normalizeVariableName(String name) |
static String[] |
PreprocessorUtils.readWholeTextFileIntoArray(File file,
String encoding,
AtomicBoolean endedByNextLine) |
static String[] |
PreprocessorUtils.readWholeTextFileIntoArray(File file,
String encoding,
AtomicBoolean endedByNextLine) |
static void |
PreprocessorUtils.throwPreprocessorException(String msg,
String processingString,
File srcFile,
int nextStringIndex,
Throwable cause) |
static void |
PreprocessorUtils.throwPreprocessorException(String msg,
String processingString,
File srcFile,
int nextStringIndex,
Throwable cause) |
static void |
PreprocessorUtils.throwPreprocessorException(String msg,
String processingString,
File srcFile,
int nextStringIndex,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
void |
MetaErrorListener.onDetectedError(String text,
Throwable error)
The Method will be called if detected some error.
|
Constructor and Description |
---|
AlreadyDisposedError(String message)
Constructor with provided message.
|
UnexpectedProcessingError(String message,
Throwable cause)
Constructor for description and cause.
|
UnexpectedProcessingError(String message,
Throwable cause)
Constructor for description and cause.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Assertions.assertAmong(T obj,
T... list)
Check that object is presented among provided elements and replace the object by equal element from the list.
|
static <T> T |
Assertions.assertIsValid(T obj,
Validator<T> validator)
Check an object by a validator.
|
static <T> T |
Assertions.assertNull(T object)
Assert that value is null
|
static Closeable |
IOUtils.closeQuetly(Closeable closeable)
Closing quetly any closeable object.
|
String |
TimeGuard.TimeData.getAlertMessage()
Get the alert message.
|
Modifier and Type | Method and Description |
---|---|
static void |
TimeGuard.addGuard(String alertMessage,
long maxAllowedDelayInMilliseconds)
Add a time watcher.
|
static void |
TimeGuard.addGuard(String alertMessage,
long maxAllowedDelayInMilliseconds,
TimeGuard.TimeAlertListener timeAlertListener)
Add a time watcher and provide processor of time violation.
|
static void |
TimeGuard.addGuard(String alertMessage,
long maxAllowedDelayInMilliseconds,
TimeGuard.TimeAlertListener timeAlertListener)
Add a time watcher and provide processor of time violation.
|
static <T> T |
Assertions.assertAmong(T obj,
T... list)
Check that object is presented among provided elements and replace the object by equal element from the list.
|
static <T> T |
Assertions.assertEquals(T etalon,
T value)
Assert that value is equal to some etalon value.
|
static <T> T |
Assertions.assertEquals(T etalon,
T value)
Assert that value is equal to some etalon value.
|
static void |
Assertions.assertFalse(String message,
boolean condition)
Assert condition flag is FALSE.
|
static <T> T |
Assertions.assertIsValid(T obj,
Validator<T> validator)
Check an object by a validator.
|
static <T> T |
Assertions.assertNotNull(String failMessage,
T object)
Assert that value is not null
|
static <T> T |
Assertions.assertNotNull(String failMessage,
T object)
Assert that value is not null
|
static <T> T |
Assertions.assertNotNull(T object)
Assert that value is not null
|
static <T> T |
Assertions.assertNull(String failMessage,
T object)
Assert that value is null
|
static <T> T |
Assertions.assertNull(String failMessage,
T object)
Assert that value is null
|
static <T> T |
Assertions.assertNull(T object)
Assert that value is null
|
static void |
Assertions.assertTrue(String message,
boolean condition)
Assert condition flag is TRUE.
|
static Closeable |
IOUtils.closeQuetly(Closeable closeable)
Closing quetly any closeable object.
|
static <T extends Closeable> |
Deferrers.defer(T closeable)
Defer closing of an closeable object.
|
static <T> T |
Deferrers.deferredClose(T closeable)
Defer object containing public close() method.
|
static <T> T |
GetUtils.ensureNonNull(T value,
T defaultValue)
Get value and ensure that the value is not null
|
static String |
GetUtils.ensureNonNullAndNonEmpty(String value,
String dflt)
Get non-null non-empty string.
|
static String |
GetUtils.ensureNonNullStr(String value)
Ensure that a string will not be null.
|
static Error |
Assertions.fail(String message)
Throw assertion error for some cause
|
boolean |
Validator.isValid(T object)
Validate an object.
|
Constructor and Description |
---|
TimeData(int stackDepth,
String alertMessage,
long maxAllowedDelayInMilliseconds,
TimeGuard.TimeAlertListener violationListener)
The Constructor
|
Copyright © 2011–2020 Igor Maznitsa. All rights reserved.