public class SystemPropertyAndEnvironmentSubstitutor
extends org.apache.commons.text.StringSubstitutor
Constructor and Description |
---|
SystemPropertyAndEnvironmentSubstitutor() |
SystemPropertyAndEnvironmentSubstitutor(boolean strict) |
SystemPropertyAndEnvironmentSubstitutor(boolean strict,
boolean substitutionInVariables) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
substitute(org.apache.commons.text.TextStringBuilder buf,
int offset,
int length) |
createInterpolator, getEscapeChar, getStringLookup, getValueDelimiterMatcher, getVariablePrefixMatcher, getVariableSuffixMatcher, isDisableSubstitutionInValues, isEnableSubstitutionInVariables, isEnableUndefinedVariableException, isPreserveEscapes, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replace, replaceIn, replaceIn, replaceIn, replaceIn, replaceIn, replaceIn, replaceSystemProperties, resolveVariable, setDisableSubstitutionInValues, setEnableSubstitutionInVariables, setEnableUndefinedVariableException, setEscapeChar, setPreserveEscapes, setValueDelimiter, setValueDelimiter, setValueDelimiterMatcher, setVariablePrefix, setVariablePrefix, setVariablePrefixMatcher, setVariableResolver, setVariableSuffix, setVariableSuffix, setVariableSuffixMatcher
public SystemPropertyAndEnvironmentSubstitutor()
public SystemPropertyAndEnvironmentSubstitutor(boolean strict)
public SystemPropertyAndEnvironmentSubstitutor(boolean strict, boolean substitutionInVariables)
strict
- true
if looking up undefined environment variables should throw a UndefinedEnvironmentVariableException
, false
otherwise.substitutionInVariables
- a flag whether substitution is done in variable names.StringSubstitutor.setEnableSubstitutionInVariables(boolean)