Advertisement
filebot

Groovy AST

Jul 13th, 2014
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.18 KB | None | 0 0
  1. import groovy.transform.*
  2.  
  3. @Sortable
  4. @Canonical
  5. class Person {
  6.     String name
  7.     int age
  8. }
  9.  
  10. def p = new Person('Reinhard', 28)
  11.  
  12. println p
  13. println p instanceof Comparable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement