Uses of Class
com.igormaznitsa.jcp.context.PreprocessorContext
Packages that use PreprocessorContext
Package
Description
-
Uses of PreprocessorContext in com.igormaznitsa.jcp
Methods in com.igormaznitsa.jcp that return PreprocessorContextConstructors in com.igormaznitsa.jcp with parameters of type PreprocessorContext -
Uses of PreprocessorContext in com.igormaznitsa.jcp.ant
Methods in com.igormaznitsa.jcp.ant with parameters of type PreprocessorContextModifier and TypeMethodDescriptionPreprocessTask.getVariable(String varName, PreprocessorContext context) voidPreprocessTask.setVariable(String varName, Value value, PreprocessorContext context) -
Uses of PreprocessorContext in com.igormaznitsa.jcp.cmdline
Methods in com.igormaznitsa.jcp.cmdline with parameters of type PreprocessorContextModifier and TypeMethodDescriptionbooleanAllowWhitespaceDirectiveHandler.processCommandLineKey(String key, PreprocessorContext context) booleanCareForLastNextLineCharHandler.processCommandLineKey(String key, PreprocessorContext context) booleanClearDstDirectoryHandler.processCommandLineKey(String key, PreprocessorContext context) booleanCommandLineHandler.processCommandLineKey(String key, PreprocessorContext context) Process a command line keybooleanCompareDestinationContentHandler.processCommandLineKey(String key, PreprocessorContext context) booleanCopyFileAttributesHandler.processCommandLineKey(String key, PreprocessorContext context) booleanDestinationDirectoryHandler.processCommandLineKey(String key, PreprocessorContext context) booleanExcludedFileExtensionsHandler.processCommandLineKey(String key, PreprocessorContext context) booleanExcludeFoldersHandler.processCommandLineKey(String key, PreprocessorContext context) booleanFileExtensionsHandler.processCommandLineKey(String key, PreprocessorContext context) booleanGlobalVariableDefiningFileHandler.processCommandLineKey(String key, PreprocessorContext context) booleanGlobalVariableHandler.processCommandLineKey(String key, PreprocessorContext context) booleanHelpHandler.processCommandLineKey(String key, PreprocessorContext context) booleanInCharsetHandler.processCommandLineKey(String key, PreprocessorContext context) booleanKeepLineHandler.processCommandLineKey(String key, PreprocessorContext context) booleanOutCharsetHandler.processCommandLineKey(String key, PreprocessorContext context) booleanPreserveIndentDirectiveHandler.processCommandLineKey(String key, PreprocessorContext context) booleanRemoveCommentsHandler.processCommandLineKey(String argument, PreprocessorContext configurator) booleanSourceDirectoryHandler.processCommandLineKey(String key, PreprocessorContext context) booleanUnknownAsFalseHandler.processCommandLineKey(String key, PreprocessorContext context) booleanVerboseHandler.processCommandLineKey(String key, PreprocessorContext context) -
Uses of PreprocessorContext in com.igormaznitsa.jcp.containers
Methods in com.igormaznitsa.jcp.containers with parameters of type PreprocessorContextModifier and TypeMethodDescriptionFileInfoContainer.preprocessFile(PreprocessingState state, PreprocessorContext context) Preprocess file, NB!protected AfterDirectiveProcessingBehaviourFileInfoContainer.processDirective(PreprocessingState state, String directiveString, PreprocessorContext context, boolean firstPass) FileInfoContainer.processGlobalDirectives(PreprocessingState state, PreprocessorContext context) -
Uses of PreprocessorContext in com.igormaznitsa.jcp.context
Methods in com.igormaznitsa.jcp.context that return PreprocessorContextModifier and TypeMethodDescriptionPreprocessorContext.clearLocalVariables()Remove all local variables from the inside storagePreprocessorContext.removeGlobalVariable(String name) Remove a global variable value from the context.PreprocessorContext.removeLocalVariable(String name) Remove a local variable value from the context.PreprocessorContext.setClearDestinationDirBefore(boolean flag) Set the flag to clear the destination directory before preprocessingPreprocessorContext.setCompareDestination(boolean flag) Set the flag to check before saving if the content changed.PreprocessorContext.setCopyFileAttributes(boolean value) Set the flag to copy file attributes.PreprocessorContext.setDestinationDirectory(String directory) Set a destination directory for result filesPreprocessorContext.setExcludedFileExtensions(String extensions) Set comma separated list of file extensions to be excluded from preprocessingPreprocessorContext.setGlobalVariable(String name, Value value) Set a global variable valuePreprocessorContext.setInCharacterEncoding(String characterEncoding) Set the character encoding for reading texts, it must be supported by the Java platform else an exception will be thrownPreprocessorContext.setKeepLines(boolean flag) Set the flag to keep lines as commented onesPreprocessorContext.setLocalVariable(String name, Value value) Set a local variable valuePreprocessorContext.setOutCharacterEncoding(String characterEncoding) Set the output texts character encoding, it must be supported by the Java platform else an exception will be thrownPreprocessorContext.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.setProcessingFileExtensions(String extensions) Set file extensions of files to be preprocessed, it is a comma separated listPreprocessorContext.setRemoveComments(boolean removingComments) Set the remove comments flagPreprocessorContext.setSourceDirectories(String directories) Set source directoriesPreprocessorContext.setVerbose(boolean flag) Set the verbose flagMethods in com.igormaznitsa.jcp.context with parameters of type PreprocessorContextModifier and TypeMethodDescriptionEnvironmentVariableProcessor.getVariable(String varName, PreprocessorContext context) JCPSpecialVariableProcessor.getVariable(String varName, PreprocessorContext context) SpecialVariableProcessor.getVariable(String varName, PreprocessorContext context) Get the value for the variablevoidEnvironmentVariableProcessor.setVariable(String varName, Value value, PreprocessorContext context) voidJCPSpecialVariableProcessor.setVariable(String varName, Value value, PreprocessorContext context) voidSpecialVariableProcessor.setVariable(String varName, Value value, PreprocessorContext context) Set a value to the variableConstructors in com.igormaznitsa.jcp.context with parameters of type PreprocessorContextModifierConstructorDescriptionPreprocessorContext(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 PreprocessorContextModifier and TypeMethodDescriptionAbortDirectiveHandler.execute(String rawTail, PreprocessorContext context) abstract AfterDirectiveProcessingBehaviourAbstractDirectiveHandler.execute(String tailString, PreprocessorContext context) Execute directiveActionDirectiveHandler.execute(String string, PreprocessorContext context) BreakDirectiveHandler.execute(String string, PreprocessorContext context) CommentNextLineDirectiveHandler.execute(String string, PreprocessorContext context) ContinueDirectiveHandler.execute(String string, PreprocessorContext context) DefineDirectiveHandler.execute(String rawTail, PreprocessorContext context) EchoDirectiveHandler.execute(String string, PreprocessorContext context) ElseDirectiveHandler.execute(String string, PreprocessorContext context) EndDirectiveHandler.execute(String string, PreprocessorContext context) EndIfDirectiveHandler.execute(String string, PreprocessorContext context) ErrorDirectiveHandler.execute(String trimmedString, PreprocessorContext context) ExcludeIfDirectiveHandler.execute(String string, PreprocessorContext context) ExitDirectiveHandler.execute(String string, PreprocessorContext context) ExitIfDirectiveHandler.execute(String string, PreprocessorContext context) FlushDirectiveHandler.execute(String string, PreprocessorContext context) GlobalDirectiveHandler.execute(String string, PreprocessorContext context) GlobalElseDirectiveHandler.execute(String string, PreprocessorContext context) GlobalEndIfDirectiveHandler.execute(String string, PreprocessorContext context) GlobalIfDirectiveHandler.execute(String string, PreprocessorContext context) IfDefinedDirectiveHandler.execute(String string, PreprocessorContext context) IfDirectiveHandler.execute(String string, PreprocessorContext context) IncludeDirectiveHandler.execute(String string, PreprocessorContext context) LocalDirectiveHandler.execute(String string, PreprocessorContext context) MsgDirectiveHandler.execute(String rawTail, PreprocessorContext context) NoAutoFlushHandler.execute(String string, PreprocessorContext context) OutDirDirectiveHandler.execute(String string, PreprocessorContext context) OutDisabledDirectiveHandler.execute(String string, PreprocessorContext context) OutEnabledDirectiveHandler.execute(String string, PreprocessorContext context) OutNameDirectiveHandler.execute(String string, PreprocessorContext context) PostfixDirectiveHandler.execute(String string, PreprocessorContext context) PrefixDirectiveHandler.execute(String string, PreprocessorContext context) WhileDirectiveHandler.execute(String string, PreprocessorContext context) protected voidDefineDirectiveHandler.process(PreprocessorContext context, String varName, Value value, boolean exists) protected voidDefinelDirectiveHandler.process(PreprocessorContext context, String varName, Value value, boolean exists) protected voidErrorDirectiveHandler.process(PreprocessorContext context, String message) protected voidUndefDirectiveHandler.process(PreprocessorContext context, String varName, Value value, boolean exists) protected voidWarningDirectiveHandler.process(PreprocessorContext context, String message) -
Uses of PreprocessorContext in com.igormaznitsa.jcp.expression
Methods in com.igormaznitsa.jcp.expression with parameters of type PreprocessorContextModifier and TypeMethodDescriptionstatic ValueExpression.evalExpression(String expression, PreprocessorContext context) Evaluate expressionstatic ValueExpression.evalTree(ExpressionTree tree, PreprocessorContext context) Evaluate an expression treeExpressionParser.parse(String expressionStr, PreprocessorContext context) To parse an expression represented as a string and get a treeExpressionParser.readExpression(PushbackReader reader, ExpressionTree tree, PreprocessorContext context, boolean insideBracket, boolean argument) It reads an expression from a reader and fill a tree -
Uses of PreprocessorContext in com.igormaznitsa.jcp.expression.functions
Methods in com.igormaznitsa.jcp.expression.functions with parameters of type PreprocessorContextModifier and TypeMethodDescriptionFunctionDefinedByUser.execute(PreprocessorContext context, Value[] values) FunctionABS.executeFloat(PreprocessorContext context, Value value) FunctionROUND.executeFloat(PreprocessorContext context, Value value) FunctionABS.executeInt(PreprocessorContext context, Value value) FunctionROUND.executeInt(PreprocessorContext context, Value value) abstract ValueAbstractStrConverter.executeStr(PreprocessorContext context, Value stringToConvert) FunctionEVALFILE.executeStr(PreprocessorContext context, Value strfilePath) FunctionSTR2CSV.executeStr(PreprocessorContext context, Value value) FunctionSTR2INT.executeStr(PreprocessorContext context, Value value) FunctionSTR2JS.executeStr(PreprocessorContext context, Value value) FunctionSTR2JSON.executeStr(PreprocessorContext context, Value value) FunctionSTR2WEB.executeStr(PreprocessorContext context, Value value) FunctionSTR2XML.executeStr(PreprocessorContext context, Value value) FunctionSTRLEN.executeStr(PreprocessorContext context, Value value) FunctionTRIMLINES.executeStr(PreprocessorContext context, Value value) FunctionIS.executeStrAny(PreprocessorContext context, Value varName, Value value) FunctionSTR2GO.executeStrBool(PreprocessorContext context, Value source, Value splitAndQuoteLines) FunctionSTR2JAVA.executeStrBool(PreprocessorContext context, Value source, Value splitAndQuoteLines) FunctionBINFILE.executeStrStr(PreprocessorContext context, Value strfilePath, Value encodeType) FunctionISSUBSTR.executeStrStr(PreprocessorContext context, Value subStrValue, Value strValue) Constructors in com.igormaznitsa.jcp.expression.functions with parameters of type PreprocessorContextModifierConstructorDescriptionFunctionDefinedByUser(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 PreprocessorContextModifier and TypeMethodDescriptionFunctionXML_NAME.executeStr(PreprocessorContext context, Value elementId) FunctionXML_OPEN.executeStr(PreprocessorContext context, Value filePath) FunctionXML_ROOT.executeStr(PreprocessorContext context, Value documentId) FunctionXML_SIZE.executeStr(PreprocessorContext context, Value elementListId) FunctionXML_TEXT.executeStr(PreprocessorContext context, Value elementid) FunctionXML_GET.executeStrInt(PreprocessorContext context, Value elementListId, Value elementIndex) FunctionXML_ATTR.executeStrStr(PreprocessorContext context, Value elementId, Value attributeName) FunctionXML_LIST.executeStrStr(PreprocessorContext context, Value elementId, Value elementTag) FunctionXML_XELEMENT.executeStrStr(PreprocessorContext context, Value documentId, Value xPath) FunctionXML_XLIST.executeStrStr(PreprocessorContext context, Value documentId, Value xPath) AbstractXMLFunction.findCachedElement(PreprocessorContext context, String elementId) AbstractXMLFunction.findCachedElementList(PreprocessorContext context, String elementListId) AbstractXMLFunction.findElementForIndex(PreprocessorContext context, String elementListId, int elementIndex) AbstractXMLFunction.getAttribute(PreprocessorContext context, String elementId, String attributeName) AbstractXMLFunction.getCachedDocument(PreprocessorContext context, String documentId) AbstractXMLFunction.getCachedElement(PreprocessorContext context, String elementId) AbstractXMLFunction.getCachedElementList(PreprocessorContext context, String elementListId) intAbstractXMLFunction.getElementListSize(PreprocessorContext context, String elementListId) -
Uses of PreprocessorContext in com.igormaznitsa.jcp.extension
Methods in com.igormaznitsa.jcp.extension with parameters of type PreprocessorContextModifier and TypeMethodDescriptionbooleanPreprocessorExtension.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 with parameters of type PreprocessorContextModifier and TypeMethodDescriptionMavenPropertiesImporter.getVariable(String varName, PreprocessorContext context) voidMavenPropertiesImporter.setVariable(String varName, Value value, PreprocessorContext context) Constructors in com.igormaznitsa.jcp.maven with parameters of type PreprocessorContextModifierConstructorDescriptionMavenPropertiesImporter(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 PreprocessorContextModifier and TypeMethodDescriptionstatic StringPreprocessorUtils.processMacroses(String processingString, PreprocessorContext context)