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 PreprocessorContextJCPreprocessor. contextMethods in com.igormaznitsa.jcp that return PreprocessorContext Modifier and Type Method Description PreprocessorContextJCPreprocessor. getContext()private static PreprocessorContextJCPreprocessor. 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 PreprocessorContextJCPreprocessor. 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) PreprocessorContextPreprocessTask. generatePreprocessorContext()Methods in com.igormaznitsa.jcp.ant with parameters of type PreprocessorContext Modifier and Type Method Description private voidPreprocessTask. fillCfgFiles(PreprocessorContext context)private voidPreprocessTask. fillGlobalVars(PreprocessorContext context)ValuePreprocessTask. getVariable(java.lang.String varName, PreprocessorContext context)voidPreprocessTask. 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 booleanAllowWhitespaceDirectiveHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanCareForLastNextLineCharHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanClearDstDirectoryHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanCommandLineHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)Process a command line keybooleanCompareDestinationContentHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanCopyFileAttributesHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanDestinationDirectoryHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanExcludedFileExtensionsHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanExcludeFoldersHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanFileExtensionsHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanGlobalVariableDefiningFileHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanGlobalVariableHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanHelpHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanInCharsetHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanKeepLineHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanOutCharsetHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanPreserveIndentDirectiveHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanRemoveCommentsHandler. processCommandLineKey(java.lang.String argument, PreprocessorContext configurator)booleanSourceDirectoryHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanUnknownAsFalseHandler. processCommandLineKey(java.lang.String key, PreprocessorContext context)booleanVerboseHandler. 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.StringFileInfoContainer. extractDoubleDollarPrefixedDirective(java.lang.String line, PreprocessorContext context)private java.lang.StringFileInfoContainer. extractHashPrefixedDirective(java.lang.String line, PreprocessorContext context)private java.lang.StringFileInfoContainer. extractSingleDollarPrefixedDirective(java.lang.String line, PreprocessorContext context)private static java.lang.StringFileInfoContainer. findTailRemover(java.lang.String str, PreprocessorContext context)private booleanFileInfoContainer. isDoubleDollarPrefixed(java.lang.String line, PreprocessorContext context)private booleanFileInfoContainer. isHashPrefixed(java.lang.String line, PreprocessorContext context)private booleanFileInfoContainer. isSingleDollarPrefixed(java.lang.String line, PreprocessorContext context)PreprocessingStateFileInfoContainer. preprocessFile(PreprocessingState state, PreprocessorContext context)Preprocess file, NB! it doesn't clear local variables automatically for cloned contextsprotected AfterDirectiveProcessingBehaviourFileInfoContainer. 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 PreprocessorContextPreprocessingState. contextMethods in com.igormaznitsa.jcp.context that return PreprocessorContext Modifier and Type Method Description PreprocessorContextPreprocessorContext. clearLocalVariables()Remove all local variables from the inside storagePreprocessorContextPreprocessorContext. removeGlobalVariable(java.lang.String name)Remove a global variable value from the context.PreprocessorContextPreprocessorContext. removeLocalVariable(java.lang.String name)Remove a local variable value from the context.PreprocessorContextPreprocessorContext. setClearDestinationDirBefore(boolean flag)Set the flag to clear the destination directory before preprocessingPreprocessorContextPreprocessorContext. setCompareDestination(boolean flag)Set the flag to check before saving if the content changed.PreprocessorContextPreprocessorContext. setCopyFileAttributes(boolean value)Set the flag to copy file attributes.PreprocessorContextPreprocessorContext. setDestinationDirectory(java.lang.String directory)Set a destination directory for result filesPreprocessorContextPreprocessorContext. setExcludedFileExtensions(java.lang.String extensions)Set comma separated list of file extensions to be excluded from preprocessingPreprocessorContextPreprocessorContext. setGlobalVariable(java.lang.String name, Value value)Set a global variable valuePreprocessorContextPreprocessorContext. 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 thrownPreprocessorContextPreprocessorContext. setKeepLines(boolean flag)Set the flag to keep lines as commented onesPreprocessorContextPreprocessorContext. setLocalVariable(java.lang.String name, Value value)Set a local variable valuePreprocessorContextPreprocessorContext. setOutCharacterEncoding(java.lang.String characterEncoding)Set the output texts character encoding, it must be supported by the Java platform else an exception will be thrownPreprocessorContextPreprocessorContext. 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 workPreprocessorContextPreprocessorContext. setProcessingFileExtensions(java.lang.String extensions)Set file extensions of files to be preprocessed, it is a comma separated listPreprocessorContextPreprocessorContext. setRemoveComments(boolean removingComments)Set the remove comments flagPreprocessorContextPreprocessorContext. setSourceDirectories(java.lang.String directories)Set source directoriesPreprocessorContextPreprocessorContext. setVerbose(boolean flag)Set the verbose flagMethods in com.igormaznitsa.jcp.context with parameters of type PreprocessorContext Modifier and Type Method Description ValueEnvironmentVariableProcessor. getVariable(java.lang.String varName, PreprocessorContext context)ValueJCPSpecialVariableProcessor. getVariable(java.lang.String varName, PreprocessorContext context)ValueSpecialVariableProcessor. getVariable(java.lang.String varName, PreprocessorContext context)Get the value for the variablevoidEnvironmentVariableProcessor. setVariable(java.lang.String varName, Value value, PreprocessorContext context)voidJCPSpecialVariableProcessor. setVariable(java.lang.String varName, Value value, PreprocessorContext context)voidSpecialVariableProcessor. 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 AfterDirectiveProcessingBehaviourAbortDirectiveHandler. execute(java.lang.String rawTail, PreprocessorContext context)abstract AfterDirectiveProcessingBehaviourAbstractDirectiveHandler. execute(java.lang.String tailString, PreprocessorContext context)Execute directiveAfterDirectiveProcessingBehaviourActionDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourBreakDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourCommentNextLineDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourContinueDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourDefineDirectiveHandler. execute(java.lang.String rawTail, PreprocessorContext context)AfterDirectiveProcessingBehaviourEchoDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourElseDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourEndDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourEndIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourErrorDirectiveHandler. execute(java.lang.String trimmedString, PreprocessorContext context)AfterDirectiveProcessingBehaviourExcludeIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourExitDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourExitIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourFlushDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourGlobalDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourGlobalElseDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourGlobalEndIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourGlobalIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourIfDefinedDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourIfDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourIncludeDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourLocalDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourMsgDirectiveHandler. execute(java.lang.String rawTail, PreprocessorContext context)AfterDirectiveProcessingBehaviourNoAutoFlushHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourOutDirDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourOutDisabledDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourOutEnabledDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourOutNameDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourPostfixDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourPrefixDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)AfterDirectiveProcessingBehaviourWhileDirectiveHandler. execute(java.lang.String string, PreprocessorContext context)private java.util.List<ExpressionTree>ActionDirectiveHandler. parseString(java.lang.String str, PreprocessorContext context)protected voidDefineDirectiveHandler. process(PreprocessorContext context, java.lang.String varName, Value value, boolean exists)protected voidDefinelDirectiveHandler. process(PreprocessorContext context, java.lang.String varName, Value value, boolean exists)protected voidErrorDirectiveHandler. process(PreprocessorContext context, java.lang.String message)protected voidUndefDirectiveHandler. process(PreprocessorContext context, java.lang.String varName, Value value, boolean exists)protected voidWarningDirectiveHandler. process(PreprocessorContext context, java.lang.String message)private voidGlobalDirectiveHandler. processDefinition(java.lang.String string, PreprocessorContext context)private voidLocalDirectiveHandler. 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 PreprocessorContextExpression. contextThe 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 ValueExpression. evalExpression(java.lang.String expression, PreprocessorContext context)Evaluate expressionstatic ValueExpression. evalTree(ExpressionTree tree, PreprocessorContext context)Evaluate an expression tree(package private) ExpressionItemExpressionParser. nextItem(java.io.PushbackReader reader, PreprocessorContext context)Read the next item from the readerExpressionTreeExpressionParser. parse(java.lang.String expressionStr, PreprocessorContext context)To parse an expression represented as a string and get a treeExpressionItemExpressionParser. readExpression(java.io.PushbackReader reader, ExpressionTree tree, PreprocessorContext context, boolean insideBracket, boolean argument)It reads an expression from a reader and fill a treeprivate ExpressionTreeExpressionParser. 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) ExpressionItemExpressionParser. 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 PreprocessorContextFunctionEVALFILE. prepareContext(PreprocessorContext base)Methods in com.igormaznitsa.jcp.expression.functions with parameters of type PreprocessorContext Modifier and Type Method Description ValueFunctionDefinedByUser. execute(PreprocessorContext context, Value[] values)ValueFunctionABS. executeFloat(PreprocessorContext context, Value value)ValueFunctionROUND. executeFloat(PreprocessorContext context, Value value)ValueFunctionABS. executeInt(PreprocessorContext context, Value value)ValueFunctionROUND. executeInt(PreprocessorContext context, Value value)abstract ValueAbstractStrConverter. executeStr(PreprocessorContext context, Value stringToConvert)ValueFunctionEVALFILE. executeStr(PreprocessorContext context, Value strfilePath)ValueFunctionSTR2CSV. executeStr(PreprocessorContext context, Value value)ValueFunctionSTR2INT. executeStr(PreprocessorContext context, Value value)ValueFunctionSTR2JS. executeStr(PreprocessorContext context, Value value)ValueFunctionSTR2JSON. executeStr(PreprocessorContext context, Value value)ValueFunctionSTR2WEB. executeStr(PreprocessorContext context, Value value)ValueFunctionSTR2XML. executeStr(PreprocessorContext context, Value value)ValueFunctionSTRLEN. executeStr(PreprocessorContext context, Value value)ValueFunctionTRIMLINES. executeStr(PreprocessorContext context, Value value)ValueFunctionIS. executeStrAny(PreprocessorContext context, Value varName, Value value)ValueFunctionSTR2GO. executeStrBool(PreprocessorContext context, Value source, Value splitAndQuoteLines)ValueFunctionSTR2JAVA. executeStrBool(PreprocessorContext context, Value source, Value splitAndQuoteLines)ValueFunctionBINFILE. executeStrStr(PreprocessorContext context, Value strfilePath, Value encodeType)ValueFunctionISSUBSTR. executeStrStr(PreprocessorContext context, Value subStrValue, Value strValue)private PreprocessorContextFunctionEVALFILE. 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 ValueFunctionXML_NAME. executeStr(PreprocessorContext context, Value elementId)ValueFunctionXML_OPEN. executeStr(PreprocessorContext context, Value filePath)ValueFunctionXML_ROOT. executeStr(PreprocessorContext context, Value documentId)ValueFunctionXML_SIZE. executeStr(PreprocessorContext context, Value elementListId)ValueFunctionXML_TEXT. executeStr(PreprocessorContext context, Value elementid)ValueFunctionXML_GET. executeStrInt(PreprocessorContext context, Value elementListId, Value elementIndex)ValueFunctionXML_ATTR. executeStrStr(PreprocessorContext context, Value elementId, Value attributeName)ValueFunctionXML_LIST. executeStrStr(PreprocessorContext context, Value elementId, Value elementTag)ValueFunctionXML_XELEMENT. executeStrStr(PreprocessorContext context, Value documentId, Value xPath)ValueFunctionXML_XLIST. executeStrStr(PreprocessorContext context, Value documentId, Value xPath)org.w3c.dom.ElementAbstractXMLFunction. findCachedElement(PreprocessorContext context, java.lang.String elementId)org.w3c.dom.NodeListAbstractXMLFunction. findCachedElementList(PreprocessorContext context, java.lang.String elementListId)java.lang.StringAbstractXMLFunction. findElementForIndex(PreprocessorContext context, java.lang.String elementListId, int elementIndex)java.lang.StringAbstractXMLFunction. getAttribute(PreprocessorContext context, java.lang.String elementId, java.lang.String attributeName)org.w3c.dom.DocumentAbstractXMLFunction. getCachedDocument(PreprocessorContext context, java.lang.String documentId)org.w3c.dom.ElementAbstractXMLFunction. getCachedElement(PreprocessorContext context, java.lang.String elementId)org.w3c.dom.NodeListAbstractXMLFunction. getCachedElementList(PreprocessorContext context, java.lang.String elementListId)intAbstractXMLFunction. getElementListSize(PreprocessorContext context, java.lang.String elementListId)private org.w3c.dom.DocumentFunctionXML_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 booleanPreprocessorExtension. 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) PreprocessorContextPreprocessorMojo. makePreprocessorContext(java.lang.String sourceFoldersInPreprocessorFormat)Methods in com.igormaznitsa.jcp.maven with parameters of type PreprocessorContext Modifier and Type Method Description private voidMavenPropertiesImporter. addVariableIntoInsideMap(PreprocessorContext context, java.lang.String name, Value value, boolean verbose)ValueMavenPropertiesImporter. getVariable(java.lang.String varName, PreprocessorContext context)private voidMavenPropertiesImporter. printInfoAboutVarIntoLog(PreprocessorContext context, java.lang.String varName, java.lang.String value)private voidPreprocessorMojo. replaceSourceRootByPreprocessingDestinationFolder(PreprocessorContext context)voidMavenPropertiesImporter. 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.StringPreprocessorUtils. processMacroses(java.lang.String processingString, PreprocessorContext context)
-