Package jadx.core.export
Class TemplateFile
java.lang.Object
jadx.core.export.TemplateFile
Simple template engine
Syntax for replace variable with value: '{{variable}}'
If value sanitizer is provided: value will be sanitized by default,
to skip sanitize add '!!' before variable name: '{{!!variable}}'
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()static TemplateFilefromResources(String path) private @Nullable Stringprocess(TemplateFile.ParserState parser, char ch) private voidprocess(OutputStream out) private StringprocessVar(String varName, boolean rawValue) voidvoidsetValueSanitizer(@Nullable Function<String, String> valueSanitizer)
-
Field Details
-
templateName
-
template
-
values
-
valueSanitizer
-
-
Constructor Details
-
TemplateFile
-
-
Method Details
-
fromResources
- Throws:
FileNotFoundException
-
add
-
build
- Throws:
IOException
-
save
- Throws:
IOException
-
setValueSanitizer
-
process
- Throws:
IOException
-
process
-
processVar
-