Class VanUtil
java.lang.Object
dev.vanengine.core.support.VanUtil
Shared utilities for the Van template engine.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordParsed v-for expression. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsAnyWholeWord(String expr, Collection<String> names) static booleancontainsWholeWord(String text, String word) static StringescapeHtml(String text) static booleanisWordChar(char c) static VanUtil.VForExprparseVForExpr(String expr) static StringreplaceAll(Pattern pattern, String input, VanUtil.MatchReplacer replacer) static ObjectresolveNestedKey(Map<?, ?> map, String key) static StringStrip surrounding single or double quotes.
-
Field Details
-
MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper MAPPERShared ObjectMapper instance — thread-safe, reuse everywhere. -
VOID_ELEMENTS
-
MUSTACHE
-
TRIPLE_MUSTACHE
-
SKIP_SCOPE_TAGS
-
-
Method Details
-
escapeHtml
-
isWordChar
public static boolean isWordChar(char c) -
containsWholeWord
-
containsAnyWholeWord
-
replaceAll
-
splitRespectingNesting
-
stripQuotes
-
parseVForExpr
-
resolveNestedKey
-