Posted By

miceno on 12/31/10


debug vardump

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


var_dump in Groovy

 / Published in: Groovy

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

  1. import org.apache.commons.lang.builder.ReflectionToStringBuilder
  3. variable= new ComplexObject()
  4. println new ReflectionToStringBuilder( variable).toString()

Report this snippet  

You need to login to post a comment.