Return to Snippet

Revision: 38343
at December 31, 2010 07:32 by miceno


Initial Code
import org.apache.commons.lang.builder.ReflectionToStringBuilder

variable= new ComplexObject()
println new ReflectionToStringBuilder( variable).toString()

Initial URL

                                

Initial Description
ReflectionToStringBuilder wraps a class and outputs a string describing its attributes, more or less similar to var_dump in PHP

Initial Title
var_dump in Groovy

Initial Tags
debug

Initial Language
Groovy