Like
String r = SomeThing.toExecString("new Object().toString()");
And when executed the value of r
would be:
"new Object().toString() = java.lang.Object@c5e3974"
Is this even possible at all? Would it need a bunch of reflection? A built in compiler maybe?