Class TokenReplace
java.lang.Object
jdk.jpackage.internal.util.TokenReplace
Class to replace tokens in strings.
Single instance holds a list of tokens. Tokens can be substrings of each other. The implementation performs greedy replacement: longer tokens are replaced first.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenReplace
combine
(TokenReplace x, TokenReplace y) createCachingTokenValueSupplier
(Map<String, Supplier<Object>> tokenValueSuppliers) boolean
int
hashCode()
recursiveApplyTo
(String str, Function<String, Object> tokenValueSupplier) toString()
-
Constructor Details
-
TokenReplace
-
-
Method Details
-
applyTo
-
recursiveApplyTo
-
hashCode
-
equals
-
toString
-
combine
-
createCachingTokenValueSupplier
-