Uses of Class
com.igormaznitsa.jcp.context.PreprocessorContext
-
-
Uses of PreprocessorContext in com.igormaznitsa.jcp
Fields in com.igormaznitsa.jcp declared as PreprocessorContext Modifier and Type Field Description private PreprocessorContext
JCPreprocessor. context
Methods in com.igormaznitsa.jcp that return PreprocessorContext Modifier and Type Method Description PreprocessorContext
JCPreprocessor. getContext()
private static PreprocessorContext
JCPreprocessor. processCommandString(PreprocessorContext context, java.lang.String[] originalStrings, java.lang.String[] normalizedStrings)
Methods in com.igormaznitsa.jcp with parameters of type PreprocessorContext Modifier and Type Method Description private static PreprocessorContext
JCPreprocessor. processCommandString(PreprocessorContext context, java.lang.String[] originalStrings, java.lang.String[] normalizedStrings)
Constructors in com.igormaznitsa.jcp with parameters of type PreprocessorContext Constructor Description JCPreprocessor(PreprocessorContext context)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.ant
Methods in com.igormaznitsa.jcp.ant that return PreprocessorContext Modifier and Type Method Description (package private) PreprocessorContext
PreprocessTask. generatePreprocessorContext()
Methods in com.igormaznitsa.jcp.ant with parameters of type PreprocessorContext Modifier and Type Method 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)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.cmdline
Methods in com.igormaznitsa.jcp.cmdline with parameters of type PreprocessorContext Modifier and Type Method Description boolean
AllowWhitespaceDirectiveHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
CareForLastNextLineCharHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
ClearDstDirectoryHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
CommandLineHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
Process a command line keyboolean
CompareDestinationContentHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
CopyFileAttributesHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
DestinationDirectoryHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
ExcludedFileExtensionsHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
ExcludeFoldersHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
FileExtensionsHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
GlobalVariableDefiningFileHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
GlobalVariableHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
HelpHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
InCharsetHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
KeepLineHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
OutCharsetHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
PreserveIndentDirectiveHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
RemoveCommentsHandler. processCommandLineKey(java.lang.String argument, PreprocessorContext configurator)
boolean
SourceDirectoryHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
UnknownAsFalseHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
boolean
VerboseHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.containers
Methods in com.igormaznitsa.jcp.containers with parameters of type PreprocessorContext Modifier and Type Method Description private java.lang.String
FileInfoContainer. extractDoubleDollarPrefixedDirective(java.lang.String line, PreprocessorContext context)
private java.lang.String
FileInfoContainer. extractHashPrefixedDirective(java.lang.String line, PreprocessorContext context)
private java.lang.String
FileInfoContainer. extractSingleDollarPrefixedDirective(java.lang.String line, PreprocessorContext context)
private static java.lang.String
FileInfoContainer. findTailRemover(java.lang.String str, PreprocessorContext context)
private boolean
FileInfoContainer. isDoubleDollarPrefixed(java.lang.String line, PreprocessorContext context)
private boolean
FileInfoContainer. isHashPrefixed(java.lang.String line, PreprocessorContext context)
private boolean
FileInfoContainer. isSingleDollarPrefixed(java.lang.String line, PreprocessorContext context)
PreprocessingState
FileInfoContainer. preprocessFile(PreprocessingState state, PreprocessorContext context)
Preprocess file, NB! it doesn't clear local variables automatically for cloned contextsprotected AfterDirectiveProcessingBehaviour
FileInfoContainer. processDirective(PreprocessingState state, java.lang.String directiveString, PreprocessorContext context, boolean firstPass)
java.util.List<PreprocessingState.ExcludeIfInfo>
FileInfoContainer. processGlobalDirectives(PreprocessingState state, PreprocessorContext context)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.context
Fields in com.igormaznitsa.jcp.context declared as PreprocessorContext Modifier and Type Field Description private PreprocessorContext
PreprocessingState. context
Methods in com.igormaznitsa.jcp.context that return PreprocessorContext Modifier and Type Method Description PreprocessorContext
PreprocessorContext. clearLocalVariables()
Remove all local variables from the inside storagePreprocessorContext
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 preprocessingPreprocessorContext
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(java.lang.String directory)
Set a destination directory for result filesPreprocessorContext
PreprocessorContext. setExcludedFileExtensions(java.lang.String extensions)
Set comma separated list of file extensions to be excluded from preprocessingPreprocessorContext
PreprocessorContext. setGlobalVariable(java.lang.String name, Value value)
Set a global variable valuePreprocessorContext
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 thrownPreprocessorContext
PreprocessorContext. setKeepLines(boolean flag)
Set the flag to keep lines as commented onesPreprocessorContext
PreprocessorContext. setLocalVariable(java.lang.String name, Value value)
Set a local variable valuePreprocessorContext
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 thrownPreprocessorContext
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 workPreprocessorContext
PreprocessorContext. setProcessingFileExtensions(java.lang.String extensions)
Set file extensions of files to be preprocessed, it is a comma separated listPreprocessorContext
PreprocessorContext. setRemoveComments(boolean removingComments)
Set the remove comments flagPreprocessorContext
PreprocessorContext. setSourceDirectories(java.lang.String directories)
Set source directoriesPreprocessorContext
PreprocessorContext. setVerbose(boolean flag)
Set the verbose flagMethods in com.igormaznitsa.jcp.context with parameters of type PreprocessorContext Modifier and Type Method Description Value
EnvironmentVariableProcessor. getVariable(java.lang.String varName, PreprocessorContext context)
Value
JCPSpecialVariableProcessor. getVariable(java.lang.String varName, PreprocessorContext context)
Value
SpecialVariableProcessor. getVariable(java.lang.String varName, PreprocessorContext context)
Get the value for the variablevoid
EnvironmentVariableProcessor. setVariable(java.lang.String varName, Value value, PreprocessorContext context)
void
JCPSpecialVariableProcessor. setVariable(java.lang.String varName, Value value, PreprocessorContext context)
void
SpecialVariableProcessor. setVariable(java.lang.String varName, Value value, PreprocessorContext context)
Set a value to the variableConstructors in com.igormaznitsa.jcp.context with parameters of type PreprocessorContext Constructor Description PreprocessingState(PreprocessorContext context, FileInfoContainer rootFile, TextFileDataContainer rootContainer, java.lang.String inEncoding, java.lang.String outEncoding, boolean overrideOnlyIfContentChanged)
PreprocessingState(PreprocessorContext context, FileInfoContainer rootFile, java.lang.String inEncoding, java.lang.String outEncoding, boolean overrideOnlyIfContentChanged)
PreprocessingState(PreprocessorContext context, java.lang.String inEncoding, java.lang.String outEncoding)
PreprocessorContext(PreprocessorContext context)
Make clone of a preprocessor context but without cloning state. -
Uses of PreprocessorContext in com.igormaznitsa.jcp.directives
Methods in com.igormaznitsa.jcp.directives with parameters of type PreprocessorContext Modifier and Type Method Description AfterDirectiveProcessingBehaviour
AbortDirectiveHandler. execute(java.lang.String rawTail, PreprocessorContext context)
abstract AfterDirectiveProcessingBehaviour
AbstractDirectiveHandler. execute(java.lang.String tailString, PreprocessorContext context)
Execute directiveAfterDirectiveProcessingBehaviour
ActionDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
BreakDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
CommentNextLineDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
ContinueDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
DefineDirectiveHandler. execute(java.lang.String rawTail, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
EchoDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
ElseDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
EndDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
EndIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
ErrorDirectiveHandler. execute(java.lang.String trimmedString, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
ExcludeIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
ExitDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
ExitIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
FlushDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
GlobalDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
GlobalElseDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
GlobalEndIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
GlobalIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
IfDefinedDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
IfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
IncludeDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
LocalDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
MsgDirectiveHandler. execute(java.lang.String rawTail, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
NoAutoFlushHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
OutDirDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
OutDisabledDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
OutEnabledDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
OutNameDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
PostfixDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
PrefixDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
AfterDirectiveProcessingBehaviour
WhileDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)
private java.util.List<ExpressionTree>
ActionDirectiveHandler. parseString(java.lang.String str, PreprocessorContext context)
protected void
DefineDirectiveHandler. 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
ErrorDirectiveHandler. process(PreprocessorContext context, java.lang.String message)
protected void
UndefDirectiveHandler. process(PreprocessorContext context, java.lang.String varName, Value value, boolean exists)
protected void
WarningDirectiveHandler. process(PreprocessorContext context, java.lang.String message)
private void
GlobalDirectiveHandler. processDefinition(java.lang.String string, PreprocessorContext context)
private void
LocalDirectiveHandler. processLocalDefinition(java.lang.String string, PreprocessorContext context)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.expression
Fields in com.igormaznitsa.jcp.expression declared as PreprocessorContext Modifier and Type Field Description private PreprocessorContext
Expression. context
The variable contains the preprocessor context for the expression, it can be nullMethods in com.igormaznitsa.jcp.expression with parameters of type PreprocessorContext Modifier and Type Method Description static Value
Expression. evalExpression(java.lang.String expression, PreprocessorContext context)
Evaluate expressionstatic 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 readerExpressionTree
ExpressionParser. parse(java.lang.String expressionStr, PreprocessorContext context)
To parse an expression represented as a string and get a treeExpressionItem
ExpressionParser. readExpression(java.io.PushbackReader reader, ExpressionTree tree, PreprocessorContext context, boolean insideBracket, boolean argument)
It reads an expression from a reader and fill a treeprivate 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 argumentConstructors in com.igormaznitsa.jcp.expression with parameters of type PreprocessorContext Constructor Description Expression(PreprocessorContext context, ExpressionTree tree)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.expression.functions
Methods in com.igormaznitsa.jcp.expression.functions that return PreprocessorContext Modifier and Type Method Description private PreprocessorContext
FunctionEVALFILE. prepareContext(PreprocessorContext base)
Methods in com.igormaznitsa.jcp.expression.functions with parameters of type PreprocessorContext Modifier and Type Method 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
FunctionSTR2CSV. executeStr(PreprocessorContext context, Value value)
Value
FunctionSTR2INT. executeStr(PreprocessorContext context, Value value)
Value
FunctionSTR2JS. executeStr(PreprocessorContext context, Value value)
Value
FunctionSTR2JSON. executeStr(PreprocessorContext context, Value value)
Value
FunctionSTR2WEB. executeStr(PreprocessorContext context, Value value)
Value
FunctionSTR2XML. executeStr(PreprocessorContext context, Value value)
Value
FunctionSTRLEN. executeStr(PreprocessorContext context, Value value)
Value
FunctionTRIMLINES. executeStr(PreprocessorContext context, Value value)
Value
FunctionIS. executeStrAny(PreprocessorContext context, Value varName, Value value)
Value
FunctionSTR2GO. executeStrBool(PreprocessorContext context, Value source, Value splitAndQuoteLines)
Value
FunctionSTR2JAVA. executeStrBool(PreprocessorContext context, Value source, Value splitAndQuoteLines)
Value
FunctionBINFILE. executeStrStr(PreprocessorContext context, Value strfilePath, Value encodeType)
Value
FunctionISSUBSTR. executeStrStr(PreprocessorContext context, Value subStrValue, Value strValue)
private PreprocessorContext
FunctionEVALFILE. prepareContext(PreprocessorContext base)
Constructors in com.igormaznitsa.jcp.expression.functions with parameters of type PreprocessorContext Constructor Description FunctionDefinedByUser(java.lang.String name, int argsNumber, PreprocessorContext context)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.expression.functions.xml
Methods in com.igormaznitsa.jcp.expression.functions.xml with parameters of type PreprocessorContext Modifier and Type Method Description Value
FunctionXML_NAME. executeStr(PreprocessorContext context, Value elementId)
Value
FunctionXML_OPEN. executeStr(PreprocessorContext context, Value filePath)
Value
FunctionXML_ROOT. executeStr(PreprocessorContext context, Value documentId)
Value
FunctionXML_SIZE. executeStr(PreprocessorContext context, Value elementListId)
Value
FunctionXML_TEXT. executeStr(PreprocessorContext context, Value elementid)
Value
FunctionXML_GET. executeStrInt(PreprocessorContext context, Value elementListId, Value elementIndex)
Value
FunctionXML_ATTR. executeStrStr(PreprocessorContext context, Value elementId, Value attributeName)
Value
FunctionXML_LIST. executeStrStr(PreprocessorContext context, Value elementId, Value elementTag)
Value
FunctionXML_XELEMENT. executeStrStr(PreprocessorContext context, Value documentId, Value xPath)
Value
FunctionXML_XLIST. executeStrStr(PreprocessorContext context, Value documentId, Value xPath)
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)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.extension
Methods in com.igormaznitsa.jcp.extension with parameters of type PreprocessorContext Modifier and Type Method Description boolean
PreprocessorExtension. processAction(PreprocessorContext context, Value[] parameters)
To process an action (it will be called if the preprocessor is met //#action directive) -
Uses of PreprocessorContext in com.igormaznitsa.jcp.maven
Methods in com.igormaznitsa.jcp.maven that return PreprocessorContext Modifier and Type Method Description (package private) PreprocessorContext
PreprocessorMojo. makePreprocessorContext(java.lang.String sourceFoldersInPreprocessorFormat)
Methods in com.igormaznitsa.jcp.maven with parameters of type PreprocessorContext Modifier and Type Method Description private void
MavenPropertiesImporter. addVariableIntoInsideMap(PreprocessorContext context, java.lang.String name, Value value, boolean verbose)
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)
Constructors in com.igormaznitsa.jcp.maven with parameters of type PreprocessorContext Constructor Description MavenPropertiesImporter(PreprocessorContext context, org.apache.maven.project.MavenProject project, boolean logAddedProperties)
-
Uses of PreprocessorContext in com.igormaznitsa.jcp.utils
Methods in com.igormaznitsa.jcp.utils with parameters of type PreprocessorContext Modifier and Type Method Description static java.lang.String
PreprocessorUtils. processMacroses(java.lang.String processingString, PreprocessorContext context)
-