Skip to content

Instantly share code, notes, and snippets.

@nfxpnk
Forked from miceno/var_dump.groovy
Created June 7, 2013 10:14
Show Gist options
  • Select an option

  • Save nfxpnk/5728341 to your computer and use it in GitHub Desktop.

Select an option

Save nfxpnk/5728341 to your computer and use it in GitHub Desktop.
// ReflectionToStringBuilder wraps a class and outputs a string describing
// its attributes, more or less similar to var_dump in PHP
import org.apache.commons.lang.builder.ReflectionToStringBuilder
variable= new ComplexObject()
println new ReflectionToStringBuilder( variable).toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment