I know, that the answer to this question might be absolutly trivial, but I am stuck somehow:
Is there a way to parse an expression-text, so I get access to the included variables without extracting them manually?
For example: “(garage.carsGreen+garage.carsYellow)*130>maxCarsFactor” should return the three used variables “garage.carsGreen”, “garage.carsYellow” and “maxCarsFactor” for further usage…
This means, I do not want to get the boolean-result of the expression, but the names of the variables. Is this possible somehow? Peraps by using any method in scala, I could not find yet?
Thanks a lot!