interpolate(String input,
String thisPrefixPattern,
RecursionInterceptor recursionInterceptor)
Attempt to resolve all expressions in the given input string, using the
given pattern to first trim an optional prefix from each expression.

interpolate

Attempt to resolve all expressions in the given input string, using the
given pattern to first trim an optional prefix from each expression. The
supplied recursion interceptor will provide protection from expression
cycles, ensuring that the input can be resolved or an exception is
thrown.
return an empty String if input is null

Parameters:

input - The input string to interpolate

thisPrefixPattern - An optional pattern that should be trimmed from
the start of any expressions found in the input.

recursionInterceptor - Used to protect the interpolation process
from expression cycles, and throw an
exception if one is detected.

getFeedback

Return any feedback messages and errors that were generated - but
suppressed - during the interpolation process. Since unresolvable
expressions will be left in the source string as-is, this feedback is
optional, and will only be useful for debugging interpolation problems.