Modifier and Type | Method and Description |
---|---|
PreprocessorContext |
JCPreprocessor.getContext() |
Constructor and Description |
---|
JCPreprocessor(PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
Value |
PreprocessTask.getVariable(String varName,
PreprocessorContext context) |
void |
PreprocessTask.setVariable(String varName,
Value value,
PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
VerboseHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
InCharsetHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
GlobalVariableHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
CareForLastNextLineCharHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
KeepLineHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
CommandLineHandler.processCommandLineKey(String key,
PreprocessorContext context)
Process a command line key
|
boolean |
UnknownAsFalseHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
OutCharsetHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
RemoveCommentsHandler.processCommandLineKey(String argument,
PreprocessorContext configurator) |
boolean |
ExcludeFoldersHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
AllowWhitespaceDirectiveHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
SourceDirectoryHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
FileExtensionsHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
GlobalVariableDefiningFileHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
ExcludedFileExtensionsHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
DestinationDirectoryHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
ClearDstDirectoryHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
CopyFileAttributesHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
CompareDestinationContentHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
HelpHandler.processCommandLineKey(String key,
PreprocessorContext context) |
boolean |
PreserveIndentDirectiveHandler.processCommandLineKey(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,
String directiveString,
PreprocessorContext context,
boolean firstPass) |
List<PreprocessingState.ExcludeIfInfo> |
FileInfoContainer.processGlobalDirectives(PreprocessingState state,
PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
PreprocessorContext |
PreprocessorContext.clearLocalVariables()
Remove all local variables from the inside storage
|
PreprocessorContext |
PreprocessorContext.removeGlobalVariable(String name)
Remove a global variable value from the context.
|
PreprocessorContext |
PreprocessorContext.removeLocalVariable(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.setCopyFileAttributes(boolean value)
Set the flag to copy file attributes.
|
PreprocessorContext |
PreprocessorContext.setDestinationDirectory(String directory)
Set a destination directory for result files
|
PreprocessorContext |
PreprocessorContext.setExcludedFileExtensions(String extensions)
Set comma separated list of file extensions to be excluded from preprocessing
|
PreprocessorContext |
PreprocessorContext.setGlobalVariable(String name,
Value value)
Set a global variable value
|
PreprocessorContext |
PreprocessorContext.setInCharacterEncoding(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(String name,
Value value)
Set a local variable value
|
PreprocessorContext |
PreprocessorContext.setOutCharacterEncoding(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(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(String directories)
Set source directories
|
PreprocessorContext |
PreprocessorContext.setVerbose(boolean flag)
Set the verbose flag
|
Modifier and Type | Method and Description |
---|---|
Value |
JCPSpecialVariableProcessor.getVariable(String varName,
PreprocessorContext context) |
Value |
EnvironmentVariableProcessor.getVariable(String varName,
PreprocessorContext context) |
Value |
SpecialVariableProcessor.getVariable(String varName,
PreprocessorContext context)
Get the value for the variable
|
void |
JCPSpecialVariableProcessor.setVariable(String varName,
Value value,
PreprocessorContext context) |
void |
EnvironmentVariableProcessor.setVariable(String varName,
Value value,
PreprocessorContext context) |
void |
SpecialVariableProcessor.setVariable(String varName,
Value value,
PreprocessorContext context)
Set a value to the variable
|
Constructor and Description |
---|
PreprocessorContext(PreprocessorContext context)
Make clone of a preprocessor context but without cloning state.
|
Modifier and Type | Method and Description |
---|---|
static Value |
Expression.evalExpression(String expression,
PreprocessorContext context)
Evaluate expression
|
static Value |
Expression.evalTree(ExpressionTree tree,
PreprocessorContext context)
Evaluate an expression tree
|
ExpressionTree |
ExpressionParser.parse(String expressionStr,
PreprocessorContext context)
To parse an expression represented as a string and get a tree
|
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 |
---|---|
Value |
FunctionDefinedByUser.execute(PreprocessorContext context,
Value[] values) |
Value |
FunctionABS.executeFloat(PreprocessorContext context,
Value value) |
Value |
FunctionROUND.executeFloat(PreprocessorContext context,
Value value) |
Value |
FunctionABS.executeInt(PreprocessorContext context,
Value value) |
Value |
FunctionROUND.executeInt(PreprocessorContext context,
Value value) |
abstract Value |
AbstractStrConverter.executeStr(PreprocessorContext context,
Value stringToConvert) |
Value |
FunctionEVALFILE.executeStr(PreprocessorContext context,
Value strfilePath) |
Value |
FunctionSTR2INT.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2CSV.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2WEB.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2JSON.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTRLEN.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2XML.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionTRIMLINES.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionSTR2JS.executeStr(PreprocessorContext context,
Value value) |
Value |
FunctionIS.executeStrAny(PreprocessorContext context,
Value varName,
Value value) |
Value |
FunctionSTR2JAVA.executeStrBool(PreprocessorContext context,
Value source,
Value splitAndQuoteLines) |
Value |
FunctionSTR2GO.executeStrBool(PreprocessorContext context,
Value source,
Value splitAndQuoteLines) |
Value |
FunctionISSUBSTR.executeStrStr(PreprocessorContext context,
Value subStrValue,
Value strValue) |
Value |
FunctionBINFILE.executeStrStr(PreprocessorContext context,
Value strfilePath,
Value encodeType) |
Constructor and Description |
---|
FunctionDefinedByUser(String name,
int argsNumber,
PreprocessorContext context) |
Modifier and Type | Method and Description |
---|---|
Value |
FunctionXML_OPEN.executeStr(PreprocessorContext context,
Value filePath) |
Value |
FunctionXML_SIZE.executeStr(PreprocessorContext context,
Value elementListId) |
Value |
FunctionXML_NAME.executeStr(PreprocessorContext context,
Value elementId) |
Value |
FunctionXML_TEXT.executeStr(PreprocessorContext context,
Value elementid) |
Value |
FunctionXML_ROOT.executeStr(PreprocessorContext context,
Value documentId) |
Value |
FunctionXML_GET.executeStrInt(PreprocessorContext context,
Value elementListId,
Value elementIndex) |
Value |
FunctionXML_ATTR.executeStrStr(PreprocessorContext context,
Value elementId,
Value attributeName) |
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) |
Element |
AbstractXMLFunction.findCachedElement(PreprocessorContext context,
String elementId) |
NodeList |
AbstractXMLFunction.findCachedElementList(PreprocessorContext context,
String elementListId) |
String |
AbstractXMLFunction.findElementForIndex(PreprocessorContext context,
String elementListId,
int elementIndex) |
String |
AbstractXMLFunction.getAttribute(PreprocessorContext context,
String elementId,
String attributeName) |
Document |
AbstractXMLFunction.getCachedDocument(PreprocessorContext context,
String documentId) |
Element |
AbstractXMLFunction.getCachedElement(PreprocessorContext context,
String elementId) |
NodeList |
AbstractXMLFunction.getCachedElementList(PreprocessorContext context,
String elementListId) |
int |
AbstractXMLFunction.getElementListSize(PreprocessorContext context,
String elementListId) |
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 |
---|---|
Value |
MavenPropertiesImporter.getVariable(String varName,
PreprocessorContext context) |
void |
MavenPropertiesImporter.setVariable(String varName,
Value value,
PreprocessorContext context) |
Constructor and Description |
---|
MavenPropertiesImporter(PreprocessorContext context,
org.apache.maven.project.MavenProject project,
boolean logAddedProperties) |
Modifier and Type | Method and Description |
---|---|
static String |
PreprocessorUtils.processMacroses(String processingString,
PreprocessorContext context) |
Copyright © 2011–2020 Igor Maznitsa. All rights reserved.