How can I print out the (public and internal) variables and their values of a Groovy object?
I.e
class X { def X = 10 def Y = 5 private void d
dump()
For example
println "ffffd".dump()
Prints:
java.lang.String@2ef900 value=ffffdd offset=0 count=4 hash=3078400