Skip to content

Pass delimiter information to ValueSource #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kwin opened this issue Jun 17, 2024 · 1 comment · Fixed by #77
Closed

Pass delimiter information to ValueSource #76

kwin opened this issue Jun 17, 2024 · 1 comment · Fixed by #77

Comments

@kwin
Copy link
Contributor

kwin commented Jun 17, 2024

ValueSource may delegate to another ValueSource by returning an expression itself in its getValue(...) method. However that requires that the returned value is enclosed in the delimiters.
However, the delimiters are configurable, so somehow the ValueSource implementation needs to know which ones are detected by the calling Interpolator.

@kwin
Copy link
Contributor Author

kwin commented Jun 17, 2024

The easiest fix is to add another method Object getValue(String expression, String delimiterStart, String delimiterEnd) which calls by default just getValue(expression). Each interpolator needs to call each ValueSource with valid delimiter arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant