Modifier and Type | Field and Description |
---|---|
private PreprocessorContext |
JCPreprocessor.context |
Modifier and Type | Method and Description |
---|---|
PreprocessorContext |
JCPreprocessor.getContext() |
private static PreprocessorContext |
JCPreprocessor.processCommandString(PreprocessorContext context,
java.lang.String[] originalStrings,
java.lang.String[] normalizedStrings) |
Modifier and Type | Method and Description |
---|---|
private static PreprocessorContext |
JCPreprocessor.processCommandString(PreprocessorContext context,
java.lang.String[] originalStrings,
java.lang.String[] normalizedStrings) |
Constructor and Description |
---|
JCPreprocessor(PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
(package private) PreprocessorContext |
PreprocessTask.generatePreprocessorContext() |
Modifier and Type | Method and Description |
---|---|
private void |
PreprocessTask.fillCfgFiles(PreprocessorContext context) |
private void |
PreprocessTask.fillGlobalVars(PreprocessorContext context) |
Value |
PreprocessTask.getVariable(java.lang.String varName,
PreprocessorContext context) |
void |
PreprocessTask.setVariable(java.lang.String varName,
Value value,
PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
VerboseHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
SourceDirectoryHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
RemoveCommentsHandler.processCommandLineKey(java.lang.String argument,
PreprocessorContext configurator) |
boolean |
OutCharsetHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
KeepLineHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
InCharsetHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
HelpHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
GlobalVariableHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
GlobalVariableDefiningFileHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
FileExtensionsHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
ExcludedFileExtensionsHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
DestinationDirectoryHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
CompareDestinationContentHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
CommandLineHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context)
Process a command line key
|
boolean |
ClearDstDirectoryHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
boolean |
CareForLastNextLineCharHandler.processCommandLineKey(java.lang.String key,
PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
PreprocessingState |
FileInfoContainer.preprocessFile(PreprocessingState state,
PreprocessorContext context)
Preprocess file, NB! it doesn't clear local variables automatically for
cloned contexts
|
protected AfterDirectiveProcessingBehaviour |
FileInfoContainer.processDirective(PreprocessingState state,
java.lang.String directiveString,
PreprocessorContext context,
boolean firstPass) |
java.util.List<PreprocessingState.ExcludeIfInfo> |
FileInfoContainer.processGlobalDirectives(PreprocessingState state,
PreprocessorContext context) |
Modifier and Type | Field and Description |
---|---|
private PreprocessorContext |
PreprocessingState.context |
Modifier and Type | Method and Description |
---|---|
PreprocessorContext |
PreprocessorContext.clearLocalVariables()
Remove all local variables from the inside storage
|
PreprocessorContext |
PreprocessorContext.removeGlobalVariable(java.lang.String name)
Remove a global variable value from the context.
|
PreprocessorContext |
PreprocessorContext.removeLocalVariable(java.lang.String name)
Remove a local variable value from the context.
|
PreprocessorContext |
PreprocessorContext.setClearDestinationDirBefore(boolean flag)
Set the flag to clear the destination directory before preprocessing
|
PreprocessorContext |
PreprocessorContext.setCompareDestination(boolean flag)
Set the flag to check before saving if the content changed.
|
PreprocessorContext |
PreprocessorContext.setDestinationDirectory(java.lang.String directory)
Set a destination directory for result files
|
PreprocessorContext |
PreprocessorContext.setExcludedFileExtensions(java.lang.String extensions)
Set comma separated list of file extensions to be excluded from
preprocessing
|
PreprocessorContext |
PreprocessorContext.setGlobalVariable(java.lang.String name,
Value value)
Set a global variable value
|
PreprocessorContext |
PreprocessorContext.setInCharacterEncoding(java.lang.String characterEncoding)
Set the character encoding for reading texts, it must be supported by the
Java platform else an exception will be thrown
|
PreprocessorContext |
PreprocessorContext.setKeepLines(boolean flag)
Set the flag to keep lines as commented ones
|
PreprocessorContext |
PreprocessorContext.setLocalVariable(java.lang.String name,
Value value)
Set a local variable value
|
PreprocessorContext |
PreprocessorContext.setOutCharacterEncoding(java.lang.String characterEncoding)
Set the output texts character encoding, it must be supported by the Java
platform else an exception will be thrown
|
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
|
PreprocessorContext |
PreprocessorContext.setProcessingFileExtensions(java.lang.String extensions)
Set file extensions of files to be preprocessed, it is a comma separated
list
|
PreprocessorContext |
PreprocessorContext.setRemoveComments(boolean removingComments)
Set the remove comments flag
|
PreprocessorContext |
PreprocessorContext.setSourceDirectories(java.lang.String directories)
Set source directories
|
PreprocessorContext |
PreprocessorContext.setVerbose(boolean flag)
Set the verbose flag
|
Modifier and Type | Method and Description |
---|---|
Value |
SpecialVariableProcessor.getVariable(java.lang.String varName,
PreprocessorContext context)
Get the value for the variable
|
Value |
JCPSpecialVariableProcessor.getVariable(java.lang.String varName,
PreprocessorContext context) |
Value |
EnvironmentVariableProcessor.getVariable(java.lang.String varName,
PreprocessorContext context) |
void |
SpecialVariableProcessor.setVariable(java.lang.String varName,
Value value,
PreprocessorContext context)
Set a value to the variable
|
void |
JCPSpecialVariableProcessor.setVariable(java.lang.String varName,
Value value,
PreprocessorContext context) |
void |
EnvironmentVariableProcessor.setVariable(java.lang.String varName,
Value value,
PreprocessorContext context) |
Constructor and Description |
---|
PreprocessingState(PreprocessorContext context,
FileInfoContainer rootFile,
java.lang.String inEncoding,
java.lang.String outEncoding,
boolean overrideOnlyIfContentChanged) |
PreprocessingState(PreprocessorContext context,
FileInfoContainer rootFile,
TextFileDataContainer rootContainer,
java.lang.String inEncoding,
java.lang.String outEncoding,
boolean overrideOnlyIfContentChanged) |
PreprocessorContext(PreprocessorContext context)
Make clone of a preprocessor context but without cloning state.
|
Modifier and Type | Method and Description |
---|---|
AfterDirectiveProcessingBehaviour |
WhileDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
PrefixDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
PostfixDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
OutNameDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
OutEnabledDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
OutDisabledDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
OutDirDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
NoAutoFlushHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
MsgDirectiveHandler.execute(java.lang.String rawTail,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
LocalDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
IncludeDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
IfDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
IfDefinedDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
GlobalIfDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
GlobalEndIfDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
GlobalElseDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
GlobalDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
FlushDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
ExitIfDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
ExitDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
ExcludeIfDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
ErrorDirectiveHandler.execute(java.lang.String trimmedString,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
EndIfDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
EndDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
ElseDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
EchoDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
DefineDirectiveHandler.execute(java.lang.String rawTail,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
ContinueDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
CommentNextLineDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
BreakDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
AfterDirectiveProcessingBehaviour |
ActionDirectiveHandler.execute(java.lang.String string,
PreprocessorContext context) |
abstract AfterDirectiveProcessingBehaviour |
AbstractDirectiveHandler.execute(java.lang.String tailString,
PreprocessorContext context)
Execute directive
|
AfterDirectiveProcessingBehaviour |
AbortDirectiveHandler.execute(java.lang.String rawTail,
PreprocessorContext context) |
private java.util.List<ExpressionTree> |
ActionDirectiveHandler.parseString(java.lang.String str,
PreprocessorContext context) |
protected void |
WarningDirectiveHandler.process(PreprocessorContext context,
java.lang.String message) |
protected void |
ErrorDirectiveHandler.process(PreprocessorContext context,
java.lang.String message) |
protected void |
UndefDirectiveHandler.process(PreprocessorContext context,
java.lang.String varName,
Value value,
boolean exists) |
protected void |
DefinelDirectiveHandler.process(PreprocessorContext context,
java.lang.String varName,
Value value,
boolean exists) |
protected void |
DefineDirectiveHandler.process(PreprocessorContext context,
java.lang.String varName,
Value value,
boolean exists) |
private void |
GlobalDirectiveHandler.processDefinition(java.lang.String string,
PreprocessorContext context) |
private void |
LocalDirectiveHandler.processLocalDefinition(java.lang.String string,
PreprocessorContext context) |
Modifier and Type | Field and Description |
---|---|
private PreprocessorContext |
Expression.context
The variable contains the preprocessor context for the expression, it can
be null
|
Modifier and Type | Method and Description |
---|---|
static Value |
Expression.evalExpression(java.lang.String expression,
PreprocessorContext context)
Evaluate expression
|
static Value |
Expression.evalTree(ExpressionTree tree,
PreprocessorContext context)
Evaluate an expression tree
|
(package private) ExpressionItem |
ExpressionParser.nextItem(java.io.PushbackReader reader,
PreprocessorContext context)
Read the next item from the reader
|
ExpressionTree |
ExpressionParser.parse(java.lang.String expressionStr,
PreprocessorContext context)
To parse an expression represented as a string and get a tree
|
ExpressionItem |
ExpressionParser.readExpression(java.io.PushbackReader reader,
ExpressionTree tree,
PreprocessorContext context,
boolean insideBracket,
boolean argument)
It reads an expression from a reader and fill a tree
|
private ExpressionTree |
ExpressionParser.readFunction(AbstractFunction function,
java.io.PushbackReader reader,
PreprocessorContext context,
FilePositionInfo[] includeStack,
java.lang.String sources)
The auxiliary method allows to form a function and its arguments as a tree
|
(package private) ExpressionItem |
ExpressionParser.readFunctionArgument(java.io.PushbackReader reader,
ExpressionTree tree,
PreprocessorContext context,
FilePositionInfo[] callStack,
java.lang.String source)
The auxiliary method allows to read a function argument
|
Constructor and Description |
---|
Expression(PreprocessorContext context,
ExpressionTree tree) |
Modifier and Type | Method and Description |
---|---|
Value |
FunctionDefinedByUser.execute(PreprocessorContext context,
Value[] values) |
Value |
FunctionROUND.executeFloat(PreprocessorContext context,
Value value) |
Value |
FunctionABS.executeFloat(PreprocessorContext context,
Value value) |
Value |
FunctionROUND.executeInt(PreprocessorContext context,
Value value) |
Value |
FunctionABS.executeInt(PreprocessorContext context,
Value value) |
Value |
FunctionSTRLEN.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2XML.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2WEB.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2JSON.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2JS.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2INT.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2CSV.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionEVALFILE.executeStr(PreprocessorContext context,
Value strfilePath) |
abstract Value |
AbstractStrConverter.executeStr(PreprocessorContext context,
Value stringToConvert) |
Value |
FunctionSTR2JAVA.executeStrBool(PreprocessorContext context,
Value source,
Value splitAndQuoteLines) |
Value |
FunctionISSUBSTR.executeStrStr(PreprocessorContext context,
Value subStrValue,
Value strValue) |
Constructor and Description |
---|
FunctionDefinedByUser(java.lang.String name,
int argsNumber,
PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
Value |
FunctionXML_TEXT.executeStr(PreprocessorContext context,
Value elementid) |
Value |
FunctionXML_SIZE.executeStr(PreprocessorContext context,
Value elementListId) |
Value |
FunctionXML_ROOT.executeStr(PreprocessorContext context,
Value documentId) |
Value |
FunctionXML_OPEN.executeStr(PreprocessorContext context,
Value filePath) |
Value |
FunctionXML_NAME.executeStr(PreprocessorContext context,
Value elementId) |
Value |
FunctionXML_GET.executeStrInt(PreprocessorContext context,
Value elementListId,
Value elementIndex) |
Value |
FunctionXML_XLIST.executeStrStr(PreprocessorContext context,
Value documentId,
Value xPath) |
Value |
FunctionXML_XELEMENT.executeStrStr(PreprocessorContext context,
Value documentId,
Value xPath) |
Value |
FunctionXML_LIST.executeStrStr(PreprocessorContext context,
Value elementId,
Value elementTag) |
Value |
FunctionXML_ATTR.executeStrStr(PreprocessorContext context,
Value elementId,
Value attributeName) |
org.w3c.dom.Element |
AbstractXMLFunction.findCachedElement(PreprocessorContext context,
java.lang.String elementId) |
org.w3c.dom.NodeList |
AbstractXMLFunction.findCachedElementList(PreprocessorContext context,
java.lang.String elementListId) |
java.lang.String |
AbstractXMLFunction.findElementForIndex(PreprocessorContext context,
java.lang.String elementListId,
int elementIndex) |
java.lang.String |
AbstractXMLFunction.getAttribute(PreprocessorContext context,
java.lang.String elementId,
java.lang.String attributeName) |
org.w3c.dom.Document |
AbstractXMLFunction.getCachedDocument(PreprocessorContext context,
java.lang.String documentId) |
org.w3c.dom.Element |
AbstractXMLFunction.getCachedElement(PreprocessorContext context,
java.lang.String elementId) |
org.w3c.dom.NodeList |
AbstractXMLFunction.getCachedElementList(PreprocessorContext context,
java.lang.String elementListId) |
int |
AbstractXMLFunction.getElementListSize(PreprocessorContext context,
java.lang.String elementListId) |
private org.w3c.dom.Document |
FunctionXML_OPEN.openFileAndParse(PreprocessorContext context,
java.io.File file) |
Modifier and Type | Method and Description |
---|---|
boolean |
PreprocessorExtension.processAction(PreprocessorContext context,
Value[] parameters)
To process an action (it will be called if the preprocessor is met
//#action directive)
|
Modifier and Type | Method and Description |
---|---|
(package private) PreprocessorContext |
PreprocessorMojo.makePreprocessorContext() |
Modifier and Type | Method and Description |
---|---|
private void |
MavenPropertiesImporter.addVariableIntoInsideMap(PreprocessorContext context,
java.lang.String name,
Value value) |
Value |
MavenPropertiesImporter.getVariable(java.lang.String varName,
PreprocessorContext context) |
private void |
MavenPropertiesImporter.printInfoAboutVarIntoLog(PreprocessorContext context,
java.lang.String varName,
java.lang.String value) |
private void |
PreprocessorMojo.replaceSourceRootByPreprocessingDestinationFolder(PreprocessorContext context) |
void |
MavenPropertiesImporter.setVariable(java.lang.String varName,
Value value,
PreprocessorContext context) |
Constructor and Description |
---|
MavenPropertiesImporter(PreprocessorContext context,
org.apache.maven.project.MavenProject project) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
PreprocessorUtils.processMacroses(java.lang.String processingString,
PreprocessorContext context) |