...
| Code Block |
|---|
println obj.metaClass.methods
println obj.metaClass.methods.find { it.name.startsWith("to") }
|
The same can be done for properties:
| Code Block |
|---|
println obj.metaClass.properties
println obj.metaClass.properties.find { it.name.startsWith("to") }
|
Using respondsTo and hasProperty
...