substituted
open override fun substituted(root: Source, enabled: Boolean, errorWhenUndefined: Boolean): Source
Content copied to clipboard
Return a source that substitutes path variables within all strings by values.
See StringSubstitutor for detailed substitution rules. An exception is when the string is in reference format like ${path}, the whole node will be replace by a reference to the sub-tree in the specified path.
Return
a source that substitutes path variables within all strings by values
Parameters
root
the root source for substitution
enabled
whether enabled or let the source decide by itself
errorWhenUndefined
whether throw exception when this source contains undefined path variables
Throws
Sources
jvm source
Link copied to clipboard