Hi,
Thanks for this code. I would like to evaluate a series of statements then use the names/values in private HashMap vars to process the result.
The current code allows a get to the vars if the key name is known. It does not provide a method to get the vars keyset as far as I can tell.
Would you accept a PR that adds something like this to AbstractEvaluator?
public Set<String> getNames() {
return vars.keySet();
}
Am I way off base? I didn't look at the implications of adding getNames() to interface Evaluator. Would that be better?
Thanks!
Hi,
Thanks for this code. I would like to evaluate a series of statements then use the names/values in private HashMap vars to process the result.
The current code allows a get to the vars if the key name is known. It does not provide a method to get the vars keyset as far as I can tell.
Would you accept a PR that adds something like this to AbstractEvaluator?
Am I way off base? I didn't look at the implications of adding getNames() to interface Evaluator. Would that be better?
Thanks!