Package org.nuxeo.template.fm
Class FreeMarkerVariableExtractor
java.lang.Object
org.nuxeo.template.fm.FreeMarkerVariableExtractor
Helper class used to extract variable names from a FreeMarker template. This is used to initialize the
TemplateInput
parameters. Extraction is for now simple and system may not detect all the cases, but user is
able to add parameters from the UI.- Author:
- Tiry ([email protected])
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
extractVariableName
(String match) extractVariables
(String content) static void
-
Field Details
-
simpleVariableMatcher
-
spliters
-
directiveMatchers
-
assignMatchers
-
reservedContextKeywords
-
freeMarkerVariableSuffix
-
-
Constructor Details
-
FreeMarkerVariableExtractor
public FreeMarkerVariableExtractor()
-
-
Method Details
-
extractVariableName
-
resetReservedContextKeywords
public static void resetReservedContextKeywords() -
getreservedContextKeywords
-
extractVariables
-